摘要: 如下是Code Review中一些典型的内容: 一、常规项: 1、代码能够工作么?它有没有实现预期的功能,逻辑是否正确等。 2、所有的代码是否简单易懂? 3、代码符合你所遵循的编程规范么?这通常包括大括号的位置,变量名和函数名,行的长度,缩进,格式和注释。 4、是否存在多余的或者重复的代码? 5、代 阅读全文
posted @ 2016-08-22 08:54 夜半弯 阅读(616) 评论(0) 推荐(0) 编辑
摘要: GUI内终端执行如下指令,或者加入开机启动脚本内 gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown will change your the behaviour of the power butto 阅读全文
posted @ 2016-08-10 14:39 夜半弯 阅读(1918) 评论(0) 推荐(0) 编辑
摘要: 1、日志产生的性能影响:由于日志的记录带来的直接性能损耗就是数据库系统中最为昂贵的IO资源。MySQL的日志包括错误日志(ErrorLog),更新日志(UpdateLog),二进制日志(Binlog),查询日志(QueryLog),慢查询日志(SlowQueryLog)等。当然,更新日志是老版本的M 阅读全文
posted @ 2016-08-10 13:51 夜半弯 阅读(10909) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #define ERROR(text) error(1, errno, "%s", text) typedef struct test{ int flag; const char *name; }EventMask; int freads... 阅读全文
posted @ 2016-08-10 13:29 夜半弯 阅读(1800) 评论(0) 推荐(0) 编辑
摘要: 更新exeplorer.exe: 1、方法1: 方法2: 阅读全文
posted @ 2016-07-21 19:25 夜半弯 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 见链接:http://askubuntu.com/questions/177348/how-do-i-disable-the-screensaver-lock If you want to wrap your app in a script that takes care of this for y 阅读全文
posted @ 2016-07-20 08:51 夜半弯 阅读(6358) 评论(0) 推荐(0) 编辑
摘要: #!/user/bin/python# -*- encoding: UTF-8 -*- 阅读全文
posted @ 2016-06-15 08:52 夜半弯 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1、LVM的调整空间大小: #lvextend -L +1300M /dev/mapper/ycgsstore_sdb-wmy #lvdisplay wmy ycgsstore_sdb -wi-ao-- 10.29g 调整成功,但是df查看时还是原来的空间大小。 #df -h 2、google找到如 阅读全文
posted @ 2016-05-26 13:11 夜半弯 阅读(9369) 评论(0) 推荐(0) 编辑
摘要: linux下samba服务加入windows域控后,samba共享名与合法用户名不应一致,否则无法访问此共享。 阅读全文
posted @ 2016-05-20 14:19 夜半弯 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1、需要修改的主要文件和目录如下:/etc/issue/etc/motd/etc/update-motd.d//etc/issue.net 2、Ubuntu的登陆和欢迎信息控制主要在/etc/issue和/etc/motd文件内。 /etc/issue与/etc/motd主要区别在于:当一个网络用户 阅读全文
posted @ 2016-05-20 14:18 夜半弯 阅读(3159) 评论(0) 推荐(0) 编辑