码迷,mamicode.com
首页 >  
搜索关键字:file path    ( 77533个结果
编译安装shibboleth-sp遇到的问题
In file included from mod_shib_20.cpp:68: mod_shib.cpp:118: warning: deprecated conversion from string constant to 'char*' mod_shib.cpp: In member function 'virtual const char* ShibTargetApache::get...
分类:其他好文   时间:2014-05-07 06:04:50    阅读次数:363
ubuntu 14.04 VSFTPD 匿名FTP服务器 配置文件
ubuntu 14.04 VSFTPD 匿名FTP服务器 配置文件 可以提供上传,下载,修改,等操作 # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to mak...
分类:其他好文   时间:2014-05-07 04:26:57    阅读次数:488
File delete不能删除问题
注意事项有以下几点 1.检查是否是文件流没有关闭。如果没有关闭的话文件当前是被占用状态,是删除不了的。 2.是否关闭完全。比如你循环创建好多文件流,只在finally 模块写了个关闭流的方法,这样写很可能只关闭最后一个文件流。导致除了最后一个文件能删除,其余都不能删除。 4.文件是否存在,file.exists() 检查下。...
分类:其他好文   时间:2014-05-06 23:27:01    阅读次数:379
Android开发之手机铃声代码实现
如果读到的是音频文件路径,需要先将音乐文件插入到多媒体库。如:path传入:/mnt/sdcard/mp3/a.mp3 //设置--铃声的具体方法      public void setMyRingtone(String path)      {         File sdfile = new File(path);        ContentValues values = new Co...
分类:移动开发   时间:2014-05-06 22:55:52    阅读次数:500
python修改文件名
最近下了《中国式英语口语纠错》里面的文件都是“tingvoa.com_cnusa043.mp3”,MP3播放器不识别, 因此用python脚本写了一个rename的脚本 # -*- coding: utf-8 -*- import os def filerename(path):     for file in os.listdir(path):         #pr...
分类:编程语言   时间:2014-05-06 22:48:40    阅读次数:423
leetcode -day9 Candy & Gas Station & Binary Tree Maximum Path Sum
1、 ?? Candy There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Each child must h...
分类:其他好文   时间:2014-05-06 22:41:02    阅读次数:427
nagios监控windows主机
nagios监控windows主机一,编辑Nagios的主配置文件vi/usr/local/nagios/etc/nagios.cfg把下面这行最前面的#号去掉:#cfg_file=/usr/local/nagios/etc/objects/windows.cfg保存配置文件并退出。二,安装Windows代理程序NSClient++外部构件1.从http://sourceforge.net/projects/n..
分类:移动开发   时间:2014-05-06 20:16:41    阅读次数:530
Java determine uncompressed size of gzipped file
If you want to determine the uncompressed size of a gzip file from within a program, you can extract to original file size from the gzip file. This si...
分类:编程语言   时间:2014-05-06 18:25:15    阅读次数:551
[简明python教程]学习笔记2014-05-05
今天学习了python的输入输出、异常处理和python标准库1.文件通过创建一个file类的对象去处理文件,方法有read、readline、write、close等[root@reed0505]#catusing_file.py #!/usr/bin/python #filename:using_file.py poem=‘‘‘Programingisfun whentheworkisdone usePython!..
分类:编程语言   时间:2014-05-06 17:05:03    阅读次数:448
linux之特殊权限
特殊权限SUID:运行某程序时,相应进程的属主是程序文件自身的属主,而不是启动者。chmodu+sFILE如果FILE本身原来就有执行权限,则SUID显示为s,否则显示S。如:chmodu+s/bin/cat如:ls-l/usr/bin/passwd-rwsr-xr-x它默认就有SUID,所以普通用户才能有权限来修改自己的密码。SG..
分类:系统相关   时间:2014-05-06 16:33:48    阅读次数:545
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!