Project Development: 2012

Wednesday, October 17, 2012

Play your Local Repo with Remote

This article is typically a note-like one.

Facing the situation that Linux is the only system platform of three (Windows, Mac, Linux) which doesn't have a github client, then I have to play with command, especially my Egit for Eclipse doesn't work very well for remote operations.

Then comes the following command to help me push my commits to the remote repo, or fetch the remote to my local git.

1st, Before you start any push or pull operations, you need to create a new stream that assigns the original repo to a remote, which here is called "upstream"
git remote add upstream

2nd, Fetch

git fetch upstream
# Fetches any new changes from the original repo

# Here original repo is the remote one.

3rd, Merge

git merge upstream/master
# Merges any changes fetched into your working files

4th, Push

git push upstream master
# this push new updated files to the remote
# before you push, you need to add those files and commit it.

The detail Git Cheat is Here.

Updated: a new found article could be found here, which explains everything I did above, while it adds plenty details. You could give it a check.

How to Submit your Google Site to Bing.

For a certain reason, I need to submit a website which is hosted by Google Sites to Search Engin Bing. (The certain reason is the people who make this request provides me my daily lunch, yeah, that's my wife, I just can't reject.)

Initially I think it would be easy, since if you need to add some websites to these big search engins like Google and Bing, all you need to do is creating an account on their "webmaster tools" (Google, Bing), and then copy the meta tag which generated by these services and paste it on your website default landing page's header, all the other jobs are left to these big engins, they will do their crawl and have a copy of your website on their server.

However, since I tried to submit her non-profit purposed website on bing webmaster tools, it's not that easy as I imagined.

1st, you need to enter the url(or address) on your browser,
It will looks like:
Fill out with your website address and the characters on that picture for security purpose.
For my website, the url to fill is:

2nd, After you signed in, you will see,

It asks you to provide the sitemap, which is pretty helpful for the crawler, but you don't really need to provide it now, you can just click ADD Button.

3rd, Verify your ownership of that website,
There are 3 options you could choose,

Option 1: Place an XML file on your web server

  1. Download BingSiteAuth.xml
  2. Upload the file to
  3. Confirm successful upload by visiting in your browser
  4. Click the verify button below
For Google Sites, you have to use this option until you have your own doman.
All you need to do is go to your website -> More -> Manage Site -> Attachments -> Upload
Notice: Upload the BingSiteAuth.xml you downloaded from the page at the top level.

Other two options will looks like:
For Option 2, it's the general way to make your website verified. If you have a blogger or some other similar website, you can just use this option. Right now, Google Sites would not allow you to add any meta tags on your site, so you can not use this option on your Google Sites.

For Option 3, If you have your own doman, you need to use option 3.

Wednesday, September 5, 2012

How to add Facebook Comment Plugin on your Blogger.

Many people are having fun with their facebook account, so why don't we have every notification go to your facebook, that's the intuition I had to have the facebook comment plugin on my tech bloggers.

1st, on, create a new facebook app.

  • Fill out the Display Name;
  • Update the contact email if you need to;
  • App domain is the web url without protocols, like http, https, etc.. Ex:
  • Check the option: Website with Facebook Login, Fill the Site with your full URL address, Ex:
  • Save.
2nd, go to your blogger,
  • Click the Template;
  • Click the "Edit HTML";
  • Confirm Proceed;
  • Check the "Expand Widgets Templates";
  • add the following line to next to <head>
    • <meta content='********' property='fb:admins'/>
      • open this link to get your fb:admins id:, fill username with your username.
    • <meta content='This is on your facebook dashboard' property='fb:app_id'/>
  • Find Tag: <data:post.body/>
  • Insert the following code just next to that tag you found.
    • <!-- Facebook comment start -->
    • <b:if cond='data:blog.pageType == &quot;item&quot;'>
    •   <script src=''>
    •   </script>
    •   <fb:comments expr:href='data:post.url' num_posts='10' width='600'/>
    • </b:if>
    • <!-- Facebook comment end -->
& Enjoy your Facebook cored experience.

Tuesday, July 10, 2012

Power Searching with Google, Class 1

Lesson 1,
Lesson 2, Filter image by color.
    fill the keywords in search box, then you could choose color on the left bottom, which is usually the color of background of images.
    Also, you could put your cursor on the image, the image will pop up, then you could click similar to find all the images with the similar idea or context.

     search table or data statistic related images, choose color white as the filter

Lesson 3, How Google Works.

The next several questions explore what elements impact the order in which Google returns your results. Mark whether each statement is true or false, according to Matt Cutts:
  1. Pages that have the words you type in, or synonyms for those words, are listed higher.
     True  False
  2. Pages with font size the same as you type into Google get listed first.
     True  False
  3. Pages where the words you typed in appear in the title or web address get listed higher.
     True  False
  4. Webmasters can get higher ranking in the results by paying Google money.
     True  False
  5. "If the words you type in appear near each other on a page, it may get listed higher in your results.
     True  False
  6. Pages which are linked to by lots of other pages--especially other high quality pages--are listed higher.
     True  False 

Lesson 4, The art of keywords choices.

Lesson 5, The words order matter.
Search Tips:
  • In the last video you learned to identify the factors that have an effect on search queries.
  • Word order matters.
  • Small words (a, the) sometimes matter, like when they distinguish between two similar entities.
  • Punctuation that matters: $, #, and + (when used as C++, Google+)
  • Punctuation that Google ignores: ¶, £, €, ©, ®, ÷, §, %, (), @, ?, !

Lesson 6
Finding text on a web page
Command-F or Ctrl-F.