摘要: 谢谢大家这么长时间以来,对本博客的关注,现将博客地址迁移到 www.sorrryu.cn 希望大家继续关注!! 阅读全文
posted @ 2013-11-21 15:25 尹少爷 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 相对于zf1,来说,zf2让我们对于数据库这方面的操作我的个人感觉是对于字段起别名简单了,但是对数据库的操作虽然配置写好的就基本不需要动了,但是还是比1的配置要繁琐,还是那句话,大家可以去看看源码。。。 1 Module.php 里面添加public function getServiceConfig() 2 { 3 return array( 4 'factories' => array( 5 'Student\Model\StudentTable' => function($sm) { 6 ... 阅读全文
posted @ 2013-10-24 11:36 尹少爷 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: 我想我的生活需要新的挑战zf2整个框架里面都应用了namespace,并且他的每个模块,我们都可以根据自己的需要去命名路径,对我来说,zf2的模块化更加的清晰,对于外包来说,或许很方便.创建他,我就不说过程了,我按照自己的理解说说运行的步骤吧View文件夹里面存放的是视图,module:里面存放的是我们的模块,每一个模块都可以单独一个文件夹,当我们d调用模块的时候,会先找到moudel.php,--->config/module.config.php去配置相应的信息 1 /** 2 * This autoloading setup is really more complicated t 阅读全文
posted @ 2013-10-22 11:26 尹少爷 阅读(1915) 评论(0) 推荐(0) 编辑
摘要: 1 ';24 //print_r(quickSort($digits));25 26 function insertSort($digits,$inkey){27 $digits=quickSort($digits);28 $count=count($digits)-1;29 for($j=$count;$j>=0;$j--){30 $key=$digits[$j];31 if($inkey=$digits[$j-1]){32 $digits[$j]=$inkey;33 break;34 ... 阅读全文
posted @ 2013-10-16 11:56 尹少爷 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1 apt-get install git//ubuntu安装git 2 3 mkdir -p /var/www/gitProj //创建文件夹 4 5 cd /var/www/gitProj //进入文件夹 6 7 git init //初始化git 8 9 git config --global user.name "e"//配置文件中的用户名10 11 git config --global email "zhangjun516@126.com"//配置文件的邮箱12 13 vi index.php //创建以及编辑文件14 15 git add 阅读全文
posted @ 2013-10-10 09:35 尹少爷 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 1 http://www.resumablejs.com/ 官网 2 upload.html 3 4 5 6 7 Select files 8 9 10 12 13 14 15 63 64 65 66 upload.php 67 `. Once all 78 * the parts have been uploaded, a final destination file is 79 * being created from all the stored parts (appending one by one). ... 阅读全文
posted @ 2013-08-16 11:57 尹少爷 阅读(3518) 评论(0) 推荐(0) 编辑
摘要: 1 我个人感觉很不错 2 https://github.com/videojs/video.js 3 4 Video.js | HTML5 Video Player 5 6 7 8 for older IEs to work. --> 9 10 11 12 15 16 17 18 19 20 23 24 25 26 27 阅读全文
posted @ 2013-08-16 11:56 尹少爷 阅读(2178) 评论(0) 推荐(0) 编辑
摘要: upload.html 1 2 3 4 5 6 7 8 9 10 11 12 Upload Queue13 14 15 16 17 18 19 20 2... 阅读全文
posted @ 2013-08-15 11:39 尹少爷 阅读(2882) 评论(0) 推荐(0) 编辑
摘要: 1 详细: 2 3 闰年、星期、天 4 5 echo date(|-|L|-|); 6 今年是否闰年:0 7 8 echo date(|-|l|-|); 9 今天是:Tuesday10 11 echo date(|-|D|-|);12 今天是:Tue13 14 大写L表示判断今年是否闰年,布尔值,为真返回1,否则为0;15 小写l表示当天是星期几的英文全写(Tuesday);16 而使用大写D表示星期几的3个字符缩写(Tue)。17 18 echo date('w');19 今天星期:220 21 echo date("W");22 本周是全年中的第 06 阅读全文
posted @ 2013-08-07 10:05 尹少爷 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1 Axel 通过打开多个 HTTP/FTP 连接来将一个文件进行分段下载,从而达到加速下载的目的。对于下载大文件,该工具将特别有用。2 3 安装:sudo apt-get install axel4 一般使用:axel url(下载文件地址)5 限速使用:加上 -s 参数,如 -s 10240,即每秒下载的字节数,这里是 10 Kb6 限制连接数:加上 -n 参数,如 -n 5,即打开 5 个连接7 8 win系统也有这个工具 阅读全文
posted @ 2013-08-01 10:10 尹少爷 阅读(2835) 评论(0) 推荐(0) 编辑