Saturday, October 31, 2015

Raise Google Ranking

Raise Google Ranking

Google's search engine uses a variety of methods to determine which pages are displayed first in the results. Their exact formula is a secret, but there are always a few things you can do to improve your positioning. The term for this is Search Engine Optimization (SEO).

Keyword Phrases

A keyword phrase is, generally speaking, the words you think someone is most likely to put into a search engine to find your content. They should appear in your content. Don't overdo it( If it looks spammy, it probably is ) or hide your keyword such as making text "invisible."( It doesn't work. In fact, some of that behavior even get your website banned).

Name Your Pages

Give your pages a descriptive name with the title attribute. This is vital. Google often displays search results as a link using the Web page's title.When appropriate, use the page's keyword phrase in the title.

Links

One of the biggest factors Google looks at is the hyperlink. Google looks at both links to and from your website.Google looks at the words you use in links to help determine the content of your page. Rather than saying, "click here to learn more about SEO" you should say: Read more about SEO (Search Engine Optimization).

Links from other websites to your website are used to determine PageRank.You can improve your PageRank by exchanging text links with other relevant websites(Note:pages that want to charge you for this service are often known spammers that can hurt your rank).

Links are another area where you shouldn't overdo it. A page that is nothing but a list of links is spam.

Social Networking

Social networking sites can be a good way to promote a site, Google+ promotion may have the most impact. That said, you may find that a great deal of your traffic comes from social networks, so be sure to make your content social friendly.

Make Your Graphics Search Friendly

Give your images alt attributes. Not only does it make your website more accessible to the visually impaired, it also gives you another chance to place your keywords where Google can see them.

use robots.txt

User-agent: *
Allow: /

Use Serps.com to check your site’s keyword rank:
Ranking queried from Serps.com

To find out how many visitors reach your site, log into your Google Analytics account and check out the acquisition channels report. This helpful Google Analytics video tutorial will guide you.

As well as analyzing your search traffic, it’s worth paying attention to the keywords that generate traffic for your site. One way to find these is with a tool called Serp Fruit. It's still in beta, but I’ve been using it. One reason I recommend it is because it's simple to use.

Following links may help:
http://google.about.com/od/searchengineoptimization/qt/improverank.htm
http://neilpatel.com/2014/12/02/improve-google-rankings-without-getting-penalized/
www.thesitewizard.com/archive/google.shtml

Wednesday, October 28, 2015

install_Vc6_on_Win7

精简版安装(不适合编译大工程):

  1. Prepare VC 6.0精简版:
    • VC6.0精简版下载地址:http://pan.baidu.com/s/1sj6VF6t 密码:jnfg
    • http://www.downcc.com/soft/24456.html
  2. //Let installation to skip Java update check: create zero byte file C:\Windows\MSJAVA.DLL
  3. 安装完成后,“右键 -> 属性 -> 兼容方式”进行设置WINXP SP2以及以管理员方式运行

完整版安装:

  1. VC6.0完整版(集成SP6,支持WIN764/32)下载地址:http://pan.baidu.com/s/1c0zneDU 密码:ebon
  2. 选择自定义安装,如果有“OLE/COM Object Viewer”,选项去掉(不兼容);去掉其他用不上的功能
  3. 在询问是否注册环境变量是,选择是
  4. 安装XP Platform SDK(本人的处理器为intel AMD64,所以下载XP_2003_SDK-amd64.exe,此sdk支持win2003和XP):
    • OPEN MSDEV,From the Tools menu, click Options....,select the Directories tab, Add a new directory entrY AS FIRST:C:\Program Files\XP_2003_SDK\Include
    • select Library files,Add a new directory:C:\Program Files\XP_2003_SDK\Lib
  5. 编译IDE快捷方式设置以管理员方式运行,但是不要设置兼容模式(打开FortiAvEngine会Crash)
  6. 下面是安装完成后常见问题的解决方案:http://c.biancheng.net/cpp/html/2241.html

linux cmds

  • decompress tar.bz2: tar jxf FILENAME
    j - deal with bzipped file
    x - extract
    f - read from a file, rather than a tape device
    v - verbose output (lists all files as they are extracted)
    -C existing_dir: extract files into this dir
    

list of env vars in windows

%cd% : current dir
%ProgramFiles%
%ProgramFiles(x86)%

view and set env var in bat

echo %ProgramFiles%

set ProgFiles=%ProgramFiles%
if exist "%ProgramFiles(x86)%" set ProgFiles=%ProgramFiles(x86)%

Sources文件

环境变量
$BASEDIR: DDK安装路径,如D:\ProgramFiles\WinDDK7600.16385.0
$_NTDRIVE !!DDK安装路径的驱动器目录,如D:\ProgramFiles\WinDDK7600.16385.0,则$NTDRIVE=D:
$_NTROOT $BASEDIR-$NTDRIVE,如$BASEDIR=D:\ProgramFiles\WinDDK7600.16385.0,则\ProgramFiles\WinDDK7600.16385.0
例1:
TARGETNAME=HelloDDK
TARGETTYPE=DRIVER
TARGETPATH=d:\t  //生成的sys文件放在TARGETPATH下
INCLUDES=$(BASEDIR)\inc;\
         $(BASEDIR)\inc\ddk;\
SOURCES=Driver.cpp\
例2:
TARGETNAME=HelloWDM
TARGETTYPE=DRIVER
DRIVERTYPE=WDM
TARGETPATH=d:\t
INCLUDES=$(BASEDIR)\inc;\
         $(BASEDIR)\inc\ddk;\
SOURCES=HelloWDM.cpp\

Tuesday, October 27, 2015

吐槽大温2015新交规

2015新交规应该是异常严厉了,照这个罚法我裤衩都穿不起了 以下列几条猛的,平时总犯。
0 改住址超过10天通知DMV(Driver Licensing Office): CA$214
1 在双闪的校车后面不停要罚: CA$675
2 右转弯红灯不停: CA$533
3 非法U形转(U-Turn):CA$284
4. 超速:低于16迈(CA$224), 高于16迈(CA$338)
5. 开慢了: CA$328
6. 停牌越线:CA$284
7. 占公交站:CA$976
8. 开汽车大灯不关:CA$382
...