01 2012 档案

摘要:$q = array(1,2,30,40,50); $s = array(1,2,4,8,9,9,34,2,12,324,3,34,343); //共同的部分$m=array_intersect($q,$s); //老的数据$old=array_diff($q,$m);//新的数据$new=array_diff($s,$m); 阅读全文
posted @ 2012-01-24 01:57 Lux.Y 阅读(4012) 评论(0) 推荐(0) 编辑
摘要:在Ubuntu11.10下,打开Windows的TXT乱码,按照以往的方法,在gconf-editor设置下并没有找到相应的选项解决乱码方案:打开终端输入:linuxsight@linuxsight-ODM:~$ gsettings set org.gnome.gedit.preferences.encodings auto-detected “['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']“Fro 阅读全文
posted @ 2012-01-17 21:44 Lux.Y 阅读(275) 评论(0) 推荐(0) 编辑
摘要:Ubuntu默认不能解压RAR文件,Ubuntu11.10也一样,所以我们需要安装软件来支持。压缩功能安装:sudo apt-get install rar卸载:sudo apt-get remove rar解压功能安装:sudo apt-get install unrar卸载:sudo apt-get remove unrarlinuxsight@linuxsight-ODM:~$ sudo apt-get install unrar [sudo] password for linuxsight: 正在读取软件包列表… 完成 正在分析软件包的依赖关系树 正在读取状态信息… 完成 下列【新】软 阅读全文
posted @ 2012-01-17 21:40 Lux.Y 阅读(696) 评论(0) 推荐(0) 编辑
摘要:Up to last week I was exclusively an XCache user if we talk about PHP accelerators. Recently I needed to use APC with a symfony application. As symfony offers nice APC integration it went quite smooth.Note that just enabling PHP accelerator (any) improves performance because of the opcode caching. T 阅读全文
posted @ 2012-01-16 18:18 Lux.Y 阅读(1331) 评论(0) 推荐(0) 编辑
摘要:IntroductionAPC (Alternative PHP Cache) is a PHP opcode cache. It stores PHP pages in RAM and reduces hard disk activity. This makes a real difference to the performance in Moodle, and you should be able to achieve a 50% increase in system capacity and your CPU will be 50% less busy.This guide is fo 阅读全文
posted @ 2012-01-13 21:55 Lux.Y 阅读(378) 评论(0) 推荐(0) 编辑
摘要:Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)...I hate this message, in fact it says «You suck, you don’t even know what you’re doing with your objects». It happened recently when I was writing a script which retrieves old data from an old database, comp 阅读全文
posted @ 2012-01-06 21:12 Lux.Y 阅读(240) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示