This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.wired.com/2011/01/linear-regression-with-pylab/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 这2种方法经测试都已经通过。 | |
| 服务器版本是:ceontos5.4 64位系统。 | |
| 一、Xvfb + html2image | |
| yum install Xvfb | |
| yum install xorg-x11-fonts* | |
| wget http://www.ys250.com/src/html2image.x86_64.tar.gz | |
| #wget http://www.ys250.com/src/html2image.i386.tar.gz | |
| mv html2image /usr/local/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xvfb 这个工具相当于一个wrapper, 给应用程序提供虚拟的 X server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 使用auto-complete-mode | |
| 1 下载auto-complete完整源码 | |
| 大多数情况下,我还是推荐使用源码库中的最新版本,这样可以避免很多奇怪的问题。所以这里列出了使用auto-complete-mode所涉及的一些源码库: | |
| auto-complete-mode 主源码库 | |
| https://github.com/m2ym/auto-complete.git | |
| popup功能库 | |
| https://github.com/m2ym/popup-el.git | |
| 使用fuzzy模式匹配 | |
| https://github.com/m2ym/fuzzy-el.git | |
| 增强列表模式 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. git颜色配置 | |
| git config --global color.diff auto | |
| git config --global color.status auto | |
| git config --global color.branch auto | |
| 2. git默认编辑器设置 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 5 in fil_check_first_page of /home/errord/opensource/mysql-5.6.17/storage/innobase/fil/fil0fil.cc:1989 | |
| => in fil_read_first_page of /home/errord/opensource/mysql-5.6.17/storage/innobase/fil/fil0fil.cc:2065 | |
| 7 in open_or_create_data_files of /home/errord/opensource/mysql-5.6.17/storage/innobase/srv/srv0start.cc:1003 | |
| 6 in innobase_start_or_create_for_mysql of /home/errord/opensource/mysql-5.6.17/storage/innobase/srv/srv0start.cc:2051 | |
| 9 in innobase_init of /home/errord/opensource/mysql-5.6.17/storage/innobase/handler/ha_innodb.cc:3267 | |
| 10 in ha_initialize_handlerton of /home/errord/opensource/mysql-5.6.17/sql/handler.cc:662 | |
| 11 in plugin_initialize of /home/errord/opensource/mysql-5.6.17/sql/sql_plugin.cc:1126 | |
| 12 in plugin_init of /home/errord/opensource/mysql-5.6.17/sql/sql_plugin.cc:1417 | |
| 13 in init_server_components of /home/errord/opensource/mysql-5.6.17/sql/mysqld.cc:4832 | |
| 14 in mysqld_main of /home/errord/opensource/mysql-5.6.17/sql/mysqld.cc:5429 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake -DCMAKE_INSTALL_PREFIX=/home/errord/mysql_debug -DMYSQL_DATADIR=/home/errord/mysql_debug/data/mysql/ -DSYSCONFDIR=/home/errord/mysql_debug/etc -DWITH_DEBUG=1 ../ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from Crypto.Cipher import AES | |
| import os | |
| BS = AES.block_size | |
| pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
| unpad = lambda s : s[0:-ord(s[-1])] | |
| key = os.urandom(16) # the length can be (16, 24, 32) | |
| text = 'to be encrypted' |
NewerOlder