上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 通常做许多事情(git puh/脚本等等),不停输入密码是件很不愉快的事情,破解如下: http://www.linuxproblem.org/art_9.html 1. 生成rsa密钥 2. 将公钥添加到欲登入主机的相应用户的 ~/.ssh/authorized_keys里面去(append方式) 阅读全文
posted @ 2015-05-28 12:28 tommy.yu 阅读(207) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/13781833/sublime-text-2-how-to-change-the-font-size-of-the-file-sidebar http://wesbos.com/sublime-text-5-visual-twe 阅读全文
posted @ 2015-05-28 11:56 tommy.yu 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 公司给陪了个一体机。 键盘很无语,fn的位置在左下角。反人类设计。 破解: 1. bios,不幸不支持。 2. 改建: http://www.bitscn.com/hardware/nb/437603.html 不知道fn的键码, sudo showkey 了一把,结果发现在单独按fn的时候,貌似键 阅读全文
posted @ 2015-05-28 11:19 tommy.yu 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 驱动: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8188CE 阅读全文
posted @ 2015-05-26 08:58 tommy.yu 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: yum install mysql-devel.x86_64 yum install python-devel pip install MySQL-python 阅读全文
posted @ 2015-05-23 10:38 tommy.yu 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 别人折腾的系统。 刚开始,准备安装下tornado,报错,需要安装 gcc 和 python-devel gcc安装报错,如标题所示: 谷歌了一把: http://stackoverflow.com/questions/26484593/having-problems-installing-bzr- 阅读全文
posted @ 2015-05-09 11:55 tommy.yu 阅读(9095) 评论(0) 推荐(0) 编辑
摘要: 至少在__version__ = '2.6.0'的时候,给字段添加help_text的时候,在数据库的ddl语句里面是没有comment的。 看了下源码,顺藤摸瓜,最终定位到了字段(Field类)的__ddl__函数, 源码这里。 如下: ok,已经确定help_text没有真正实现。 很自然的想到 阅读全文
posted @ 2015-05-04 11:01 tommy.yu 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: 或者 其中my_table为具体的表名。 阅读全文
posted @ 2015-05-03 15:11 tommy.yu 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 参考:http://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes 用脚本写测试数据,在ubuntu上ok,没想到到centos报1153错误。解 阅读全文
posted @ 2015-04-28 08:21 tommy.yu 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: 如题,参考了许多,比如:http://serverfault.com/questions/523131/php5-is-installed-but-apache-is-displaying-php-as-uninterpreted-text-how-can-i http://dev.antoines 阅读全文
posted @ 2015-04-24 12:21 tommy.yu 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 来源:http://kissthink.com/archive/mysql-distributed-programs and-warehouses-split-table.html 分库&拆表方案 基本认识 用分库&拆表是解决数据库容量问题的唯一途径。 分库&拆表也是解决性能压力的最优选择。 分库 阅读全文
posted @ 2015-04-21 15:26 tommy.yu 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 1) 分布式DB水平切分中用到的主要关键技术:分库,分表,M-S,集群,负载均衡 2) 需求分析:一个大型互联网应用每天几十亿的PV对DB造成了相当高的负载,对系统的稳定性的扩展性带来极大挑战。 3) 现有解决方式:通过数据切分提高网站性能,横向扩展数据层 水平切分DB,有效降低了单台机器的负载,也 阅读全文
posted @ 2015-04-21 15:19 tommy.yu 阅读(441) 评论(0) 推荐(0) 编辑
摘要: create database mydb default character set utf8 default collate utf8_general_ci; 阅读全文
posted @ 2015-04-17 11:10 tommy.yu 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 某些网站,没有及时更新,导致火狐觉得有安全隐患,不给访问。 Hello bcasey9090, go to about:config, copy the next bold security.tls.version.min and paste it in the search field, now 阅读全文
posted @ 2015-04-13 08:45 tommy.yu 阅读(1301) 评论(0) 推荐(0) 编辑
摘要: (a | b )&c 官方文档没有具体讲到,又没有太多时间来看源码。经过尝试, (a | b) and c (a or b) and c 都是可以的。 而 (a | b) &c 是不行的 (a or b)&c 也不行。 后记:上面的错了。peewee的Model.get不支持条件的or操作。 and 阅读全文
posted @ 2015-04-09 20:09 tommy.yu 阅读(2138) 评论(0) 推荐(0) 编辑
摘要: 更多参考这里:http://stackoverflow.com/questions/11536764/attempted-relative-import-in-non-package-even-with-init-py 阅读全文
posted @ 2015-04-08 09:19 tommy.yu 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 最近准备给同事培训git,发现了一个不错的资源,在这里:http://www.gitguys.com/topics/creating-a-shared-repository-users-sharing-the-repository/ 原文如下,有空再译: ommands discussed in t 阅读全文
posted @ 2015-04-01 15:26 tommy.yu 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1. 修改/etc/httpd/conf/httpd.conf文件,添加一个virtualhost段,具体略。注意在段内配置NaveServer。 此文件全局也要配置一个NameServer(原因有待追查)。注意配置Listening 80 2. 修改/etc/hosts,如下: 如果没有配置这个, 阅读全文
posted @ 2015-03-27 20:14 tommy.yu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 硬件:centos 6.5 服务器 , Dell R420 , 两个网口,一个给公网,一个给内网。 软件:apache 2.2 配置了virtualhost以后,用curl在本地可以访问。但是其他机器不可以。googel了一把,掌握了几个调试技巧: 1. ping ,curl 查看ip是否可通,页面 阅读全文
posted @ 2015-03-27 19:29 tommy.yu 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-git-server-on-a-vps http://git-scm.com/book/en/v2/Git-on-the-Server-Settin 阅读全文
posted @ 2015-03-26 10:03 tommy.yu 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页