摘要: 在通过脚本向mysql写入大量测试数据时,出现这个问题,记录下: https://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html 修改/etc/my.cnf 文件,修改如下: 在[mysqld]下面添加: 重启mysqld服务即可。 阅读全文
posted @ 2015-05-28 20:00 tommy.yu 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 使用peewee的事务时,碰到一个郁闷的问题,事务似乎无效! 于是简化了下模型,写了简单的测试代码,发现问题,如题所示。 找到解答: https://github.com/etianen/django-reversion/issues/362 https://dev.mysql.com/doc/re 阅读全文
posted @ 2015-05-28 19:15 tommy.yu 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 通常做许多事情(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) 编辑