码迷,mamicode.com
首页 >  
搜索关键字:done    ( 2584个结果
Java程序控制CPU使用率
参考: http://stackoverflow.com/questions/1202184/throttling-cpu-memory-usage-of-a-thread-in-java one way would be to adaptively sleep the threads, similarly as video playback is done in Java. If you ...
分类:编程语言   时间:2014-11-25 16:26:10    阅读次数:185
android 通过TimePickerDialog修改时间
初学android,写了个修改时间的小程序,实现如下;点击change按钮,弹出时间对话框;然后点击Done,设置显示时间;实现方式有两种,一种是使用showDialog方法,不过此种方法已过期,但还可以用;另一种是使用DialogFragment类来实现;先看第二种方式:其中layout的acti...
分类:移动开发   时间:2014-11-24 11:20:42    阅读次数:193
linux下如何获取每个线程的CPU占用率
啥也不说,直接上脚本: root@Storage:/mnt/mtd# cat cpu.sh #!/bin/sh while true do         ps -H -eo user,pid,ppid,tid,time,%cpu,cmd --sort=%cpu         sleep 1 done root@Storage:/mnt/mtd#...
分类:编程语言   时间:2014-11-23 19:00:22    阅读次数:297
WIN7 Wireshark: There are no interfaces on which a capture can be done
有的时候我们在Windows7的环境下使用Wireshark的时候,比如点击【Interface List】的时候,出现错误。 错误内容如下: There are no interfaces on which a capture can be done. 这个错误是因为系统没有启动NPF服务造成的。 解决的办法很简单: 01、在【开始】–>【运行】 02、输入:cmd 0...
分类:Windows程序   时间:2014-11-23 15:59:46    阅读次数:282
马哥6-3
字符测试:==:测试是否相等,相等为真,不等为假!=:测试是否不等,不等为真,等为假><-nstring:测试指定字符串是否为空,空则真,不空则假-sstring:测试指定字符串是否不空,不空为真,空则为假循环:进入条件,退出条件forwhileuntilfor变量in列表;do循环体done如何..
分类:其他好文   时间:2014-11-22 02:08:24    阅读次数:134
git在push的时候出现insufficient permission for adding an object错误
pushgit库,报错。今天有同事找我,问我怎么回事,去看的时间,发现确实是权限问题,git库的所有者为nobody,remo@remo:/qualcomm/jenkins/r1528_ap/oe-core$gitpushCountingobjects:10,done.Deltacompressionusingupto4threads.Compressingobjects:100%(5/5),done.Writingobje..
分类:其他好文   时间:2014-11-21 16:43:22    阅读次数:242
关于iphone6/5/4s 在iOS8.0系统下 只读@3x图片
've tried in a sample project to use standard, @2x and @3x images, and the iPhone 6+ simulator uses the @3x image. So it would seem that there are @3x images to be done (if the simulator actually replicates the device's behavior). But the strange thing is ...
分类:移动开发   时间:2014-11-19 01:53:31    阅读次数:194
Shell脚本笔记3-循环
for 列表形式 for variable in {list} do statement done for var in 1 2 3 4 do echo $var done for var in {1..4} do echo $var done for var in {start..end..step} do statement done for i in...
分类:系统相关   时间:2014-11-15 14:10:00    阅读次数:222
[Erlang危机](5.1.3)进程
ProcessesTrying to get a global view of processes is helpful when trying to assess how much work is being done in the VM in terms of tasks. A general good practice in Erlang is to use processes for tr...
分类:系统相关   时间:2014-11-15 11:28:38    阅读次数:167
SSH 一连接上就断开
SSH 一连接上就断开 调试信息输出: debug1: key_parse_private2: missing begin marker debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA debug1: key_parse_private2: m...
分类:其他好文   时间:2014-11-14 12:45:27    阅读次数:814
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!