`
willvvv
  • 浏览: 329049 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
先看看英文的维基百科上的解释:   A hash function is any algorithm or subroutine that maps large data sets of variable length, called keys, to smaller data sets of a fixed length. For example, a person's name, having a variable length, could be hashed to a single integer. The values returned by a hash function are ...
1.log.conf,python的日志模块,详见:http://www.red-dove.com/python_logging.html [loggers] keys=root,upload,resize [handlers] keys=consoleHandler,uploadFileHandler,resizeFileHandler [formatters] keys=simpleFormatter [formatter_simpleFormatter] format=%(asctime)s %(levelname)s %(message)s [l ...
1.安装gearman cd /usr/local/src/ wget https://launchpad.net/gearmand/trunk/0.33/+download/gearmand-0.33.tar.gz tar xzvf gearmand-0.33.tar.gz cd gearmand-0.33 ./configure make make install   安装过程如果出现:configure: error: Unable to find libevent,需要yum install libevent-devel之后重试即可! 如果出现:libgearman/ ...
总结一下最近遇到的几个问题:   gm: error while loading shared libraries: libGraphicsMagick.so.3: cannot open shared object file: No such file or directory   httpd: Syntax error on line 202 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_dav_svn.so into server: /usr/local/lib/libsvn_subr-1.so. ...
操作系统CentOS release 5.3 (Final),gcc (GCC) 4.2.4   1.安装GraphicsMagick。 先从http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.16/ 下载最新源码包,存放在/usr/local/src目录   yum install freetype yum install gd-devel yum install libgomp yum install libjpeg libjpeg-devel yum install lib ...
Cell2GPSUtil.java,最近项目中用到的,记录一下。   package your.package; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.http.HttpEntity; import org.apache.http.HttpResp ...
---------------------------------------------------------登陆--------------------------------------------------------------------   1.mysql -h192.168.0.181 -utest -ptest;   登陆mysql命令行   -------------------------------------------------------数据库操作--------------------------------------------------- ...
备份脚本:mysql-dump.sh   #!/bin/bash export MYSQL_HOME=/usr/local/Percona-Server-5.5.21-rel25.0-227.Linux.x86_64/ export PATH=$MYSQL_HOME/bin:$PATH mysql_dump_dir=/data/backup/mysqldump mysql_username="YOURS" mysql_password="YOURS" mysql_databases="DBNAME1 DBNAME2 DBNAM ...
1.两者的区别:   The ib_logfile's hold statements affecting innodb tables only. If a crash occurs they are automatically used to complete any innodb transactions that didn't complete before the crash. The bin logs record all statements that update data, regardless of engine. They are useful when you h ...
在 使用Percona XtraBackup热备和恢复MySQL(一)   这里恢复innodb数据库时写的很简单,但是在实践的时候发现有报错,类似如下:   IMPORTANT: Please check that the copy-back run completes successfully. At the end of a successful copy-back run innobackupex-1.6.4 prints "completed OK!". Original data directory ...
1.Linux系统设置优化,vi /etc/sysctl.conf,添加以下内容 fs.file-max = 65535 kernel.pid_max = 65536 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2 net.ipv4.tcp_timestsmps = 0 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_fin_timeout = 30 n ...
mysql-full-backup.sh   #!/bin/bash export MYSQL_HOME=/usr/local/Percona-Server-5.5.21-rel25.0-227.Linux.x86_64/ export PATH=$MYSQL_HOME/bin:$PATH mysql_backup_dir=/data/backup/mysql/ mysql_username="YOURS" mysql_password="YOURS" cd $mysql_backup_dir lastincrementfolde ...
1.如果使用percona-monitoring-plugins的Percona Disk Operations GT等disk相关的监控图表,其中有一个device的项需要手工填写,可以从cat /proc/diskstats 查看device。结果如下: [root@centos-183 bin]# cat /proc/diskstats 1 0 ram0 0 0 0 0 0 0 0 0 0 0 0 1 1 ram1 0 0 0 0 0 0 0 0 0 0 0 1 2 ram2 0 0 0 0 0 0 0 0 0 0 0 1 3 r ...
以前用的,好久没用了,记录下:http://jquery.malsup.com/form/
考虑到google可能被强,使用微软的吧   http://www.asp.net/ajaxlibrary/cdn.ashx#jQuery_Releases_on_the_CDN_0
Global site tag (gtag.js) - Google Analytics