ios播放视频文件一般使用 MPMoviePlayerViewController 和 MPMoviePlayerController。前者是一个view,后者是个Controller。区别就是 MPMoviePlayerViewController里面包含了一个MPMoviePlayerController
注意:MPMoviePlayerViewController 必须 presentMoviePlayerViewControllerAnimated方式添加,否则Done按钮是不会响应通知M...
分类:
移动开发 时间:
2015-11-19 09:44:55
阅读次数:
161
1.$.Deferred生成一个deferred对象。 //var dtd = $.Deferred;2.dtd.done()指定操作成功时的回调函数。3.dtd.fail()指定操作成功时的回调函数。4.dtd.resolve()手动改变dtd对象的运行状态为"已完成",从而立即触发done()方...
分类:
Web程序 时间:
2015-11-18 18:00:20
阅读次数:
167
There are a few ways to debug/profile NPoco. They are listed below, and are commonly done by inheriting from Database and overriding a specific method...
分类:
其他好文 时间:
2015-11-16 06:08:32
阅读次数:
191
dongchao@linux104:~/rwcap$?git?pull
remote:?Counting?objects:?335,?done.
remote:?Compressing?objects:?100%?(144/144),?done.
remote:?Total?144?(delta?120),?reused?0?(delta?0)
Rece...
分类:
其他好文 时间:
2015-11-12 10:09:55
阅读次数:
186
#include void one_three(void);void two(void);int main(void){ printf("starting now\n"); one_three(); printf("done"); return 0;}void two(voi...
分类:
其他好文 时间:
2015-11-11 17:51:31
阅读次数:
197
添加Service Reference, 无法为服务生成代码错误的解决办法我的解决方案是Silverlight+WCF的应用,Done Cretiria定义了需要在做完Service端的代码后首先运行事先定义好的Unit Test,确保在客户端使用Service之前Service是可以正确的运行的。...
分类:
移动开发 时间:
2015-11-10 12:27:05
阅读次数:
316
环境Centos6.6[root@CentOS~]#catjindutiao.sh
#!/bin/sh
b=‘‘
for((i=0;$i<=100;i+=2))
do
printf"progress:[%-50s]%d%%\r"$b$i
sleep0.1
b=#$b
done
echo
[root@CentOS~]#效果图:
分类:
系统相关 时间:
2015-11-05 16:53:12
阅读次数:
200
#!/bin/bashfor i in `seq 1 254`do{ping -c2 192.168.1.$i &>/dev/nullif [ $? != 0 ];thenecho "192.168.1.$i is not used"fi}done
分类:
其他好文 时间:
2015-10-30 12:18:22
阅读次数:
135
???time?(for?m?in?{1..100000};?do?test?-d?.;?done;)
(?for?m?in?{1..100000};?do;?test?-d?.;?done;?)??0.21s?user?0.15s?system?98%?cpu?0.366?total
???time?(for?m?...
分类:
系统相关 时间:
2015-10-29 01:01:20
阅读次数:
190