Press "Enter" to skip to content

Month: September 2017

π search

http://www.angio.net/pi/
写一个数字然后找出这个数字在π中的位置:
比如香港回归的1997年7月1日
pisearch
可知19970701在π中的位置是14916507位。
不由得让人想起来疑犯追踪S02E11里面的主角Finch给学生上课的场景:
pi

Pi 一个圆的周长与它的直径的比,但不仅是这些而已,还有更多,永无止境,毫无重复。
小数点后的这一串数字,每一个都是单一个体,你的生日、寄物柜锁密码、社会保险号码,都在这一串数字某处。如果你把这些数字转换成字母,你会得到每一个词,在每一个可能的组合中出现,你婴孩时开口讲的第一个音节、你心上人的名字、你从头至尾整个人生的故事、所有我们说的话和做的事…这个世界所有无尽的,可能性都在这个简单的圆里。
你拿这些信息做什么…有什么用处…全都取决于你。

Student girl: 
My friend has a question, Mr. Swift. “What is any of this good for, and when would we ever use it?”

(The class laughs.)

Finch:
Let me show you. π. The ratio of the circumference of a circle to its diameter. And this is just the beginning. It keeps on going. Forever. Without ever repeating. Which means that contained within this string of decimals is every single other number. 
Your birth date, combination to your locker, your social security number. It’s all in there somewhere. And if you convert these decimals into letters, you would have every word that ever existed in every possible combination.
The first syllable you spoke as a baby, the name of your latest crush, your entire life story from beginning to end. Everything we ever say or do, all of the world’s infinite possibilities rest within this one simple circle.
Now what you do with that information, what it’s good for, well, that would be up to you.

MySQL的配置文件

#
# The MySQL database server configuration file.
#
# Here is entries for some specific programs
# The following values assume you have at least 32M ram

[mysqld_safe]
socket      = /var/run/mysqld/mysqld.sock
nice        = 0

[mysqld]
#
# * Basic Settings
#
user        = mysql
pid-file    = /var/run/mysqld/mysqld.pid
socket      = /var/run/mysqld/mysqld.sock
port        = 3306
basedir     = /usr
datadir     = /var/lib/mysql
tmpdir      = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address        = 192.168.122.106
#
# * Fine Tuning
#
key_buffer_size     = 16M
max_allowed_packet  = 16M
thread_stack        = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover-options  = BACKUP
max_connections        = 100
table_open_cache       = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit   = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#

general_log_file        = /var/log/mysql/mysql.log
general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
slow_query_log      = 1
slow_query_log_file = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
server-id       = 100
log_bin         = /var/log/mysql/mysql-bin.log
expire_logs_days    = 10
max_binlog_size   = 100M
#binlog_do_db      = include_database_name
#binlog_ignore_db  = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

关闭Firefox的Flash插件过期提醒

在企业域环境下没有管理员权限的PC机上使用firefox经常会遇到视频以及其他flash应用无法打开,地址栏出现红色叹号的提示,这种现象就是提醒flash插件的新版出现了,需要更新插件。
解决问题的方法一个是更新插件,一个是关闭提醒。
关闭的方法是:

在地址栏输入about:config
在搜索栏输入extensions.blocklist.enabled
将这个值设为false

企业网银转账显示“签名失败”

单位会计新装的win7系统在转账的时候出现了能够使用农业银行的K宝登陆企业网银,但到最后提交的时候出现了“签名无效失败”的错误。这个是K宝驱动的问题。

1. 重新下载网银插件;
2. 根据K宝型号下载对应驱动;
3. 使用管理员权限将IE安全等级调整为**中级**。

吐槽一下,农行网站不仅登陆要用IE,连下载软件都要用IE。