码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
sem_open中信号量命名
问题:sem_open will failed with "No such file or directory"解释1:这是由于在Linux内核中,创建信号量的默认路径是/dev/shm。当你要创建一个信号量/tmp/mysem时,实际上是创建了一个/dev/shm /sem.tmp/mysem,而...
分类:其他好文   时间:2015-08-15 22:46:39    阅读次数:260
hdu5389Zero Escape 01背包
//给组数,将其分为两组,使得左边的所有的数的和mod9为a,右边为b //问方法数 //01背包,dp[i][j] ,前i个数得到的mod9为j的个数 //dp[i][j] = (dp[i-1][(j+9-tmp)%9] + dp[i-1][j])%mod ; #include #include #include using namespace...
分类:其他好文   时间:2015-08-15 14:58:20    阅读次数:133
hdu 1410
Ref :http://www.clanfei.com/2012/04/772.html可推出公式:ans=sigma[C(N1-1,i)*0.5^(N1+i)] (0 2 #include 3 #include 4 using namespace std; 5 6 double ans,tmp.....
分类:其他好文   时间:2015-08-15 13:27:02    阅读次数:93
支持utf8的str_split函数
$length || ($i+1) == $str_length) { $results[] = $tmp_str; $tmp_str = ''; $tmp_str_length = 0; } } ret...
分类:其他好文   时间:2015-08-15 11:47:07    阅读次数:117
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
报错信息:ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/tmp/mysql.sock‘(2)[root@mysql5~]#mysql-uroot-pxxxxERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/tmp/mysql.sock‘(2)[root@mysql5~]#[root@mysql5~]#[root@mysql5~]#[root@mysq..
分类:数据库   时间:2015-08-15 06:53:21    阅读次数:160
Mysql主从复制搭建
一、原理mysql主服务器把各种操作已二进制的格式记录到bin-log里,从连接主,并读取bin-log,实现数据同步备份:mysqldump-uroot-p123456db>1.sql导入:mysql-uroot-p123456db<1.sql二、准备工作然后导出主的mysql库数据然后导入给db1mysqldump-uroot-S/tmp/mysql2.sockm..
分类:数据库   时间:2015-08-14 19:36:11    阅读次数:215
Python不通目录文件单向同步
[root@shaw?~]#vim?scripts/ftp_sync.py #!/bin/env?python import?os,sys,shutil SDIR?=?‘/ftp/xiantu/tmp/‘ DDIR?=?‘/ftp/shaw/soft/‘ os.system(‘cd‘) os.system(‘/bin/ls?%s?>?sdirlist.txt‘?%SD...
分类:编程语言   时间:2015-08-14 17:19:29    阅读次数:152
使用NDK编译mono
1.下载并安装ndk   2.导出NDK目录到环境变量 export NDK=/var/data/android-ndk-r10e   3.运行NDK的工具链 $NDK/build/tools/make-standalone-toolchain.sh--platform=android-18 --install-dir=/tmp/my-android-toolchain --arch=...
分类:其他好文   时间:2015-08-14 17:09:41    阅读次数:134
多线程同步
谈到多线程编程,同步是一定要讲的。给个例子:#include #include #include int count = 0;#define N 100000void* fun(){ int i; for (i = 0; i < N; ++i) { int tmp ...
分类:编程语言   时间:2015-08-14 15:37:34    阅读次数:137
【笔记】【Informatica】Java组件调用ssh客户端远程执行linux系统上的shell脚本
try{StringcmdStr="C:\\SSH\\ssh2.exeazik@172.16.20.1/home/azik/tmp/echo_date.sh";Processmypro=Runtime.getRuntime().exec(cmdStr);mypro.waitFor();Integer...
分类:编程语言   时间:2015-08-14 15:35:40    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!