//PHP通过PDO方式连接到mysql <?php?
$dsn="mysql:dbname=test;host=localhost";
$user="root";
$pass="";
$link=new?PDO($dsn,$user,$pass);
if($link){
????echo?"connect?success?with?PDO";
}else...
分类:
数据库 时间:
2015-09-15 22:01:27
阅读次数:
218
1.[root@localhost ~]# stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'Pass 1: parsed user script and 85 library script(s) using 146900...
分类:
其他好文 时间:
2015-09-14 00:18:46
阅读次数:
337
今天学习廖老师的python教程,碰到了修饰符'@',不太了解,查看了下官方文档。简单的整理下:@dec2@dec1def func(arg1, arg2, ...): pass 等价于def func(arg1, arg2, ...): passfunc = dec2(dec1(fun...
分类:
编程语言 时间:
2015-09-12 23:40:43
阅读次数:
283
transit v. Pass across or through (an area) The new large ships will be too big to transit the Panama Canal. n. The carrying of people or thing...
分类:
其他好文 时间:
2015-09-11 18:58:24
阅读次数:
178
One-pass Greedy solution. So beautiful.class Solution {public: void wiggleSort(vector& nums) { for(int i = 1; i nums[i]) ...
分类:
其他好文 时间:
2015-09-11 06:38:20
阅读次数:
158
当我们在函数中要操作某一外部变量时,使用的方法有以下几种 引用传递 function?pass_by_reference(&?$num)
{
????//?注意$num作为你传递的参数的引用
????//?其他变量也可以引用此变量以指向参数地址...
分类:
Web程序 时间:
2015-09-10 19:42:52
阅读次数:
174
CCIE,我心里一直的梦想.2015年9月7日,我终于圆梦了。从业9年,一直搞的都是数通RS.系统的学习以前,我认为是复习原理。结果接触第一个月,完全把我所有的轻视之心完全颠覆.在淘宝上面花几十块钱买了一套RS的培训视频.40G.主讲讲师:林江涛.对于这位大神,只有拜服.他讲解的视..
分类:
其他好文 时间:
2015-09-10 19:36:26
阅读次数:
310
首先来看一个空类的大小:1 class A2 {3 4 };猜猜sizeof(A)的大小是多少?0?不是,记得我刚开始找工作的时候,第一次遇到这种问题,然后我华丽丽的回答0,然后我就华丽丽的被pass了。(往事很心酸)。那么不是0,会是多少呢?正确答案应该是1,以前我都是死记硬背的。让我说出原因,我...
分类:
其他好文 时间:
2015-09-10 14:28:18
阅读次数:
141
1. 登录:ftpIP_ADDR ;根据提示输入USER_NAME PASS_WORD或:ftp -i -n IP_ADDR user USER_NAME PASS_WORDftp -i -n 172.17.17.17 user PUB 1234562. 下载文件 下载文件通...
分类:
其他好文 时间:
2015-09-10 12:44:19
阅读次数:
124