On branch master Changes not staged for commit: (use"git add <file>..."toupdate what will be committed) (use"git checkout -- <file>..."to discard changes in working directory)
modified: readme.txt
no changes added tocommit (use"git add"and/or"git commit -a")
证明当前有文件已经修改,但是没有准备提交的修改,没有add和commit 结果B:
1 2 3 4 5
On branch master Changes to be committed: (use"git reset HEAD <file>..."to unstage)
modified: readme.txt
证明当前已经有文件提交了,但是还没有commit 结果C:
1 2
On branch master nothingtocommit, working directory clean
证明当前所有文件已经提交到本地仓库,工作目录是干净的 5.查看git日志
1
git log
结果:
1 2 3 4 5 6 7 8 9 10 11
commit aca3fe6cc3f49ded922d05e4774561f33697f710 Author: Qingcai Cui <1016903103@qq.com> Date: Sun Nov 212:16:252014 +0800
v2
commit 90eea044b6da3818770ec482df98bb05ab569472 Author: Qingcai Cui <1016903103@qq.com> Date: Sun Nov 212:07:462014 +0800
intmain() { pcap_if_t *alldevs; pcap_if_t *d; int i=0; char errbuf[PCAP_ERRBUF_SIZE];
//获取本地机器设备列表 if (pcap_findalldevs_ex(PCAP_SRC_IF_STRING, NULL , &alldevs, errbuf) == -1){ //获取设备列表失败,程序返回 fprintf(stderr,"Error in pcap_findalldevs_ex: %s\n", errbuf); exit(1); }
//打印设备列表 for(d= alldevs; d != NULL; d= d->next) { printf("%d. %s", ++i, d->name); if (d->description) printf(" (%s)\n", d->description); else printf(" (No description available)\n"); }
if (i == 0){ //没找到设备接口,确认WinPcap已安装,程序退出 printf("\nNo interfaces found! Make sure WinPcap is installed.\n"); return-1; }
//不再需要设备列表了,释放它 pcap_freealldevs(alldevs);
return0; }
运行结果:
1 2 3 4 5
1. rpcap://\Device\NPF_{5AC72F8D-019C-4003-B51B-7ABB67AF392A} (Network adapter 'Microsoft' on local host) 2. rpcap://\Device\NPF_{33E23A2F-F791-409B-8452-A3FB5A78B73E} (Network adapter 'Qualcomm Atheros Ar81xx series PCI-E Ethernet Controller' on local host) 3. rpcap://\Device\NPF_{DCCF036F-A9A8-4225-B980-D3A3F0575F5B} (Network adapter 'Microsoft' on local host) 4. rpcap://\Device\NPF_{D62A0060-F424-46FC-83A5-3394081685FD} (Network adapter 'Microsoft' on local host) 5. rpcap://\Device\NPF_{B5224A53-8450-4537-AB3B-9869158121CD} (Network adapter 'Microsoft' on local host)
在SAE上搭建自己的WordPress博客之后,接下来的工作会轻松比较多。还有一些细节上的处理问题在此做一下记录 1.绑定域名 首先,你必须有一个自己的域名,建议在国外网站注册域名,首先国外的域名不需要备案的,其实按常理来说是国外域名不需要备案,但是国内的一些机构规定了是国外主机才不需要备案。建议的网站有Godaddy、name、enom、Ipower、domainsite 不过就可能比国内网站贵.所以我在新网上注册的域名,不过比较坑的是它不支持二级域名绑定。 就比如说我想直接想用域名定位到121.250.211.33/wordpress 即直接用域名代替以上内容是办不到的。但是国外网站的支持这种功能。国内的应该也有,不过没有尝试过。 那么,有了域名之后,在sae上项目绑定域名选项,他会提示: 请 把e31549a6ef.cqcre.net通过A记录解析到178.19.181.223完成域名身份验证。 域名身份验证将在SAE获取到相关DNS记录后完成(由于各地DNS Cache的影响,此过程可能需要较长时间,但一般情况下在您解析完验证域名后一天之内能完成验证)。 那么在你的DNS服务器上设置A记录和CNAME记录就好了。 2.SEO优化 超强插件 all in one seo 下载地址:http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip
做完网站怎么能不加seo优化呢?按完插件之后就设置主页标题、关键字、文章标题seo title 等等的东西咯。另外还有各种复杂的功能就不一一赘述了,seo优化还需要你做很多动作的。要不然怎么有人整天花那么多时间做seo优化呢?
x = @(a) fzero(@(x) exp(x)+x^a+x^(sqrt(x))-100,4) h = @(xx)arrayfun(@(a)fzero(@(x)exp(x)+x^a+x^(sqrt(x))-100,4),xx) a = 0:0.01:2; plot(a,h(a))
或者
1 2 3 4 5 6 7 8
>> f = @(a)@(x)exp(x)+x^a+x^(sqrt(x))-100 f = @(a)@(x)exp(x)+x^a+x^(sqrt(x))-100 >> f(a) ans = @(x)exp(x)+x^a+x^(sqrt(x))-100 >> aa = 0:0.01:2; >> plot(aa,arrayfun(@(a)fzero(f(a),4),aa))
5.创建符号对象
1 2 3 4 5 6 7 8 9 10 11
>> a = sym('5'); >> b = sym('b'); >> syms c d e; >> whos Name Size Bytes Class Attributes
a 1x1 112 sym b 1x1 112 sym c 1x1 112 sym d 1x1 112 sym e 1x1 112 sym