某些系统账号希望对某一些文件有管理权限,有三种方法: 1 加入属主所在的同一个组中,这等于扩大了访问其他文件的权限了。 2 加入other中,这样权限放开的更大了。 3 给文件的sudo权限。 4 采用acl策略。 前三种方法都有自己的缺点,最终考虑使用acl。 所谓ACL,就是Access Con Read More
posted @ 2016-01-07 23:02 findumars Views(441) Comments(0) Diggs(0)
http://en.cppreference.com/w/c/string/multibyte/mbstowcshttps://msdn.microsoft.com/fr-fr/library/eyktyxsx(v=vs.80).aspx Read More
posted @ 2016-01-07 22:57 findumars Views(1723) Comments(0) Diggs(0)
使用 C 语言的 fopen 打开文件时,可以指定的 mode 有 12 个,其中 6 个包含 "b" 使用 C++ 的 fstream 打开文件时,可用的模式组合有 24 个(?),其中 12 个包含 "binary" 使用 python 的 open 打开文件,除了可以使用 C 中的 12 个模 Read More
posted @ 2016-01-07 22:46 findumars Views(981) Comments(0) Diggs(0)
iOS中的沙盒可以让平台更加的安全,这也是沙盒给用户带来的最主要好处。不过由于沙盒的严格限制,导致程序之间共享数据比较麻烦。一般在程序间共享文档可以通过UIDocumentInteractionController(该类经常被开发者忽略)。本文中,我将介绍如何使用这个类在其它程序(已经安装在设备中的... Read More
posted @ 2016-01-07 20:41 findumars Views(467) Comments(0) Diggs(0)
这个函数用了这么久,到今天程序出错才发现这个问题。。。也就是说,必须设置QTextCodec *codec = QTextCodec::codecForName("System");toLocal8Bit才能转换成本地字符http://doc.qt.io/qt-5/qstring.html#toLo... Read More
posted @ 2016-01-07 18:46 findumars Views(1102) Comments(0) Diggs(0)