How to Display Twitter Count in Plain Text

If you don’t like the Twitter Counter Badge provided by TwitterCounter and you want to display your Twitter counter in plain text, actually it is easy. You can just follow the below simple step to do it.

1. Add the following code to functions.php.

function string_getInsertedString($long_string,$short_string,$is_html=false){
  if($short_string>=strlen($long_string))return false;
  $insertion_length=strlen($long_string)-strlen($short_string);
  for($i=0;$i<strlen($short_string);++$i){
    if($long_string[$i]!=$short_string[$i])break;
  }
  $inserted_string=substr($long_string,$i,$insertion_length);
  if($is_html && $inserted_string[$insertion_length-1]=='<'){
    $inserted_string='<'.substr($inserted_string,0,$insertion_length-1);
  }
  return $inserted_string;
}

function DOMElement_getOuterHTML($document,$element){
  $html=$document->saveHTML();
  $element->parentNode->removeChild($element);
  $html2=$document->saveHTML();
  return string_getInsertedString($html,$html2,true);
}

function getFollowers($username){
  $x = file_get_contents("http://twitter.com/".$username);
  $doc = new DomDocument;
  @$doc->loadHTML($x);
  $ele = $doc->getElementById('follower_count');
  $innerHTML=preg_replace('/^<[^>]*>(.*)<[^>]*>$/',"\\1",DOMElement_getOuterHTML($doc,$ele));
  return $innerHTML;
}

2. Copy and paste the following short code to anywhere on your theme files, remember replace your twitter username.

<?php echo getFollowers("yourtwitterusername")." followers"; ?>

How to Setup Hotmail POP3 in the Email Program on Your PC or Mobile Device

I don’t like to use free email service without POP3 technology, that’s why I already say goodbye to Hotmail for long time ago. Since Hotmail officially announced that that POP3 technology is now available to Hotmail users worldwide, may be I will consider to use back as I have been waiting for so long for this.

What is POP3? It is a protocol that allows almost any e-mail software program that you’ve installed on your mobile phone or PC to get messages from your e-mail inbox on the web and deliver them in the designated program. For example, you can use Outlook Express to setup Hotmail account. During setting up Hotmail account in Outlook Express, you may be asked for the following information.

POP server: pop3.live.com (Port 995)
POP SSL required? Yes
User name: Your Windows Live ID, for example yourname@hotmail.com
Password: The password you usually use to sign in to Hotmail or Windows Live
SMTP server: smtp.live.com (Port 25)
Authentication required? Yes (this matches your POP username and password)
TLS/SSL required? Yes

How to Uninstall XAMMP in Windows Vista

XAMMP and WAMP allow you to run WordPress on your PC, but I prefer to use WAMP, that’s why I want to uninstall XAMMP that I have installed before.

I’m using Windows Vista, I found that I can’t even uninstall XAMMP and this caused WAMP cannot be run properly. I have tried to find solution from Internet but unfortunately I can’t get any help from that. I nearly give up to give it a try, I was thinking that to format pc and install back Windows again in order to solve this problem.

After that, I suddenly figured out that normally Windows Vista requires us to run software and application that we install as administrator. That’s right! All you need to do is to run xampp-control.exe as administrator (right click xampp-control.exe file and choose Run as Administrator), and then stop the Apacha and My SQL, then you can uninstall without any problem.

Quick Way to Remove Advertisement from Msn Live Messenger

Do you use msn live messenger? Those people who have use it, I know you will hate the advertisement on the msn, you may accidently click on it, right or not?

Actually you can remove the advertisement from msn by using Live Advert Remover. Just click on this link and download it to your computer and then run it with few simple steps, very easy!

Please note that Live Advert Remover does not make the default Live Messenger banner disappear, so the banner will remain intact, but it is never replaced by a commercial advertisement.

Google Analytics Video Tutorial

Google Analytics service is offering traffic measurement and interactive reporting for small and large sites, which includes visitor tracking, navigation analysis, and many more. I believe that many webmaster has using it now. If you are still not familiar using Google Analytics, I hope the below Google Analytics video tutorial can help!

Public Blog Post Using Microsoft Words 2007

Microsoft Words 2007 allows you to create a new blog post and public to your blog provider. Here are the easy and simple steps to do so.

1. Go to Office Button > Public > Blog

2. “Register a Blog Account” dialog box will be displayed
3. Click “Register Now”
4. Choose your blog provide, for example wordpress

5. Enter the required information as per example below

6. Then you can start to write something and click public button to publish your post, that’s all.

Install and Run Wordpress in Your Computer

Last time when I want to test my design for my free wordpress theme, I will upload to my web hosting and run it in live. Recently, I started to learn how to run wordpress locally in Windows in order to save my time when the time I want to design free wordpress theme.

Here is a simple and easy guide that will help you install and run wordpress locally in your computer.

1. Download XAMMP lite for windows. Choose the exe version and then extract it in the root of C drive

2. Browse to C:\xampplit and double click setup_xampp.bat

3. Double click xampp-control.exe and start the Apache and MySql services

4. Open your browser and go to this address: http://localhost/. From the menu on the left column, choose your preferred language
5. Click on phpMyAdmin on the left bottom of the page

6. Create new database by entering the information as per following picture
7. Download Wordpress and unzip it under c:\xampplite\htdocs.
8. After unzip the wordpress, browse to c:\xampplite\htdocs\wordpress and you will see a file named wp-config-sample.php. Open it in your favourite text editor and replace the default values by the ones you see under this paragraph. Save the file as wp-config.php (under the same folder).

// ** MySQL settings ** //
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username
define(‘DB_PASSWORD’, ”); // …and password (needs to be empty, just for local install)
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

9. Open your browser and navigate to http://localhost/wordpress/wp-admin/install.php, set up the wordpress as per instructions.

Phone cards for domestic and international use, great rates and excellent connectivity.
International calling card plans offer the ultimate in convenience for phone card users at the lowest cost available.
Australia international phone cards for low-cost international calls from United States to Australia.

canvas prints from photos
Find Discount Perfume cheap next day delivery
Dog House