刚开始写代码,一些遇到的问题和自己整理的小帖子。 1.数据类型转换 as.character(x) 转为字符型 as.complex(x) as.numeric(x) 或者 as.double(x) as.integer(x) 转为整数值 as.logical(x) 转为逻辑值(TURE ,FALS ...
分类:
其他好文 时间:
2019-05-22 16:02:38
阅读次数:
138
源代码管理工具——Github 1. 引言 GitHub是一个利用Git进行版本控制、专门用于存放软件代码与内容的共享虚拟主机服务,是一个面向开源及私有软件项目的托管平台。它由GitHub公司(曾称Logical Awesome)的开发者Chris Wanstrath、PJ Hyett和Tom Pr ...
分类:
其他好文 时间:
2019-05-17 19:28:14
阅读次数:
226
1. #查看cpu的信息 print u"CPU 个数 %s"%psutil.cpu_count() print u"物理CPU个数 %s"%psutil.cpu_count(logical=False) print u"CPU uptimes" print psutil.cpu_times() p ...
分类:
其他好文 时间:
2019-04-28 18:34:55
阅读次数:
165
Train and Peter CodeForces - 8A Peter likes to travel by train. He likes it so much that on the train he falls asleep. Once in summer Peter was going ...
分类:
其他好文 时间:
2019-04-22 22:34:45
阅读次数:
145
``` #include #include #include #include #include #include #pragma comment (lib,"Psapi.lib") BOOL DosPathToNtPath(LPTSTR pszDosPath, LPTSTR pszNtPath) ... ...
分类:
系统相关 时间:
2019-04-22 12:06:08
阅读次数:
260
本文内容针对 Linux 系统。 LVM (Logical Volume Management) 如果需要限制很多不同的用户使用的存储空间,你需要的可能不是限制文件夹大小的方法,而是 LVM 。 参考资料: 所谓 LV, 是一种逻辑上的卷,相对应的是 PV (物理卷)。 由于是逻辑卷,卷的创建、删除 ...
分类:
其他好文 时间:
2019-04-19 19:57:43
阅读次数:
329
一、概述 LVM(Logical Volume Manager)是基于内核的一种逻辑卷管理器,LVM适合于管理大存储设备,并允许用户动态调整文件系统的大小。此外LVM快照功能可以帮助我们快速备份数据。 (1)物理卷(PV):物理卷是最底层概念,是LVM的逻辑存储块,物理卷与磁盘分区是逻辑对应的关系。 ...
分类:
其他好文 时间:
2019-04-18 21:47:17
阅读次数:
243
如题,在CentOS7上模拟一个iSCSI设备,然后在Windows Server 2008上连接这个iSCSI设备 第一步,CentOS7上的操作。CentOS7上安装iSCSI模拟器需要3个包,我是下载下来安装的,因此用的是yum localinstall,你可以直接yum -y install ...
Separate compilation allows programs to be written in logical parts. let us split our programs into several files, each of which can be compiled indep ...
分类:
编程语言 时间:
2019-04-09 00:20:16
阅读次数:
179
https://source.android.com/devices/accessories/stylus 触控笔 Android 6.0 及更高版本支持蓝牙 (BT)、蓝牙低功耗 (BTLE) 或 USB 协议的蓝牙触控笔连接适用的标准数据格式。平台会分析触摸输入和触控笔数据之间的时间关系并进行关 ...
分类:
移动开发 时间:
2019-03-24 21:47:07
阅读次数:
205