ll /Library/Java/JavaVirtualMachines/ll /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Homevim ~/.bash_profile执行这个之后,会打开一个编辑器一直按 j直到光标最下面一...
分类:
系统相关 时间:
2014-12-15 15:25:34
阅读次数:
197
###################
#Python脚本性能剖析
###################
cProfile/profile/hotshot用于统计Python脚本各部分执行频率和耗费时间等统计信息
pstats可用于格式化这些信息
cProfile,属C扩展,开销较小,适合剖析长时间运行的Python程序,推荐使用此模块
profile,纯Python模块,存...
分类:
编程语言 时间:
2014-12-15 15:25:20
阅读次数:
215
一、关键概念:Generic Attribute Profile (GATT)通过BLE连接,读写属性类小数据的Profile通用规范。现在所有的BLE应用Profile都是基于GATT的。Attribute Protocol (ATT)GATT是基于ATT Protocol的。ATT针对BLE设备...
分类:
移动开发 时间:
2014-12-15 13:43:39
阅读次数:
546
linux中环境变量分为系统环境变量和用户环境变量(和window中一样),系统环境变量对所有系统用户都有效,用户环境变量只对当前用户有效,我们以ubuntu为例说明用户环境变量用户环境变量通常存储在下面文件中~/.profile~/.bash_profile或~/.bash_login~/.pro...
分类:
系统相关 时间:
2014-12-14 22:31:21
阅读次数:
325
全局的对所有用户都可以的使用的PATH:可以通过修改配置文件:/etc/bashrc 和 /etc/profile 来时配置,全局的PATH;例如: vi /etc/profile 在最后后加一行:PATH=THE_SET_GLOBLE_ENV_PATH:$PATH;接着换行:export PATH...
分类:
系统相关 时间:
2014-12-14 14:24:41
阅读次数:
194
额 新申请下来的证书,按照印象中以前用在学校的工程中的配置弄好了工程,运行,出现了bug:The entitlements specified in your application’s Code Signing Entitlements file do not match those specif...
分类:
其他好文 时间:
2014-12-13 19:19:39
阅读次数:
168
installsudoapt-getinstallnova-compute依赖如此之多:mysql-commonnova-commonnova-computenova-compute-kvmnova-compute-libvirtopen-iscsipm-utilspython-amqppython-amqplibpython-anyjsonpython-babelpython-babel-localedatapython-botopython-cinderclientpython-cliffp..
分类:
其他好文 时间:
2014-12-12 19:24:31
阅读次数:
223
在linux下习惯使用ll、la、l等ls别名的童鞋到mac os提示command not found打开终端1 2014-461deMacBook-Pro:~ root# cd ~2 2014-461deMacBook-Pro:~ root#vim .bash_profile加入:alias ....
分类:
系统相关 时间:
2014-12-12 18:36:35
阅读次数:
2732
那今天说下第2种,命令执行格式如下:salt‘kvm.tiancity.com‘virt.initweb204512nic=nicsdisk=system在这里,我们需要注意下对与kvm/qemu不允许使用profile,我们需要将virt.py改下代码:这样,就允许我的试验环境了。我的想法是,我的虚拟机镜像文件被存储在/var/lib/libvirt/p_..
分类:
其他好文 时间:
2014-12-12 16:53:56
阅读次数:
230
###Option:AllowRoot#Allowtheagenttorunas‘root‘.Ifdisabledandtheagentisstartedby‘root‘,theagent#willtrytoswitchtotheuserspecifiedbytheUserconfigurationoptioninstead.#Hasnoeffectifstartedunderaregularuser.#0-donotallow#1-allow##Mandatory:no#Default:#AllowRoot..
分类:
其他好文 时间:
2014-12-12 16:52:13
阅读次数:
600