|
|
用户名:harddisc 笔名:harddisc 地区: 北京 行业:其他 |
| 日 | 一 | 二 | 三 | 四 | 五 | 六 |
欢迎访问Harddisc的博客!这里主要关于我的学习和生活,兴趣和爱好! 山不在高,有仙则名。水不在深,有龙则灵。斯是陋室,唯吾德馨。苔痕上阶绿,草色入帘青。谈笑有鸿儒,往来无白丁。可以调素琴,阅金经。无丝竹之乱耳,无案牍之劳形。南阳诸葛庐,西蜀子云亭。孔子曰∶“何陋之有?”
英军二次侵藏历史
ssh-keygen in Linux
ssh有一套很有用的工具,其中的ssh-keygen可以用来生成private和public密钥.将生成的public密钥拷贝到远程机器后,可以使ssh到另外一台机器的登陆不用密码.具体方法如下.
1) 在本地机器中的~/.ssh/目录下执行下命令,
ssh-keygen -t rsa
将生成两个文件,id_rsa和id_rsa.pub.
2) 将id_rsa.pub拷贝到远程机器,并且将id_rsa.pub的内容添加到~/.ssh/authorized_keys中.
cat id_rsa.pub >>authorized_keys
2011感恩节打油
我佛难求兮,
得之殊不易。
食之无味兮,
弃之亦可惜。
时运不济兮,
命途何多舛!
塞翁失马兮,
焉知祸非福?
英语中各种符号的读法
'exclam'='!'
'at'='@'
'numbersign'='#'
'dollar'='$'
'percent'='%'
'caret'='^'
'ampersand'='&'
'asterisk'='*'
'minus'='-'
'underscore'='_'
'equal'='='
'plus'='+'
'bracketleft'='['
'braceleft'='{'
'bracketright'=']'
'braceright'='}'
'semicolon'=';'
'colon'=':'
'quote'='''
'doublequote'='"'
'backquote'='''
'tilde'='~'
'backslash'='\'
'bar'='|'
'comma'=','
'less'='<'
'period'='.'
'greater'='>'
'slash'='/'
'question'='?'
'space'=' '
 ̄ hyphen 连字符
' apostrophe 省略号;所有格符号
— dash 破折号
‘ ’single quotation marks 单引号
“ ”double quotation marks 双引号
( ) parentheses 圆括号
[ ] square brackets 方括号
{} Brace
《 》French quotes 法文引号;书名号
... ellipsis 省略号
¨ tandem colon 双点号
" ditto 同上
‖ parallel 双线号
/ virgule 斜线号
& ampersand = and
~ swung dash 代字号
§ section; division 分节号
→ arrow 箭号;参见号
± plus or minus 正负号
× is multiplied by 乘号
÷ is divided by 除号
= is equal to 等于号
≠ is not equal to 不等于号
≡ is equivalent to 全等于号
≌ is equal to or approximately equal to 等于或约等于号
≈ is approximately equal to 约等于号
< is less than 小于号
> is more than 大于号
≮ is not less than 不小于号
≯ is not more than 不大于号
≤ is less than or equal to 小于或等于号
≥ is more than or equal to 大于或等于号
% per cent 百分之…
‰ per mill 千分之…
∞ infinity 无限大号
∝ varies as 与…成比例
√ (square) root 平方根
∵ since; because 因为
∴ hence 所以
∷ equals, as (proportion) 等于,成比例
∠ angle 角
⌒ semicircle 半圆
⊙ circle 圆
○ circumference 圆周
π pi 圆周率
△ triangle 三角形
⊥ perpendicular to 垂直于
∪ union of 并,合集
∩ intersection of 交,通集
∫ the integral of …的积分
∑ (sigma) summation of 总和
° degree 度
′ minute 分
〃 second 秒
# number …号
℃ Celsius system 摄氏度
@ at 单价
x'是x prime(比如转置矩阵)
x"是x double-prime
` backquote 反引号
~ tilde
# numbersign,英语国家是hash,美语是pound,音乐里作sharp,如C#
$ dollar
% percent
^ caret
& ampersand
* asterisk,star(美语),数学公式中作multiply
( parenleft,opening parentheses
) parenright,closing paretheses
- minus;hyphen连字符,不读
[ bracketleft,opening bracket
] bracketright,closing bracket
{ braceleft
} braceright
" doublequote
| bar
≮ is not less than
≯ is not more than
≤ is less than or equal to 小于或等于号
- hyphen 连字符
≥ is more than or equal to 大于或等于号
' apostrophe 省略号,英文中省略字符用的撇号;所有格符号
- dash 破折号
‰ per mille
∞ infinity 无限大号
∝ varies as 与…成比例
( ) parentheses 圆括号
∵ since; because 因为
∴ hence 所以
… ellipsis 省略号
∷ equals, as (proportion) 等于,成比例
¨ tandem colon 双点号
∠ angle 角
∶ ditto 双点号
⌒ semicircle 半圆
‖ parallel 双线号
⊙ circle 圆
/ virgule 斜线号
○ circumference 圆周
~ swung dash 代字号
△ triangle 三角形
§ section; division 分节号
⊥ perpendicular to 垂直于
→ arrow 箭号;参见号
∪ union of 并,合集
∩ intersection of 交,通集
∫ the integral of …的积分
∑ summation of 总和
° degree 度
÷ is divided by 除号
′ minute 分
〃 second 秒
℃ Celsius degree 摄氏度
≌ is equal to or approximately equal to 等于或约等于号
See also: “数学公式中指数的英文读法”http://harddisc.bokee.com/6421962.html
JDBC与MySQL中文乱码问题
1、服务器端:
mysql默认的编码是latin1,在/etc/my.cnf中加入
#使得服务器端编码为uft8(utf8,gbk,gbk2312均支持中文),这时存取获得的中文不再是乱码
[mysqld]
default-character-set=utf8
#使得客户端,如putty等,接收到的编码为utf8
[client]
default-character-set=utf8
数据库:
create table [tablename](
id int not null auto_increment,
user varchar(128) not null,
comment text,
primary key(id)
) default charset utf8;
2、客户端:
java连接语句:
DriverManager
.getConnection("jdbc:mysql://[servername]/[databasename]?user=[username]&password=[password]");
Putty设置:
window > appearance > font set as any font style supporting chinese, e.g Fixsys
window > translation > use font encoding or utf8
Also refer to http://confluence.atlassian.com/display/DOC/Configuring+Database+Character+Encoding