码迷,mamicode.com
首页 >  
搜索关键字:dir    ( 11861个结果
Spiral Matrix II
问题:蛇形矩阵分析:设置变量dir,0123分别代表方向右下左上class Solution {public: int num[300][300]; void dfs(int x,int y,int k,int n,int dir) { num[x][y]=k; ...
分类:其他好文   时间:2014-08-06 22:25:42    阅读次数:169
openwrt 编译软件包出现错误(is missing dependencies for the following libraries: libpthread.so.0)
install -m0755 /home/yanfa/workspace/trunk-wr703/build_dir/target-mips_r2_uClibc-0.9.33.2/lk_cnp_serial_eth/lk_cnp_serial_eth /home/yanfa/workspace/tr...
分类:Windows程序   时间:2014-08-06 22:12:22    阅读次数:2659
squid 代理配置
vi /etc/squid/squid.conf cache_mem 64 MB cache_dir ufs /var/spool/squid 1000 16 256 cache_effective_user squid cache_effective_group squid dns_nameservers 8.8.8.8 cache_access_log /var/log/squid/ac...
分类:其他好文   时间:2014-08-06 12:03:21    阅读次数:267
linux安装php出现的各种错误解决方案
configure: error: Try adding --with-zlib-dir=. Please check config.log for more information.----------------------------------------------------------...
分类:Web程序   时间:2014-08-06 01:22:41    阅读次数:274
导出文件夹中的文件名列表
批量把一个文件夹的文件名保存到一个文本文档中,用系统自带的DOS就可以完成这个任务。操作步骤:1.进入命令提示符窗口2.进入驱动器d:3.输入命令:dir/s/on/b>d:/abc.txt命令详解:dir列出文件表。/s是指列出当前目录包含子目录下的所有文件,显示文件的大小和修改日期。/on..
分类:其他好文   时间:2014-08-05 22:53:20    阅读次数:462
【TODO】模拟namenode崩溃并恢复
TODO: 还有没搞清楚的地方。 1、为了方便演示,先做好namenode检查点的配置。见控制namenode检查点发生的频率。 2、启动hadoop,保证所有节点都正常。 3、将namenode节点上dfs.name.dir 指定目录(即 name 目录)中...
分类:其他好文   时间:2014-08-05 19:43:40    阅读次数:197
批量登陆linux主机脚本
#test.sh #!/bin/bash dir=/home/test whilereadline do host=`echo$line|awk‘{print$1}‘` passwd=`echo$line|awk‘{print$2}‘` $dir/expect_ssh.sh$host$passwd& done<$dir/host.txt #expect_ssh.sh #!/usr/bin/envexpect setHOST[lindex$argv0] setPASSWD[lindex$argv..
分类:系统相关   时间:2014-08-05 11:33:10    阅读次数:243
Django js css 文件配置
settings.py 加一行SCRIPTS_URL = os.path.join(BASE_DIR,'scripts/') (在项目根目录下有个scripts文件夹 即 和manage.py 同级)然后在urls.py 加个底下那一段,不知道为什么我在Mac下 合并在一起就不行了 难道是人品?u....
分类:Web程序   时间:2014-08-05 10:47:59    阅读次数:228
Linux下的目录扫描操作函数使用实践
【文章摘要】       本文以实际的C源程序为例子,介绍了Linux下的目录扫描函数(scandir)的使用方法,为相关开发工作的开展提供了有益的参考。【关键词】       C语言  Linux  目录扫描  makefile  scandir 一、scandir命令简介        scandir函数的声明为:        int scandir(const char *dir, str...
分类:系统相关   时间:2014-08-04 17:54:22    阅读次数:395
hdu 1372
#include #include #include #include using namespace std;int c[9][9];int dir[8][2] = {{-2,-1},{-2,1},{-1,2},{1,2},{2,1},{2,-1},{1,-2},{-1,-2}};typedef ...
分类:其他好文   时间:2014-08-04 17:13:57    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!