码迷,mamicode.com
首页 >  
搜索关键字:could not find driver    ( 34312个结果
linux 文件夹-文件权限设置
只设置文件夹权限为755 文件权限为644find -type d -exec chmod 755 {} \;find -type f -exec chmod 644 {} \;或者find -type d|xargs chmod 755find -type f|xargs chmod 644
分类:系统相关   时间:2014-07-01 22:35:28    阅读次数:235
Sublime Text 3 绿色汉化版 x64
之前做了《Sublime Text 2 绿色汉化版 x64》,这些天抽空做了下 ST3 的汉化。。果然我没有任何理由爱上 ST3,不仅pojie麻烦,而且汉化更麻烦,菜单字符长度做了限制。比如 搜索 处的 Find 只能写4个字符,而汉字 搜索 的 utf-8 是E6 90 9C E7 B4 A2 ...
分类:其他好文   时间:2014-07-01 22:13:11    阅读次数:390
Leetcode:First Missing Positive 第一个缺失的正数 桶排序
First Missing Positive:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] retu...
分类:其他好文   时间:2014-07-01 13:13:59    阅读次数:218
hdu 1596 find the safest road(乘积最短路)
题目:         链接:点击打开链接 题意: 思路:         对dijkstra稍作修改即可,每次更新dis[]时改为乘积。 代码: #include #include #include using namespace std; #define INF 100000000 const int N = 1010; int n,m; double map[N][N]...
分类:其他好文   时间:2014-07-01 10:53:50    阅读次数:180
POJ 1611 The Suspects 并查集 Union Find
本题也是个标准的并查集题解。 操作完并查集之后,就是要找和0节点在同一个集合的元素有多少。 注意这个操作,需要先找到0的父母节点,然后查找有多少个节点的额父母节点和0的父母节点相同。 这个时候需要对每个节点使用find parent操作,因为最后状态的时候,节点的parent不一定是本集合的根节点。 #include const int MAX_N = 30001; stru...
分类:其他好文   时间:2014-07-01 10:50:15    阅读次数:179
LeetCode:Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the  longest valid parentheses substring is "()...
分类:其他好文   时间:2014-07-01 09:09:06    阅读次数:156
Stack-based buffer overflow in acdb audio driver (CVE-2013-2597)
/* 本文章由 莫灰灰 编写,转载请注明出处。   作者:莫灰灰    邮箱: minzhenfei@163.com */ 1. 漏洞描述 音频驱动acdb提供了一个ioctl的系统接口让应用层调用,然而,其在处理传进来的参数时没有做有效的边界检查。应用程序可以通过/dev/msm_acdb设备文件就能达到提升权限的目的。 2. 漏洞分析 原始代码如下 if...
分类:数据库   时间:2014-07-01 09:04:04    阅读次数:355
hdu 3047 Zjnu Stadium (带权并查集)
题目:         链接:点击打开链接 题意:          思路:         冲突的条件是:两个人坐在同一行,同时他们到根节点的差值等于他们之间的差值,这时就产生冲突了。于是我们可以用一个dist数组来保存节点到根的距离,而这个距离在路径压缩的时候更新一下就可以了,dist[x]+=dist[parent[x]]。然后就是合并后的距离,令r1=Find(u),r2=Fin...
分类:其他好文   时间:2014-07-01 08:13:34    阅读次数:201
POJ 2524 Ubiquitous Religions Union Find 并查集
本题是标准的并查集了,最后利用这些集求有多少独立集。 所以这里也写个标准程序过了。 最后查找独立集合: 看有多少个节点的父母节点是自己的,那么就是独立集合了。自己做自己的父母当然最独立的了,没有任何依赖,呵呵。 #include const int MAX_N = 50001; //const int MAX_M = MAX_N/2 * (MAX_N-1) + 1; int N, M; ...
分类:其他好文   时间:2014-07-01 07:46:53    阅读次数:160
[OpenStack 存储] 说说RAID0 1 2 3 4 5 6 10 01 30 50, 软RAID, 硬RAID
最近在思考一种廉价方便的cinder集成LVM driver的方式,那就是cinder+LVM+多块盘组成的RAID硬盘。这样的情况下就要根据读写需求和可用资源考虑采用什么样的RAID,以及怎样选择实现raid的方式,有两种分别为硬件RAID和软件RAID,为了温习一下,就顺便画些图(图中使用的硬盘数都是该RAID下需要的最少硬盘数)总结下各个RAID技术。...
分类:其他好文   时间:2014-07-01 06:20:07    阅读次数:474
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!