码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode: 13)
mysql> desc tablename; ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_909_0.MYI' (Errcode: 13)两种解决办法:方法一:1、chmod 777 /tmp[root@localhost /]# c...
分类:数据库   时间:2015-07-04 18:23:09    阅读次数:133
Pascal's Triangle
return tmpLarge.push_back(tmp);不等价于tmpLarge.push_back(tmp); return tmpLarge;因为push_back()返回值类型为void,而后者返回tmpLarge的类型。代码如下:class Solution { public: vector<vector> generate(int numRows) {...
分类:其他好文   时间:2015-07-04 15:35:21    阅读次数:116
磁盘测速
dd if=/dev/zero of=/tmp/a.img bs=1M count=1024
分类:其他好文   时间:2015-07-04 15:27:09    阅读次数:132
C & C++ 宏与const
1、宏定义函数:例:#define do{exp} while(0)与#define exp有什么不同,好处在哪里?定义复杂代码,防止分号,或是括号不匹配等错误。比如:定义:#define switch(x,y) {int tmp; tmp="x";x=y;y=tmp;}使用时: if(x>y)sw...
分类:编程语言   时间:2015-07-04 12:31:30    阅读次数:128
Kettle数据同步速度调优记录
Msyql到Vertica1、mysql中在openshop 数据库中选择其中一个300W左右数据的表create table ip_records_tmp_01ASSELECT * FROM ip_records_tmp tWHERE t.datetime '2015-05-01';删除:dele...
分类:其他好文   时间:2015-07-03 12:02:30    阅读次数:1095
2.PHP如何记录错误和发送错误
1. 将错误记录到指定的文件中,配置过程如下 * 1). log_errors=on * 2). error_log=/tmp/php_error.log 1.使用error_log()函数记录错误日志 error_log(‘要记录的错误信息!’); header('content-type:text/html; charset=utf-8'); //开启所有的错误报告 er...
分类:Web程序   时间:2015-07-03 10:39:56    阅读次数:180
ios 文件操作(NSFileManager)
IOS的沙盒机制,应用只能访问自己应用目录下的文件,iOS不像android,没有SD卡概念,不能直接访问图像、视频等内容.iOS应用产生的内容,如图像、文件、缓存内容等都必须存储在自己的沙盒内。默认情况下,每个沙盒含有3个文件夹:Documents, Library 和 tmp。Library包含...
分类:移动开发   时间:2015-07-02 19:12:52    阅读次数:140
C/C++ 快速排序 quickSort
下面的动画展示了快速排序算法的工作原理。快速排序图示:可以图中在每次的比较选取的key元素为序列最后的元素。#include #include void swap(int * x, int * y){ int tmp = *x; *x = *y; *y = tmp;}void...
分类:编程语言   时间:2015-07-02 17:14:47    阅读次数:152
saltstack之文件管理
1.managed文件管理/srv/salt/file/managed.sls/tmp/hyxc: file.managed: - source: - salt://files/hyxc - salt://files/hwg - makedirs: True# ...
分类:其他好文   时间:2015-07-02 15:20:46    阅读次数:116
poj 1694 An Old Stone Game 树形dp
//poj 1694 //sep9 #include #include using namespace std; const int maxN=256; int n; int tree[maxN][maxN]; int ans[maxN]; int cmp(int a,int b) { return a>b; } int dfs(int u) { int tmp[maxN],t=0; i...
分类:其他好文   时间:2015-07-02 12:09:15    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!