Love The Way I Work

Category archive

Blogging - page 8

The “Digg Effect” at

in Blogging/Wordpress by

What is the “Digg Effect”?

The “Digg effect” definition from Wiki is the term given to the phenomenon of a popular website linking to a smaller site, causing the smaller site to slow down or even temporarily close due to the increased traffic.

This Tuesday my Ultimate Ubuntu Dapper Look Like OSX got dugg. This resulted in over 30,304 page loads and 16,000 unique visitors in less than 5 days. Here are some a visual analysis of the “Digg effect”.

My article at

My Article at

It all started when my article was pushed up to the the front page. I’ve submitted some of my other articles to digg at the same day without much success, and this one seemed no different. Perhaps this article got a little attention from diggers 🙂

Pageloads and Unique Visitors

Pageloads and Unique Visitors

The summary from the Bar Graph above (taken from statcounter):
Pageloads: 30,361 pages.
Unique Visitors: 16,526 visitors.

Feedburner Statistic

Feedburner Statistic

The most Feed Readers and Aggregators using Firefox Live Bookmarks (523).

Visitor Stats

Visitor Stats

The graph above taken from Performancing Metrics.

Traffic Rank

My traffic ranking on Alexa: 115,994 (up 6,320,202).

How to survive from the “Digg Effect” for WordPress

There are some tips to survive from the “Digg Effect” for WordPress:

  1. Coral P2P Web Cache.
    The Coral caching system does not rewrite embedded links to pages or images, so is useful only for sites using relative links to images or other pages. Additionally, Coral will only serve content from the original site up to 24 hours after it becomes unreachable -source Wiki.
  2. DuggMirror.
    Suffering sites may be able to mitigate the “Digg Effect” by temporarily redirecting requests for the targeted pages to one of these mirrors -source Wiki.
  3. WP-Cache 2.0.
    A very-easy-to-install-and-use plugin. By creating cached pages, it reduce the php code parsed by the web server, and also eliminate the query to mysql database. Both speeds up the page load dramatically -source


Diggers seem like a nice bunch they don’t do much damage! 😀 Happy dugg and gud lak!

Google Related Links for WordPress

in Article/Blogging/Google/Wordpress by

You can add dynamic content for your WordPress with Google Related Links unit. With Google Related links you always have fresh content.

Google Related Links don?t give you revenue directly but you can use them to keep your site fresh and interesting. This unit would be alternative trick beside show RSS feed on your WordPress 😉 You can choose many options here:

  • Size: Leaderboard, Banner, Medium Rectangle, and Small Rectangle.
  • Link type: Searches, News, Videos, and Web Pages.
  • Colors: Light Blue, Dark Blue, White, Yellow, Grey, Pink, or Green.
  • Finally, get your code

Adding Google Related Links to WordPress

  • Open wp-content/themes//index.php
  • You may place it in single.php, post.php or page.php also. You may place it inside theloop.php 🙂
  • Add Google Related Links code where you’d like the Google Related Links unit to appear.
  • Well done!
Google Related Links


Explorer Destroyer on WordPress

in Blogging/Tutorial/Wordpress by

Explorer Destroyer is javascript that sits above your regular html on a webpage. When an IE user visits the site, the script will display a block of HTML encouraging them to switch to Firefox.

You already want people to switch to Firefox. Now’s the time to get serious about it. Google is paying $1 for each new Firefox user you refer.

This is pretty amazing. Now you can advance your ideals, save people from popups and spyware hell, and make some serious money. Millions of people have heard about Firefox and are ready to switch–all they need is a friendly push.

That’s where these scripts come in. They’re specially formulated to give just the right push, maximizing souls-saved and dollars-for-you.

I just installed this script on this blog and I want to figure how this script work, giving me more money of course 😉

How to install this script into WordPress?

  1. You need a Google AdSense account to make referral money for each user switched.
  2. Download Explorer Destroyer and unzip the file.
  3. Pick which level you want to install and open the html file for that level in an html or text editor. See for demos of each level.
  4. Grab the file for the front page of your site and open it in an html or text editor. You should save a copy of the original file in case something goes wrong.
  5. Copy the entire contents of the script file and paste it into your HTML. Where you paste it is crucial. The easiest way to do this is to copy the contents of the script file, select the <BODY> tag in your current page and paste the script over it. That will replace your BODY tag with the correct BODY tag for the script and will place all the script contents where they need to be. In WordPress, you should paste your script into header.php file or you should search where the <BODY> tag exist.
  6. Insert your Adsense referral code into your html. In each of the three levels there’s a section of code that displays the ‘Get Firefox’ button. This code is also how Google tracks your referrals. You need to replace this code with the code for a button from your own Adsense account. To find where your Adsense button should go, look for the grey comment text that says:
    and ends with
    <-- --> 

    To get your own referral button, login to Adsense and click on the ‘Referrals’ tab. Then click on the ‘Firefox’ tab and copy the code for one of the buttons. We suggest using the medium-size square buttons.

  7. Optional: customize the html. You can make any changes you’d like to the HTML that displays when IE users come to your site. Adding a personal message from you is a great way to convince your readers to switch. I recommend to edit the default message because I not sure the default message is acceptable by Google’s policies. Correct me if I wrong 😉

    Click the button on the right to download Firefox.

    My custom personal message is:

    I see you’re using Internet Explorer. I highly recommend Firefox for best view of my site. Try Firefox, you’ll like it better.

    • Firefox blocks pop-up windows.
    • It stops viruses and spyware.
    • It’s better for web designers and developers.
    • Features like tabbed browsing make reading webpages easier.

    – my firefox referral button here –

    But fell free to make your own message or use the default one 😉

  8. Well done! You should test it. Visit the page in Internet Explorer and make sure everything is working like a dream.


See the different view between Internet Explorer and Firefox

  • Firefox View
    Firefox View
  • Internet Explorer View
    Internet Explorer View

😀 Gud lak

WordPress on Debian Linux

in Blogging/Debian/Linux/Tutorial/Wordpress by

This tutorial is how to install WordPress on Debian Linux. Installing WordPress on Debian? What for? Are there many easy ways to install WordPress on our server (Web hosting)? Eventually, We don’t need to know what distro that our server use or what operating system is. You right.

I have a “special” condition here. I need to install WordPress on my own Debian server for testing purpose. If You like me, play around with WordPress as a developer (perhaps you create your own theme or plugin), you should have your own server in your local PC on LAN.

You can use your own server to test your own WordPress theme or plugin before you release it. You can upload and test your theme or plugin directly on your remote server of course, but if you have a little problem with Internet connection (just like me), it is so hard way 😀

These are my little steps to built my WordPress theme or plugin:

  1. Built on my local PC
  2. Upload to my local server
  3. Testing my work and make sure works propertly
  4. Upload to my remote server
  5. Testing again in the “real” condition
  6. Make sure I have no problem with my work
  7. Sharing my work

Let’s start to install WorPress on Debian

Installing http server on Debian

You can see my tutorial how to install http server on Debian, Installing HTTP Server on Debian.

Installing MySQL Database

You can see my tutorial how to install MySQL Database Server on Debian.

Download WordPress

You can download WordPress from their official website.

Upload your WordPress archieve into your debian server

You can use any ftp tools to upload your WordPress archieve into your server.

Extract your WordPress archieve into your server directory

tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/

Using MySQL

Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.

mysql -u ''adminusername'' -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 6 to server
version: 4.0.24_Debian-10sarge1-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> CREATE DATABASE ''wordpress'';
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' 
      -> IDENTIFIED BY 'wordpresspassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT

In the above:

  • adminusername will typically be root, unless you have another high-privileged account set up.
  • wordpress or blog are good values for databasename.
  • wordpress is a good value for wordpressusername.
  • hostname will usually be localhost. If you don’t know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
  • password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.

Write down the values you used for databasename, wordpressusername, hostname, and password.

Configure your WordPress setting

Rename the wp-config-sample.php file to wp-config.php. Open and edit wp-config.php file

// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

Run the Install Script

Using your favorite web browser, visit wp-admin/install.php within the directory into which you just installed WordPress on your web site. For example: point your browser to http://yourserver/wordpress/wp-admin/install.php.

Preview your WordPress

Point your browser to http://yourserver/wordpress.

Well done! You have your own WordPress on Your Debian Server.

😀 Gud lak

Blogger in Beta Review

in Blogging/Google by

August 14, 2006 Blogger has recently launched a new version of Blogger in beta! This is a much awaited update.

Some other changes are that now you can login either with your current blogger account or your Google account.Though only some of the current accounts are upgraded as of now but if you really want to test the features and don?t wish to wait any longer then you can create a new account.

You’ve been asking for ways to do more with your blog, and you can with this new release. With the beta you can:

  • Categorize your posts with labels
  • Control who can read your blog
  • Change the appearance and content of your blog with your mouse instead of HTML

Because the new Blogger uses Google Accounts, you can use your existing Google login, or create a new one. (Later, you’ll be able to merge your current and beta accounts, and have all your blogs in one place.)

😀 Happy blogging and gud lak!

Source: buzz blogger

StatCounter Module for Drupal

in Blogging/Plugin/Project by

StatCounter is a free yet reliable invisible web tracker, highly configurable hit counter and real-time detailed web stats. For more detail please visit StatCounter website.

StatCounter Module adds the StatCounter tracking system to your drupal website. This module is modified from Google Analytics Module by Mike Carter.


  • Drupal 4.7
  • StatCounter Installing Code


Copy the ‘statcounter’ module directory in to your Drupal modules directory as usual.


  • In the settings page enter your StatCounter installing code.
  • You will also need to define what user roles should be tracked. Simply tick the roles you would like to monitor.
  • All pages will now have the required JavaScript added to the HTML footer can confirm this by viewing the page source from your browser.
  • ‘admin/’ pages are automatically ignored by StatCounter.

Change Log

  • 06/27/2006: Upload StatCounter v 1

To Do

  • Add StatCounter installing code at sidebar to visible code as alternative


Using Images to increase Adsense Click Through Rate

in Adsense/Article/Blogging/Tutorial by

What is Clickthrough Rate?

In AdSense publisher reports, clickthrough rate (CTR) is the number of clicks an ad unit receives divided by the number of times the ad unit is shown (impressions).

Images can be use to increase our click through rate. I think it’s a great idea. You can view about this idea from:

Some Tips For Using Images

This tips come from

  • Using images to increase our click through rate is a great idea, and it will also brighten up our site.
  • When picking images, try to choose ones that go with the theme of your site, nut architecture or abstract designs will most likely always look good on any site.
  • Make sure to customize your colors.
  • To make it easier, simply use your adsense control panel and make the ad with the colors you want.

Thx for the tips 😉

I’m going to provide you with some CSS codes to make 728×91 Leaderboard – Preview At Bottom Of Page like the tips above:

Download adsenseleaderboard.png and upload this image to your current images theme folder.

Add this CSS code to your current style.css:

.leaderboard {
     background-image: url(images/adsenseleaderboard.png);
     background-repeat: no-repeat;
     background-position: 0px 0px;
     padding: 53px 0px 0px 0px;
     margin: 10px 10px 10px 10px;
     width: 728px;
     clear: both;
.leaderboard p{
     margin: 2px 0px 0px 0px;
     padding: 0px;
     border-top-width: 1px;
     border-top-style: solid;
     border-top-color: #999;

When you insert your adsense code add this block:

<div class="leaderboard">
<!-- copy your adsense 728x91 Leaderboard code here -->

I’m not an expert about CSS. Please leave your comment here. Any comments will be very much appreciated. Thanks a bunch.

Note: All images from, I had modified all images to make one image with size 728×50. Feel free to make your own image 😀

Good Luck…

Site Meter

in Article/Blogging/Tutorial by

What is Site Meter?

Site Meter is a free, fast, and easy way to add a web counter to your web page. Not only does it display the number of visitors to your web site, it also keeps statistics on the number of visits each hour and each day.

Adding Site Meter to your web page

  1. Register to Site Meter.
  2. Login to your Site Meter.
  3. Go to Manager > HTML Code.
  4. Select the JavaScript or regular version from one of the boxes.
  5. Highlight the HTML code with your mouse.
  6. Copy it to your computer’s clipboard.
  7. Open your web page in an editor (like NotePad) that allows you to see the HTML of the page.
  8. Position the cursor in your page where you’d like the counter to go. A good place is at the bottom of the page right before the </BODY> tag. Paste it into your web page.
  9. Save your web page and upload it to your web server.

Adding Site Meter to WordPress

  1. Select the JavaScript code (containing your sitemeter id ?site=yourid?) with your mouse.
  2. Copy it to the clipboard.
  3. Login to WordPress.
  4. Click on the Presentations tab.
  5. Click on the Theme Editor tab.
  6. In the dropdown list at the top of the page, select the theme that you want to edit.
  7. Click on the Footer Template theme file from the list on the right side of the page.
  8. Paste the Site Meter code inside the div tag at the footer id of that template.
  9. Press the Update File button and Site Meter should show up on the pages of your weblog in the footer.

Adding Site Meter to WordPress – Plugin

Here is a WordPress plugin to automatically add the Site Meter tracking code to all your blog?s pages. It works with WordPress 1.5 and 2.0.

  • Download the plugin.
  • Unzip it and put the SiteMeter.php file into your plugins directory.
  • Go to the WordPress plugins page and click on Activate to turn the plugin on.
  • Go to the Options page and click on the Site Meter tab.
  • Enter the codename of your Site Meter account.
  • Press the Update Options button.
  • That?s all there is to it.

Advantages and disadvantages of Site Meter

It’s about my opinions, but feel free to have your own opinions 😉

  • It’s a free site tracker.
  • Stats by email, email us site meter statistic.
  • Ignore visits, block our own visit.
  • Have traffic prediction. I like this feature very much 😀
  • A visible site tracker, we must upgrade our membership to get an invisible one.
  • Often get 00:00 visit length if only one page view.


Google Analytics

in Blogging/Google/Tutorial by

After waiting for a several days, finally I get Google Analytics Invitation Code from Google Analytics Team. Now it’s time to install Google Analytics on my Blog 😀

What is Google Analytics?

Google Analytics tells us everything we want to know about how our visitors found us and how they interact with our site. We’ll be able to focus our marketing resources on campaigns and initiatives that deliver ROI, and improve our site to convert more visitors. In another word, Google Analytics is a statistics service provided free of charge by Google.

How do we sign up for Google Analytics?

There are several steps to sign up for Google Analytics:

  1. Sign up for Google Analytics by visiting the Google Analytics home page. From there, we’ll be able to create a new free account.
  2. If we don’t already have a Google Account, we’ll need to create one before signing up for Google Analytics. Google Accounts offer single sign-on to many of Google’s applications, and ensure the highest level of security for our account. We can create a new Google Account from the Google Analytics home page.
  3. If we’re an AdWords advertiser, we can also sign up for Analytics from within our AdWords account. Google Analytics has been closely integrated into our AdWords account under the new Analytics tab – click the tab and follow the instructions to start tracking AdWords campaign data and ROI information.
  4. For me, I have to wait for several days to get Google Analytics Invitation Code from Google Analytics Team. If You so lucky, may be you don’t have to wait like me 😉 So be patience for this.
My Google Analytics

How to install Google Analytics on our site

After we received Google Analytics Invitation Code, we have to follow the instructions below to redeem our invitation code:

Option 1: If we have an AdWords account

Signing up for Analytics is easy to do through our AdWords account:

  1. Log in to our AdWords account at and click the Analytics tab
  2. When prompted for our unique invitation code, enter the characters of our invitation code:

That’s it, we’re done! Skip to the bottom of this message.

Option 2: If we don’t have an AdWords account

To sign up without an AdWords account, we’ll need to first make sure that we have a free Google Account before continuing with the sign-up process.

A Google Account is a single email address and password combination that allows us to log in to a variety of Google services, including Analytics, AdWords, Google Groups and our personalized Google home page.

  1. To create our free Google Account, click the link below. Once we’ve provided our information, we’ll need to respond to the verification email that Google send us.
  2. Next, add Google Analytics to our Google Account. Click the link below to start the Google Analytics sign-up process, and enter our Google Account information in the login box provided.
  3. When prompted for our unique invitation code, enter the characters below: XXXX-XXXXX-XXXX

After that we need to “Add Website Profile” in the Google Analytics interface.

  1. Login Google Analytics Home and click “Add Website Profile” menu.
  2. Enter the URL of the site we would like to track and click finish button.
  3. Copy the Google Analytics code block into every webpage we want to track.
    We’ll need to update the “xxxx-x” in the sample above with our own Google Analytics account number. Click done after that.

How to install Google Analytics on WordPress

We can install Google Analytics plugin for WordPress to track our WordPress. Please follow the instructions below to install Google Analytics plugin for WordPress:

  1. Download Google Analytics plugin for WordPress (I use Google Analytics plugin for WordPress from Thx for the plugin 😉 ).
  2. Unzip the file and copy it to our /wp-content/plugins/ directory.
  3. Activate it on the plugins page.
  4. Enter our Google Analytics User Account string (it?ll be something like UA-XXXXX-X. It appears when we “Add a channel”).
  5. Done.

Now we can track our site or wordpress with Google Analytics. I don’t have any experience yet about Google Analytics. I have to explore about it. Good luck to you and me too 😉


1 6 7 8
Go to Top