Skip to content

Commit

Permalink
Site updated at 2017-09-06 10:10:41 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchangqian committed Sep 6, 2017
1 parent c1868ce commit 4bff688
Show file tree
Hide file tree
Showing 78 changed files with 885 additions and 508 deletions.
10 changes: 5 additions & 5 deletions about-me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title>Me - 每个人的声音都面向世界</title>
<meta name="author" content="wuchangqian">

<meta name="description" content="Me May 7th, 2017 8:10 pm hello world !!! May 7th, 2017 8:10 pm Recent Posts Shell History 命令扩展 Windows 下ffmpeg使用 Htop是个好东西 Css-clearfix &hellip;">
<meta name="description" content="Me May 7th, 2017 8:10 pm hello world !!! May 7th, 2017 8:10 pm Recent Posts Test Shell History 命令扩展 Windows 下ffmpeg使用 Htop是个好东西 Css-clearfix &hellip;">

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
Expand Down Expand Up @@ -105,6 +105,10 @@ <h1 class="entry-title">Me</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -121,10 +125,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
115 changes: 11 additions & 104 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[每个人的声音都面向世界]]></title>
<link href="http://me.94313.net/atom.xml" rel="self"/>
<link href="http://me.94313.net/"/>
<updated>2017-08-10T17:47:35+08:00</updated>
<updated>2017-09-06T18:10:20+08:00</updated>
<id>http://me.94313.net/</id>
<author>
<name><![CDATA[wuchangqian]]></name>
Expand All @@ -13,6 +13,15 @@
<generator uri="http://octopress.org/">Octopress</generator>


<entry>
<title type="html"><![CDATA[Test]]></title>
<link href="http://me.94313.net/blog/2017/09/06/test/"/>
<updated>2017-09-06T18:09:15+08:00</updated>
<id>http://me.94313.net/blog/2017/09/06/test</id>
<content type="html"><![CDATA[<p>adska</p>
]]></content>
</entry>

<entry>
<title type="html"><![CDATA[Shell History 命令扩展]]></title>
<link href="http://me.94313.net/blog/2017/08/10/shell-history/"/>
Expand Down Expand Up @@ -765,7 +774,7 @@ make &amp;&amp; make install
regular expression matches the newline character, and similarly for \a, \t, and other sequences.</p>
<p>BUGS
E-mail bug reports to <a href="&#x6d;&#x61;&#x69;&#x6c;&#116;&#111;&#58;&#98;&#x75;&#103;&#x2d;&#x73;&#101;&#100;&#x40;&#103;&#x6e;&#117;&#x2e;&#x6f;&#114;&#103;&#46;">&#98;&#x75;&#x67;&#45;&#x73;&#101;&#100;&#64;&#103;&#110;&#117;&#46;&#x6f;&#114;&#103;&#x2e;</a> Also, please include the output of &ldquo;sed &ndash;version&rdquo; in the body of your
E-mail bug reports to <a href="&#109;&#x61;&#105;&#x6c;&#116;&#x6f;&#58;&#98;&#117;&#103;&#x2d;&#115;&#101;&#x64;&#64;&#x67;&#110;&#117;&#46;&#111;&#114;&#103;&#x2e;">&#98;&#117;&#x67;&#45;&#x73;&#101;&#100;&#64;&#x67;&#x6e;&#x75;&#46;&#111;&#x72;&#103;&#x2e;</a> Also, please include the output of &ldquo;sed &ndash;version&rdquo; in the body of your
report if at all possible.</p>
<p>AUTHOR
Expand Down Expand Up @@ -2276,108 +2285,6 @@ rpm -ql yum-cron
OR
# yum update httpd -y &ndash;downloadonly &ndash;downloaddir=/opt ##下载到指定目录
# yum install perl-MailTools &ndash;downloadonly &ndash;downloaddir=/opt -y ##如果软件已经下载过了,必须使用这个来下载</p>
]]></content>
</entry>

<entry>
<title type="html"><![CDATA[理解Mysql字符集设置]]></title>
<link href="http://me.94313.net/blog/2012/01/17/understand-mysql-charset/"/>
<updated>2012-01-17T10:39:27+08:00</updated>
<id>http://me.94313.net/blog/2012/01/17/understand-mysql-charset</id>
<content type="html"><![CDATA[<h3>基本概念</h3>
<ul>
<li>字符(Character)是指人类语言中最小的表义符号。例如’A’、’B’等;</li>
<li>给定一系列字符,对每个字符赋予一个数值,用数值来代表对应的字符,这一数值就是字符的编码(Encoding)例如,我们给字符’A’赋予数值0,给字符’B’赋予数值1,则0就是字符’A’的编码;</li>
<li>给定一系列字符并赋予对应的编码后,所有这些字符和编码对组成的集合就是字符集(Character Set)。例如,给定字符列表为{’A’,’B’}时,{’A’=>0, ‘B’=>1}就是一个字符集;</li>
<li>字符序(Collation)是指在同一字符集内字符之间的比较规则;</li>
<li>确定字符序后,才能在一个字符集上定义什么是等价的字符,以及字符之间的大小关系;</li>
<li>每个字符序唯一对应一种字符集,但一个字符集可以对应多种字符序,其中有一个是默认字符序(Default Collation);</li>
<li>MySQL中的字符序名称遵从命名惯例:以字符序对应的字符集名称开头;以<em>ci(表示大小写不敏感)、</em>cs(表示大小写敏感)或_bin(表示按编码值比较)结尾。例如:在字符序“utf8_general_ci”下,字符“a”和“A”是等价的;</li>
</ul>
<h3>MySQL字符集设置</h3>
<p>• 系统变量:
– character_set_server:默认的内部操作字符集
– character_set_client:客户端来源数据使用的字符集
– character_set_connection:连接层字符集
– character_set_results:查询结果字符集
– character_set_database:当前选中数据库的默认字符集
– character_set_system:系统元数据(字段名等)字符集
– 还有以collation<em>开头的同上面对应的变量,用来描述字符序。
• 用introducer指定文本字符串的字符集:
– 格式为:[</em>charset] ’string’ [COLLATE collation]
– 例如:
• SELECT <em>latin1 ’string’;
• SELECT </em>utf8 ‘你好’ COLLATE utf8_general_ci;
– 由introducer修饰的文本字符串在请求过程中不经过多余的转码,直接转换为内部字符集处理。</p>
<h3>MySQL中的字符集转换过程</h3>
<pre><code>1. MySQL Server收到请求时将请求数据从character_set_client转换为character_set_connection;
2. 进行内部操作前将请求数据从character_set_connection转换为内部操作字符集,其确定方法如下:
• 使用每个数据字段的CHARACTER SET设定值;
• 若上述值不存在,则使用对应数据表的DEFAULT CHARACTER SET设定值(MySQL扩展,非SQL标准);
• 若上述值不存在,则使用对应数据库的DEFAULT CHARACTER SET设定值;
• 若上述值不存在,则使用character_set_server设定值。
3. 将操作结果从内部操作字符集转换为character_set_results。
</code></pre>
<p><img src="http://me.94313.net/images/understand-mysql-charset-01.jpg" alt="understand-mysql-charset" /></p>
<h3>常见问题解析</h3>
<ul>
<li>向默认字符集为utf8的数据表插入utf8编码的数据前没有设置连接字符集,查询时设置连接字符集为utf8</li>
<li>插入时根据MySQL服务器的默认设置,character_set_client、character_set_connection和character_set_results均为latin1;</li>
<li>插入操作的数据将经过latin1=>latin1=>utf8的字符集转换过程,这一过程中每个插入的汉字都会从原始的3个字节变成6个字节保存;</li>
<li>查询时的结果将经过utf8=>utf8的字符集转换过程,将保存的6个字节原封不动返回,产生乱码……</li>
</ul>
<p><img src="http://me.94313.net/images/understand-mysql-charset-02.jpg" alt="understand-mysql-charset" /></p>
<ul>
<li>向默认字符集为latin1的数据表插入utf8编码的数据前设置了连接字符集为utf8</li>
<li>插入时根据连接字符集设置,character_set_client、character_set_connection和character_set_results均为utf8;</li>
<li>插入数据将经过utf8=>utf8=>latin1的字符集转换,若原始数据中含有\u0000~\u00ff范围以外的Unicode字 符,会因为无法在latin1字符集中表示而被转换为“?”(0×3F)符号,以后查询时不管连接字符集设置如何都无法恢复其内容了。</li>
</ul>
<p><img src="http://me.94313.net/images/understand-mysql-charset-02.jpg" alt="understand-mysql-charset" /></p>
<h3>检测字符集问题的一些手段</h3>
<ul>
<li>SHOW CHARACTER SET;</li>
<li>SHOW COLLATION;</li>
<li>SHOW VARIABLES LIKE ‘character%’;</li>
<li>SHOW VARIABLES LIKE ‘collation%’;</li>
<li>SQL函数HEX、LENGTH、CHAR_LENGTH</li>
<li>SQL函数CHARSET、COLLATION</li>
</ul>
<h3>使用MySQL字符集时的建议</h3>
<ul>
<li>建立数据库/表和进行数据库操作时尽量显式指出使用的字符集,而不是依赖于MySQL的默认设置,否则MySQL升级时可能带来很大困扰;</li>
<li>数据库和连接字符集都使用latin1时虽然大部分情况下都可以解决乱码问题,但缺点是无法以字符为单位来进行SQL操作,一般情况下将数据库和连接字符集都置为utf8是较好的选择;</li>
<li>使用mysql C API时,初始化数据库句柄后马上用mysql_options设定MYSQL_SET_CHARSET_NAME属性为utf8,这样就不用显式地用 SET NAMES语句指定连接字符集,且用mysql_ping重连断开的长连接时也会把连接字符集重置为utf8;</li>
<li>对于mysql PHP API,一般页面级的PHP程序总运行时间较短,在连接到数据库以后显式用SET NAMES语句设置一次连接字符集即可;但当使用长连接时,请注意保持连接通畅并在断开重连后用SET NAMES语句显式重置连接字符集。</li>
</ul>
<h3>其他注意事项</h3>
<ul>
<li>my.cnf中的default_character_set设置只影响mysql命令连接服务器时的连接字符集,不会对使用libmysqlclient库的应用程序产生任何作用!</li>
<li>对字段进行的SQL函数操作通常都是以内部操作字符集进行的,不受连接字符集设置的影响。</li>
<li>SQL语句中的裸字符串会受到连接字符集或introducer设置的影响,对于比较之类的操作可能产生完全不同的结果,需要小心!</li>
</ul>
]]></content>
</entry>

Expand Down
8 changes: 4 additions & 4 deletions blog/2012/01/17/understand-mysql-charset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ <h3>其他注意事项</h3>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -239,10 +243,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2012/03/02/note-of-yum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ <h3>附:</h3>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -355,10 +359,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2012/03/23/command-line-skill-of-linux/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ <h2>注意:</h2>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -214,10 +218,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2012/05/30/intr-rsa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ <h1 class="entry-title">RSA加密算法简单介绍</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -174,10 +178,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2012/10/19/it-gangwei-shuoming/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ <h3>岗位:产品经理(当所开发的项目为产品型项目时设立,
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -358,10 +362,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2012/12/06/use-of-stack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ <h1 class="entry-title">使用栈来找路径</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -712,10 +716,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2013/08/30/jquery-extend-method/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ <h1 class="entry-title">jQuery.extend()函数注释说明</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -245,10 +249,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2014/01/31/consistent-hashing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ <h1 class="entry-title">一致性哈希算法浅析</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -202,10 +206,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2014/05/20/octopress-add-category2rightaside/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ <h2>配置侧边栏需要修改_config.yml文件,修改其default_asides项:
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -186,10 +190,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
8 changes: 4 additions & 4 deletions blog/2014/08/31/apache-http-request-process/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ <h1 class="entry-title">Apache处理http请求的生命周期</h1>
<h1>Recent Posts</h1>
<ul id="recent_posts">

<li class="post">
<a href="/blog/2017/09/06/test/">Test</a>
</li>

<li class="post">
<a href="/blog/2017/08/10/shell-history/">Shell History 命令扩展</a>
</li>
Expand All @@ -163,10 +167,6 @@ <h1>Recent Posts</h1>
<a href="/blog/2014/10/19/css-clearfix/">Css-clearfix</a>
</li>

<li class="post">
<a href="/blog/2014/10/19/wangzhan-paizhao/">经营一个网站需要哪些牌照资质</a>
</li>

</ul>
</section>
<section>
Expand Down
Loading

0 comments on commit 4bff688

Please sign in to comment.