只设置文件夹权限为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
第一次做csdn上面的题目,自信满满没有在线编译(本地测试通过),直接提交了,竟然没拿到分,太坑了,出现这个问题C2668: 'sqrt' : ambiguous call to overloaded function
究其原因竟然是sqrt( x )这个出错
sqrt函数定义:double sqrt( double x);
换成 sqrt( (double) x )就行了
可惜没...
分类:
其他好文 时间:
2014-06-30 16:49:24
阅读次数:
206
1、网络设置的备份与恢复
备份操作: netsh dump >bak12.txt
恢复操作: nesh exec bak12.txt
2、用命令改IP,如下:
C:/>netsh (进入设置模式)
netsh>interface
interface>ip
interface ip>set address "本地连接" static 10.1.1.111 255.255....
分类:
Web程序 时间:
2014-06-30 16:31:56
阅读次数:
297
Write something like this to automatically mount system drive:/dev/sda1 /media/win-c ntfs-3gauto,rw,suid,exec,async,users,locale=zh_CN.UTF-8 0 0...
分类:
其他好文 时间:
2014-06-30 13:30:17
阅读次数:
276
Recently, I needed to call a CUI program from within Qt GUI window and simulate the effect of an embedded command line window like the Autolisp consol...
分类:
其他好文 时间:
2014-06-30 12:45:02
阅读次数:
1252
1、命令注入(Command Injection)PHP中可以使用下列5个函数来执行外部的应用程序或函数system、exec、passthru、shell_exec、“(单撇号,与shell_exec功能相同,如)例:提交http://www.sectop.com/ex1.php?dir=| ca...
分类:
Web程序 时间:
2014-06-30 12:10:17
阅读次数:
263
Android系统原本就为手机设计,所以,在android系统中的任何App中,只要愿意,拨打指定电话非常方便。
核心就是使用Intent跳转,指定请求Action为Intent.ACTION_CALL 即可。
【源码下载】 http://www.code4apk.com/android-code/178
核心代码如下:
1
Intent
...
分类:
移动开发 时间:
2014-06-30 09:44:24
阅读次数:
246
find命令
find pathname -options [-print -exec -ok ...]
-print: find命令将匹配的文件输出到标准输出。
-exec: find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为'command' { } \;,注意{ }和\;之间的空格。
-ok: 和-exec的作用相同,只不过以一种更...
分类:
系统相关 时间:
2014-06-29 20:48:34
阅读次数:
355
1,new操作符实际上包含三部分:operator new分配内存和调用构造函数初始化刚刚分配的内存,类型转换刚刚的指针。string* ps = new string("lalalala");相当于void* memory = operator new(sizeof(string));call s...
分类:
其他好文 时间:
2014-06-29 19:15:07
阅读次数:
197
找关键CALL和关键跳方法一:输入假码注册程序,记录下错误提示信息。OD载入程序-->右键-->查找-->所有参考文本字串-->(右键-->查找文本,注:不要区分大小写,选择整个范围)找到上面记录的错误提示文本或:右键-->超级字符串参考-->查找ASCII码/UNICODE->(右键-->查找文本...
分类:
其他好文 时间:
2014-06-29 18:55:40
阅读次数:
1000