• Home
  • About

szehau's weblog

Life, Internet, Software, Gadgets, Programming and Investments

  • life log
  • internet
  • programming
  • software
  • working holiday
  • gadget
  • project

Gong Xi Fatt Cai

Tommorrow is the First Day of Chinese New Year. At here, I wish you all have a prosperous chinese new year, Gong Xi Gong Xi.

I will be back to home town today at Johor and will be ‘offline’ for a few days… no internet connection there…

See you.

Happy Birthday Mozart

Saw this google logo today:

Mozart

Who is Mozart?
Answers

Google Advanced Reports

Just notice something new in the google adsense’s report. The Google content reports and Google search reports are intergrated into a new report called Google Advanced Reports.

Simple programming trick

How do we swap values of two integer variables?

Normally we will introduce a third variable as the temporay storage. For example in C/C++:

int a = 123456;
int b = 567890;
int temp;

temp = a;
a = b;
b = temp;

Ok the question now is: How do we swap values of two integer variables without third variable?

Here is the trick:

int a = 123456;
int b = 567890;

a ^= b;
b ^= a;
a ^= b;

Don’t believe? You can try it out yourself.
Note:

  • only for integer values (eg. 8, 16, 32, 64 bits integers)
  • ^ means eXclusive OR (XOR)

Explaination:
When a value is XOR with another value, the result is actually “storing” value of two values. When one of the original value is XOR again with the result value, you will get the another value. For example:

int a = 123;
int b = 456;
int resultOfXOR;

resultOfXOR = a ^ b; // "storing" 2 values

resultOfXOR ^ a; // return value of b
resultOfXOR ^ b; // return value of a

From the above code

int a = 123456;
int b = 567890;

a ^= b; // storing a^b into a. a becomes result of XOR
b ^= a; // get value of original a by resultOfXOR^b and store into b. Now b = 123456.
a ^= b; // get value of original b by resultOfXOR^b and store into a. Now a = 567890.

// Finally b = 123456 and a = 567890

That’s the beauty of XOR.

3 simple ways to increase your website’s traffic

Found this interesting article from problogger.net and find that might help you in increase your blog’s traffic:


Three simple actions that doubled my website traffic in 30 days

…

  1. First, I made the most of Technorati tags. I tagged every key word in each of my posts. Initially I did this manually but them I discovered a WordPress plugin called SimpleTags that made the job a whole lot easier.

    I found that by tagging my post effectively they were getting a lot more attention then their untagged counterparts, and as an added advantage I was getting focused, quality traffic to the site!

  2. I leveraged my existing website. I’ve been running my business website for a few years and that was getting modest levels of traffic that was relevant to my blog – so why not try to drive some of that to my new blog! I placed a few FeedBurner headline animator blocks on some of my most popular pages and after a day or so I noticed a significant increase in traffic for 5 minutes worth of work on my part.
  3. Finally, I made effective use of trackback links to popular sites. If I commented on a post on another site I would make sure that I set up the appropriate trackback for it. The results from this are varied depending on the site and post that you are linking to but since I liked to comment and interact with the wider blogosphere anyway, it was free traffic!

…

What I think…

  1. I don’t like tags on my post. I feel that it will drecrease my site’s traffic. When visitors see the tags, they migh click on it. I did get traffic from Technorati but I don’t have any tag on my site. Instead I use the ping service. I make ping to Technorati ‘s ping service (http://rpc.technorati.com/rpc/ping) whenever I write a post. You can make this automatically by putting the URL under WordPress Admin’s Options – Writing – Update Services
  2. FeedBurner – yes this might help a bit. Many blogger did this. You can subscribe to FeedBurner and put the feed animator as your signature on your other site and forums
  3. Agreed with him. You can have backlinks and traffic for free. But you do not spam other people website. Most people hate that.

For me, the content is the king! When you have good quality of content, search engine and traffic will come to your site automatically and slowly. Keywords are one of the key element, try target more niche keywords instead of general keywords. Please do not over mention the keywords, search engine might think you are spamming with keywords. Put those targeting keyword in page title, keywords (meta tag), title of article and first paragraph of the article. Although some search engines (e.g. Google) do not recognize keywords in meta tags but the is no reason we don’t want to put it in for other search engines.

Hope this will help :)

« Previous Page
Next Page »

Email News Letter

Sign up to receive updates daily and to hear what's going on with us

More Posts

5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic

June 1, 2021 22:15 By Sze Hau

LED Downlight

Troubleshooting A Flickering LED Downlight

February 13, 2016 00:29 By Sze Hau

Repair A Broken iPhone Lightning Cable

January 30, 2016 00:54 By Sze Hau

Blog Network

  • Personal Fincance Personal Finance – Personal Money Tips, Stock Investment, Small Business and Make Money Online
  • Snippet IT Information technology news, ideas and experiences and opinions

Recent

  • 5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic
  • Troubleshooting A Flickering LED Downlight
  • Repair A Broken iPhone Lightning Cable
  • New Gadget – MacBook Pro with Retina Display (2015)
  • One Watt LED Night Light

Search

Tags

2014 adsense advertisement Arduino baby blog blogtal Canon EOS 400D Chinese New Year Christchurch CNY DiGi DIY electronic FBM Flickr Flickr Uploadr Google Google Maps Google Search Results Google Webmaster Central investment joke KLCI KLSE Lake Tekapo LED MacBook Air Maybank2u Motueka movie mutual funds New Zealand PC Fair 2009 Queenstown restaurant for dinner sharing stock trackback Twitter unit trust visa wordpress wordpress plugin working holiday