12 2009 档案
挂载内部分区每次都需要密码
摘要:/usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy[代码]改为[代码]参考:http://ubuntuforums.org/showthread.php?t=1299820update 2010/4/20经过更新,现在是/usr/share/polkit-1/actions/org.freedesktop.udisk... 阅读全文
posted @ 2009-12-19 13:04 lbsx 阅读(756) 评论(0) 推荐(0)
windows平台的内存泄漏检查
摘要:c:[代码]结果:[代码]c++:[代码]结果:[代码]mfc:[代码]程序结束时在Output即输出内存泄漏信息。如果需要检测某一段内存:[代码]参考: 1. 这篇帖子解决在c++中如何显示行号,即覆盖原new操作符http://www.gamedev.net/community/forums/topic.asp?topic_id=4844342. MSDN: Memory Leak Detec... 阅读全文
posted @ 2009-12-14 10:24 lbsx 阅读(359) 评论(0) 推荐(0)
use ntfs-3g to mount ntfs partitions, insteade of default ntfs driver in kernel
摘要:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558673http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554599sudo link /sbin/mount.ntfs-3g /sbin/mount.ntfs 阅读全文
posted @ 2009-12-10 18:38 lbsx 阅读(285) 评论(0) 推荐(0)
adobe-flashplugin 导致 aptitude 报错
摘要:rm -rf /var/lib/info/adobe-flashplugin* 然后在执行 sudo dpkg --remove --force-remove-reinstreq adobe-flashplugin可以先dpkg -L adobe-flashplugin,将相关的文件删掉。参考:http://bbs2.chinaunix.net/viewthread.php?tid=1525123 阅读全文
posted @ 2009-12-08 21:50 lbsx 阅读(213) 评论(0) 推荐(0)
算法度量 Big O, Big Omega, Big Theta
摘要:A、大O的定义:  如果存在正数c和N,对于所有的n>=N,有f(n)<=c*g(n),则f(n)=O(g(n))B、Big Omega的定义  如果存在正数c和N,对于所有的n>=N,有f(n)>=c*g(n),则f(n)=Omega(g(n))C、Big Theta的定义  如果存在正数c1,c2和N,对于所有的n>=N,有c1*g(n)<=f(n)<... 阅读全文
posted @ 2009-12-04 17:56 lbsx 阅读(4656) 评论(0) 推荐(0)