指令名称:chmod使用权限:所有使用者使用方式:chmod[-cfvR][--help][--version]modefile...说明:Linux/Unix的档案调用权限分为三级:档案拥有者、群组、其他。利用chmod可以藉以控制档案如何被他人所调用。参数:mode:权限设定字串,格式如下:[ugoa...][[+-=][rwxX]...][,...],其..
分类:
其他好文 时间:
2017-01-06 08:10:42
阅读次数:
246
通过qemu-img将windows虚拟机的vmdk文件转换成qcow2,并将文件上传至openstack中时,发现虚拟机无法启动。经过分析,原因是openstack默认使用的是virtio驱动,而windows虚拟机未安装virtion驱动。解决办法:安装VirtIO驱动1、通过virt-manager打开windows虚拟机2、磁盘、网卡使..
闲着没事爬个糗事百科的笑话看看python3中用urllib.request.urlopen()打开糗事百科链接会提示以下错误http.client.RemoteDisconnected:Remoteendclosedconnectionwithoutresponse但是打开别的链接就正常,很奇怪不知道为什么,没办法改用第三方模块requests,也可以用urllib3模..
分类:
编程语言 时间:
2017-01-06 08:09:11
阅读次数:
666
Description 问所有三/二/一元组可能形成的组合. Sol FFT. 利用生成函数直接FFT一下,然后就是计算,计算的时候简单的容斥一下. 任意三个-3*两个相同的+2*全部相同的+任意两个-两个相同的+任意一个. Code ...
分类:
其他好文 时间:
2017-01-06 08:02:58
阅读次数:
191
oracle中,wm_concat函数是一个聚合函数,和mysql中的group_concat函数类似,不过group_concat函数比较强大,可以定义分隔符和排序,当然所谓强大是相对的,这里假使我们不知道oracle中的over函数,也不知道listagg函数。 我们先来看看wm_concat函 ...
分类:
数据库 时间:
2017-01-06 08:03:29
阅读次数:
311
ROS Wiki: http://wiki.ros.org/ Robots Using ROS Textbooks: A Gentle Introduction to ROS Learning ROS for Robotics Programming 1st Edition [pdf] [code] ...
分类:
其他好文 时间:
2017-01-06 08:03:59
阅读次数:
205
The follow-up question is fun: "Could you do it in one-pass, using only O(1) extra memory and without modifying the value of the board?" When we meet ...
分类:
其他好文 时间:
2017-01-06 08:02:17
阅读次数:
254
原题链接在这里:https://leetcode.com/problems/intersection-of-two-arrays/ 题目: Given two arrays, write a function to compute their intersection. Example:Given ...
分类:
其他好文 时间:
2017-01-06 08:03:11
阅读次数:
180
. 包含头文件: 2. 构造函数: 3. 添加元素: 4. 查找元素: 5. 删除元素: 6. member functions: map::at map::begin map::cbegin map::cend map::clear map::count map::crbegin map::cre ...
分类:
编程语言 时间:
2017-01-06 08:01:40
阅读次数:
318
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. ...
分类:
其他好文 时间:
2017-01-06 08:01:52
阅读次数:
157
1 class Solution(object): 2 def threeSumSmaller(self, nums, target): 3 """ 4 :type nums: List[int] 5 :type target: int 6 :rtype: int 7 """ 8 ... ...
分类:
其他好文 时间:
2017-01-06 08:01:10
阅读次数:
198
课程链接:目标2017高中数学联赛基础班-2(赵胤授课) 1. $x, y, z\in\mathbf{R^+}$, 证明: $$\frac{z^2 - x^2}{x + y} + \frac{x^2 - y^2}{y + z} + \frac{y^2 - z^2}{z + x} \ge 0.$$ 解 ...
分类:
其他好文 时间:
2017-01-06 07:59:39
阅读次数:
645
在正常模式下,一般只能向console 控制台输出简单的文字信息。但为了把信息输出得更优雅更便于阅读,除了cosole.log()方法外还可以调用 cosole.warn() 来输出警告信息,在控制台中出来的效果如下: 在输出信息前面会有一个带感叹号的黄色三角警告符号。似乎比一般的console信息 ...
分类:
其他好文 时间:
2017-01-06 07:58:46
阅读次数:
198
Sublime Text 3 3126 下载地址 Windows版本 OSX版本 Ubuntu版本 Sublime Text 3 3126 注册码 附上注册成功图: ...
分类:
其他好文 时间:
2017-01-06 07:55:36
阅读次数:
774
C#操作Excel的方法有很多种,常见的有微软官方的OLE Automation,Apache的POI等。这里介绍的是POI翻译成C#的NPOI。 POI是Apache的通过Java操作Office的一个API,可以对Excel,Word,PPT等进行操作,十分的强大。然后就被翻译成C#版本的NPO ...