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
...

Sunday, October 25, 2015

NT式驱动和WDM

设备管理器中打开显示隐藏设备开关,就能在非即插即用中列出所有NT式驱程,显示的名称并非设备名称,也非设备的符号链接名称,而是CreateService函数中的参数lpServName。 AddDevice是WDM独有的,由PNP函数回调;而NT式驱动只能在DrvEntry调用IoCreateDev(即驱动加载以后设备也创建好了)

句柄之于Windows

内核对象都有安全属性,所有CreateXXX(lpSecurityAttr)函数都不会直接返回指针给用户,这就是句柄存在的意义。进程内的句柄值是唯一的,所以CloseHandle(hid)会准确地关闭相应的内核对象。内核对象都对应一个数据结构(比如KEVENT),通过句柄可以获得对象的指针(比如PKEVENT),方法是使用ObReferenceObByHandle(当然也可以通过内核对象的名称获取对象指针)。

Thursday, October 22, 2015

系统线程

系统线程隶属于系统进程(例如进程号为0的SystmIdleProc,csrss.exe,System等等),使用PsCreateSystemThread可以创建系统线程(这个函数也可以创建系统进程).

自旋锁

在单CPU系统中,获取自旋锁的原理是将IRQL提升至DISPATCH_LEVEL,这样线程是无法被调度的,因此资源就必定被该线程所占有;这种同步方法与其他同步方法有本质区别,比如等待事件发生的线程可以被调度。

Wednesday, October 21, 2015

红辉跑腿公司

公司(主要)通过微信公众号来运营,公众号的名字和你注册的公司名字最好相同,且名字要唯一(至少百度和谷歌将来都能精确地搜索出来)。

公众号提供的服务模式为: 买家和卖家在系统内都有帐号。买家提需求,卖家由公司联系。

公众号提供的服务流程为: 买家在公众号内发布任务(每一个任务在系统里有一个唯一的标志号),公司员工联系卖家,卖家接受任务以后,这一任务对卖家可见,且卖家负责跟这一任务直到任务关闭和评分.

需要注意: 公司、买家和卖家建立在诚信的基础上, 对于信誉不好的卖家和买家,公司将其列入黑名单。

西三一大学

西三一大学是加拿大一所私立基督教文科大学(西应该指的大温地区的西部,三一是指三一神,即耶稣基督),提供本科和硕士课程,在教会学校中名列前茅(排名请参考http://www.360chuguo.com/liuxue/ca/00167208.htm).

学校位于加拿大哥伦比亚省兰里地区(Langley,BC,Canada),兰里地区靠近美国、白石(富人区、旅游区)和列治文(华人区)。

请参考学校主页( twu.ca, Trinity Western University at Canada )

请参考课程介绍

请参考入学要求和联系方式

Tuesday, October 20, 2015

MakeEarningsByYoutube上传挣钱YouTube

上传自制视频或者没有版权的视频(并入微信里的个人创作)并一劳永逸地获利是个不错的网赚手段。

为了通过视频赚钱并获得付款,您需要将 AdSense 帐户与自己的 YouTube 帐户关联起来。

在youtube中打开自己账户的频道设置->高级,设置国家为加拿大(中国不是youtube的广告合作伙伴)。

在频道设置中,按获利按钮,并为我的帐户启用获利:系统会将您重定向到 AdSense 以关联您现有的 AdSense 帐户,在您完成此过程后,系统会将您重定向到 YouTube.

Friday, October 16, 2015

炒外汇通俗扫盲

炒外汇通俗扫盲

什么是货币对

货币对是指炒汇时可以相互兑换的两个货币,比如USD/CAD表示美元 VS 加币(炒外汇时人民币不对任何货币),这里美元是基础货币(base currency),加币是引用货币(quote currency,或者terms currency)。

什么是点(pip/PIP)

点即是汇率中的万分位(即0.0001),另外,汇率精确到十万分之一,所以十万分位称为分点(fractional pip)。

什么是手(lot)

一个标准手是10万,一个迷你手是1万;外汇买卖中,手和合约是同义词,1手就是一个合约(后者比较费解)。

不考虑杠杆,如何计算盈亏?

例(1):熊熊以1.28654的汇率买USD/CAD, 以1.28713的汇率卖,交易量都是1个迷你手,请问本次买卖的盈亏如何?

答: 熊熊先把12865.4加币换成1万美金,然后将1万美金以1.28713的汇率换回,他的盈亏=(1.28713-1.28654)*10000=5.9 加币


例(2):熊熊以0.743的汇率卖CAD/CHF, 以0.74197的汇率买,交易量为2000,请问本次买卖的盈亏如何?

答: 盈亏=(0.743-0.74197)*2000 = 2.06 瑞士法郎 = 2.06/0.74197=2.776=2.78 加币。

从以上两例不难看出,因为法郎目前比加币值钱,所以加拿大人目前炒法郎很刺激。

考虑杠杆,如何计算盈亏?

外汇买卖几乎都要带杠杆玩,带不带杠杆盈亏都是一样的。那么杠杆有什么意义呢?比如例(1)中,你不能用1万多块来炒外汇,因为口袋里只有2千多块,那就需要借钱玩,这时候就用到杠杆了。现在假设杠杆是10倍的(加拿大人能玩的杠杆是IIROC决定的,每一种外汇对的杠杠值参见Trading Handbook),那么帐号中至少要有12865.4/10=1286.54的加币(其余的钱都是借的),但是最好多放点,因为汇率又涨也有跌。

什么是未实现的盈亏(unrealized p/l,即 unrealized Profit and Loss)

假设以0.74196卖出2迷你手的CAD/CHF,现在要将其买回,实时买入价为0.74251,那么你的盈利为(0.74196-0.74251)*2000..., 算出来的数字就是未实现的盈亏。

如何计算保证金消耗

...

Saturday, October 10, 2015

中国联通在线业务办理

前些天手机2G转4G,竟然把国际漫游业务(联通的国际漫游和国际长途是绑定的)给转没了,这时想到了在线办理业务。

使用联通微信这个公众号和预设指令,我查到天津市和平区的联通客服qq,把身份证放在白纸上并写明"仅用于开通国际漫游"然后拍照传给在线客服,几分钟之后就办好了,避免了去营业厅,真的很棒。

以后还是尽量使用联通微信和客服qq吧,很不错的哦!