摘要: 参考文章:http://www.cnblogs.com/coderzh/archive/2009/12/26/emacspythonide.html用emacs中进行python开发,总是感觉有点力不从心。按照网上的教程对于emacs进行了改造。先用着再说吧!使用的插件有YASnippet, aut... 阅读全文
posted @ 2014-04-24 14:39 小名辉辉 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://www.gm100861.com/816.htmlpython2和python3的变化太大了,在一个系统中现在都是两个版本都安装了,刚开始学习python有种无所是从的感觉,想使用pip这个模块安装工具,就因为多版本python的问题报错:1 # pip2 Traceback... 阅读全文
posted @ 2014-04-23 15:44 小名辉辉 阅读(5841) 评论(0) 推荐(0) 编辑
摘要: 转载的网址: http://www.2cto.com/os/201306/222745.htmlsendfile现在流行的web 服务器里面都提供 sendfile 选项用来提高服务器性能,那到底 sendfile是什么,怎么影响性能的呢?sendfile实际上是 Linux2.0+以后的推出的一个系统调用,web服务器可以通过调整自身的配置来决定是否利用 sendfile这个系统调用。先来看一下不用 sendfile的传统网络传输过程:read(file,tmp_buf, len);write(socket,tmp_buf, len);硬盘 >> kernel buffer &g 阅读全文
posted @ 2014-04-11 15:01 小名辉辉 阅读(428) 评论(0) 推荐(0) 编辑
摘要: a. show tables或show tables from database_name; // 显示当前数据库中所有表的名称 b. show databases; // 显示mysql中所有数据库的名称 c. show columns from table_name from database_name; 或show columns from database_name.table_name; // 显示表中列名称 d. show grants for user_name@localhost; // 显示一个用户的权限,显示结果类似于grant 命令 e. show inde... 阅读全文
posted @ 2013-10-29 16:57 小名辉辉 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 本教程在Ubuntu10.10及11.04测试通过,其它Ubuntu版本仅供参考。 1.在Ubuntu的软件中心的菜单栏中的编辑下面打开软件源-》其他软件-》添加,输入: deb http://ppa.launchpad.net/wine-cn/ppa/ubuntu lucid main2.然后在Ubuntu软件中心的搜索wine并安装Microsoft Windows Compatibility Layer(Binary Emulator and Library 3.安装wine下的window扩展包安装工具winetricks,在终端下输入: wget -c http://www.kege 阅读全文
posted @ 2013-10-22 20:43 小名辉辉 阅读(800) 评论(0) 推荐(0) 编辑