publicclassMainActivityextendsActivity{ privateEditTextedit; privateListViewlist; privateString[]str=newString[]{"1232","45","4631","123485", "87894","4156","1564","5465","45612","98","1247","59789", "7897862","578631","48876","215","2148","7985"}; Arra..
分类:
其他好文 时间:
2015-04-29 07:21:13
阅读次数:
107
publicclassMainActivityextendsActivity{privateEditTextedit;privateListViewlist;privateString[]str=newString[]{"1232","45","4631","123485","87894","4156","1564","5465","45612","98","1247","59789","7897862","578631","48876","215","2148","7985"};ArrayAdapterad..
分类:
其他好文 时间:
2015-04-29 07:21:41
阅读次数:
139
In Keil C, it is necessary to implement char putchar(char c), or the powerful function printf would not work.
We should notice in here : new line command for serial output be "\r\n" (line feed:LF,...
分类:
其他好文 时间:
2015-04-29 07:18:43
阅读次数:
128
1、国内电话号码验证的正则
包含手机号码 号段仅现有号段,电话包含区号和分机号
(^0?(1((([3,5,8]\d?))|(4[5,7]?)|(7[0,7,8]?)))\d{8}$)|(^((0((((10)|(2\d?))\-?(\d{8})|([3-9]\d{2})\-?(\d{7})))|(\d{7,8})))(\-\d{1,5})?$)
2、Email验证的正则
^(...
分类:
其他好文 时间:
2015-04-29 07:16:35
阅读次数:
115
http://v.qq.com/page/a/h/u/w041493ct5y.htmlhttp://v.qq.com/page/a/h/u/w0414auylb0.htmlhttp://v.qq.com/page/a/h/u/w0414b14qwm.htmlhttp://v.qq.com/page/...
分类:
其他好文 时间:
2015-04-29 07:12:18
阅读次数:
190
4月份有些冲动,想报名考个CCDH证书,一直没有找到合适的付款方式,因为自己没有外币信用卡,后来受到朋友的帮助,22号付了款,26号就去考了试,不是很满意,如果少冲动一下,多看两天书,效果会更好。
分类:
其他好文 时间:
2015-04-29 07:14:00
阅读次数:
174
'const' keyword is for creating a read only variable, something you can never change once created.'const' likes 'let' keyword alos has block scope.des...
分类:
其他好文 时间:
2015-04-29 07:10:13
阅读次数:
125
float a=INFINITY;if(a==INFINITY){ cout<<"a is inf"<<endl;}else{ cout<<"a is not inf"<<endl;}输出结果为:a is inf没问题。但是:float b=-INFINITY;if(b==-INFINITY){.....
分类:
其他好文 时间:
2015-04-29 07:10:06
阅读次数:
155
1、在创建目录cd /mnt/xvdbmkdir qingtong2、复制目录和权限cp -rp /Uploads/ ./-r 包括目录 p权限3、创建软链接ln -s /mnt/xvdb/qingtong/Uploads/ ./Uploads
分类:
其他好文 时间:
2015-04-29 07:10:34
阅读次数:
122
1. 查看未挂载的硬盘fdisk -l2、直接格式化mkfs.ext4 /dev/xvdb3、新建文件夹mkdir /mnt/xvdb4、挂载硬盘mount /dev/xvdb /mnt/xvdb6、设置开机自动挂载/dev/xvdb /mnt/xvdb ext4 defaults 0 0重启后生效
分类:
其他好文 时间:
2015-04-29 07:08:52
阅读次数:
120
http://s.dianping.com/topic/8128740?addNote=8128740http://s.dianping.com/topic/8128740?addNote=8128740 http://s.dianping.com/topic/8128740?addNote=812...
分类:
其他好文 时间:
2015-04-29 07:08:16
阅读次数:
123
1、以struts2为主。struts2内置了对velocity的支持,只要在success.vm即可自动解析velocity的模板文件。问题:直接访问vm文件时,输出的是vm的源代码。如何禁止对*.vm类型文件的直接访问?好处:可使用类似struts标签。我总感觉这样使用怪怪的。2、以veloci...
分类:
其他好文 时间:
2015-04-29 07:08:16
阅读次数:
134
Open VS2010, create a new project, then open Property Manager, double-click Microsoft.Cpp.win32.user, open the Property Pages. Then go to VC++ Directo...
分类:
其他好文 时间:
2015-04-29 07:06:05
阅读次数:
170
Polyfill is something you don't need to set up traceur but start to use es6 in today's browser.You can search for polyfill which you want to use on Go...
分类:
其他好文 时间:
2015-04-29 07:06:33
阅读次数:
131
怎么由逻辑电路实现二进制的加法 首先二进制的加法可以拆解为两个步骤:加与进位。+加法01001110+进位01000101 加这一步骤可以由异或门来完成,进位这一步骤则可以用与门来完成。 但是由这两个逻辑门只能组成一个半加器,输入2个值,输出加和位与进位。这是不够的,除了最低位的加法不需要进位...
分类:
其他好文 时间:
2015-04-29 07:04:37
阅读次数:
171
ES-Next:Esnext is similar to traceur, you can use command line to compile files.Install:npm install esnext -g Here's how to compile a single file an p...
分类:
其他好文 时间:
2015-04-29 07:06:55
阅读次数:
192
http://khangaonkar.blogspot.com/2012/09/hadoop-2x-tutorial.html1. hdfs-site.xmlnamenode and datanode folder need to create in advance, all the content...
分类:
其他好文 时间:
2015-04-29 07:04:02
阅读次数:
150