Monday, February 18, 2008

Excluding internal browser hits, using Google Analytics: a simpler way to set the cookie

Using special cookie value for Google Analytics is the most useful way to exclude internal browser hit counts. However, we have to craft many small web pages, only to set the special cookie value, for each GA tracked sites. After some survey, I found a simpler way to do the same thing (it works for me on Firefox and IE7):
  1. Open the target web site from your internal PC. You must have your GA codes installed on this site before doing this!
  2. Execute this line on the URL input bar:

    javascript:pageTracker._setVar('test_value');

    where 'test_value' is your special cookie value.

  3. That's All! And repeat with all your internal PCs.
This line of code can now be posted on only one web page, or just stored on your PC desktop, for your convenience!

Sunday, February 17, 2008

Adding StumbleUpon button to ending of each Blogger posts

The same trick as this post, we have to customize Blogger template!

  1. Goto "Layout/Edit HTML", and check "Expand Widget Templates"
  2. Find HTML tag at section:

    "<div class='post-footer-line post-footer-line-3'></div>"

  3. Insert in that "div" enclosure the StumbleUpon code:

    <a expr:href='"http://www.stumbleupon.com/submit&#63;url=" + data:post.url + "&amp;title=" + data:post.title'><img src="http://www.stumbleupon.com/images/su_micro.gif" alt="StumbleUpon"/></a>

    Note: the spaces around the "+"s (the plus character) are essential! And the Logo of StumbleUpon can be changed on your preference.

  4. Save the template.
Reference:
StumbleUpon and your Blog

Adding Technorati Link Count Widget to ending of each Blogger posts

After some survey on Google, I realized the only way to do this is to customize the Blogger template HTML file!
  1. Goto "Layout/Edit HTML", and check "Expand Widget Templates"
  2. Find HTML tag at section:

    "<div class='post-footer-line post-footer-line-3'></div>"

  3. Insert in that "div" enclosure the Technorati code, but tweak a few words:

    "<script src="http://embed.technorati.com/linkcount" type="text/javascript"></script><a class="tr-linkcount" expr:href='"http://technorati.com/search/"+data:post.url'>View blog reactions</a>"

  4. Save the modified template, and that's all!
References: (These pages should be corrected as above to make it work!)
Technorati: Link Count Widget
Technorati Link Count Widget for new blogger, iMessengr.com

Tuesday, February 12, 2008

Excel Tips: Shortcut key for strike-through formatting

We all know that: using shortcut 'Ctrl-B' to switch to Bold face, and 'Ctrl-I' to switch to Italic, in Microsoft Excel software. Wait: what about a 'strike-through' formatting?

The shortcut to do 'strike-through' in Excel is 'Ctrl-5'!


(See: "10+ keyboard shortcuts to speed formatting in Excel worksheets")

For Word users, this 'Ctrl-5' is not tied to strike through function. We need to manually tie a shortcut to it.

(See: "WordTips: Strikethrough Shortcut Key")

Thursday, February 7, 2008

Sun Moon Lake, Nantou County, Taiwan


Sun Moon Lake, originally uploaded by AllenHsu.

Sun Moon Lake (Shueishalian, 水沙漣, in aboriginal language) is a very famous and beautiful scenery spot in Taiwan. I like best its peaceful moment in the dawn, just like this photo. You can enjoy the freshing cool air, the mist, the sunrise, the mirror-like lake surface, and the pure silence.




檢視較大的地圖