最近在使用Chromium的时候tab的标题栏中文显示乱码,在地址栏输入中文是同样时乱码,就像下图:看起来很是不爽,于是只好换做用系统自带的Fire Fox,但是用户习惯真的很强大啊....根本用不习惯....在网上搜了好久,终于看到了一篇比较靠谱的博文:Linux下Chrome标题栏中文乱码。试了...
分类:
系统相关 时间:
2014-07-24 12:22:55
阅读次数:
278
学长口中恶意到裸题,我就只能呵呵了。主要运用一次运用扩展欧几里德算法,列举学霸教我的一个例子(6x+12y = 6的解为x =1,y = 0;所以6x1+12y1=12的解为x1/2 = x,y2/2 = y);除此之外还要在impossible的时候注意判定。#includeusing names...
分类:
其他好文 时间:
2014-07-23 12:36:46
阅读次数:
233
闭区间运算符闭区间运算符(a...b)定义一个包含从a到b(包括a和b)的所有值的区间,只能是数字for index in 1...5 { println("\(index) * 5 = \(index * 5)")}var names = ["Anna", "Alex", "Brian", ...
分类:
其他好文 时间:
2014-07-22 22:50:32
阅读次数:
188
stack
-------------------------------------------------------------
stack 是一种配接器(adapter),以某种容器作为底部结构,改变其接口,使之符合"先进后出"的特性。
SGI STL 默认以 deque 为 stack 底部结构
没有遍历行为,没有遍历器
示例:
#include
#include
#include
#include
using names...
分类:
其他好文 时间:
2014-07-22 00:28:39
阅读次数:
212
Pipes have no names, and their biggest disadvantage is that they can be used ?only?between processes that have a parent process in common. Two unrelated processes can-? not create a pipe betwee...
分类:
其他好文 时间:
2014-07-21 10:36:45
阅读次数:
237
首先,php 与 mysql 要保持编码一致其次,有三处注意点:1.sql 表目 设为 utf8_unicode_ci2.php1 header("Content-Type: text/html; charset=utf8");3.sql1 mysql_query("set names 'utf8'...
分类:
其他好文 时间:
2014-07-21 00:13:37
阅读次数:
222
tcpdump的语法:tcpdump[options][Protocol][Direction][Host(s)][Value][LogicalOperations][Otherexpression]常用选项:-iany:Listenonallinterfacesjusttoseeifyou‘reseeinganytraffic.-n:Don‘tresolvehostnames.-nn:Don‘tresolvehostnamesorportnames.-X:Showthepacket‘sco..
分类:
其他好文 时间:
2014-07-19 02:34:45
阅读次数:
189
是head区的一个辅助标签names常用的选项有keywords(关键字)description(网站内容描述)auther(作者)robots(机器人向导)http-equiv可代替name项,常用的选项有Expires(期限) Pragma(cache模式) Refresh(刷新)Set-Coo...
分类:
其他好文 时间:
2014-07-18 19:31:09
阅读次数:
209
原因:在对远程表增删改操作的时候,调用了本地函数。 比如:insert into trans_load_rate@DC values(rate_s(1)); trans_load_rate是DC库的表,rate_s函数是本地库的函数,执行上面这条sql的时候,就会报ora-02069解决方法: .....
分类:
其他好文 时间:
2014-07-18 00:17:41
阅读次数:
243
[client]
port=3358
socket=/export/data/mysql/tmp/mysql.sock
[mysqld]
port=3358
socket=/export/data/mysql/tmp/mysql.sock
datadir=/export/data/mysql/data
#---GLOBAL---#
character-set-server=utf8
lower_case_table_names=1
log-output=FILE
log-error=/export/d..
分类:
其他好文 时间:
2014-07-17 20:07:00
阅读次数:
242