﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Timothy&#039;s Space &#187; display</title>
	<atom:link href="http://www.xiaozhou.net/tag/display/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaozhou.net</link>
	<description>君看一叶舟，出没风波里</description>
	<lastBuildDate>Tue, 07 Feb 2012 04:28:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Debian VPS 设置中文显示</title>
		<link>http://www.xiaozhou.net/ittech/vps-ittech/display_chinese_in_debian_vps-2011-08-14.htm</link>
		<comments>http://www.xiaozhou.net/ittech/vps-ittech/display_chinese_in_debian_vps-2011-08-14.htm#comments</comments>
		<pubDate>Sun, 14 Aug 2011 13:59:00 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[vps]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[中文]]></category>
		<category><![CDATA[显示]]></category>

		<guid isPermaLink="false">http://www.xiaozhou.net/ittech/vps-ittech/debian-vps-%e8%ae%be%e7%bd%ae%e4%b8%ad%e6%96%87%e6%98%be%e7%a4%ba-2011-08-14.htm</guid>
		<description><![CDATA[最近看到YuchBerry出了新版，于是又打算把我的BB9000拿来折腾一下。不过第一步呢，就是需要在VPS上搭建YuchBerry的服务端，由于推送和发送的邮件中会用到中文，所以需要先给VPS设置中文环境，避免出现乱码。本教程将记录一下如何在Linux VPS中设置中文字体和显示中文，VPS的系统为Debian。 首先，安装中文包： ?View Code BASH1 apt-get install zhcon 然后，查看系统支持的字库有哪些：more /usr/share/i18n/SUPPORTED step 1:  编辑 /etc/locale.gen 添加如下内容，使系统中加入中文库 #koria add this for chinese input zh_CN.UTF-8 UTF-8 step2: 执行脚本/usr/sbin/locale-gen，生成具有中文输入库的支持包 /usr/sbin/locale-gen step3 :  编辑 /etc/bashrc 和 /etc/profile，在文件的最后加上 export LC_ALL=&#8221;zh_CN.utf8&#8243; export LC_CTYPE=&#8221;zh_CN.utf8&#8243; export LANG=&#8221;zh_CN.utf8&#8243; 最后，设置SSH客户端的字体和编码，例如SecureCRT 中 Session Options 里头字符设置为 UTF-8，并选择 Fixedsys 字体。重新用 SecureCRT 连接。 最后，测试中文能否正常显示，用date命令： 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 [...]]]></description>
			<content:encoded><![CDATA[<p>最近看到YuchBerry出了新版，于是又打算把我的BB9000拿来折腾一下。不过第一步呢，就是需要在VPS上搭建YuchBerry的服务端，由于推送和发送的邮件中会用到中文，所以需要先给VPS设置中文环境，避免出现乱码。本教程将记录一下如何在Linux VPS中设置中文字体和显示中文，VPS的系统为Debian。<span id="more-1254"></span></p>
<p>首先，安装中文包：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1254code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12542"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1254code2"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> zhcon</pre></td></tr></table></div>

<p>然后，查看系统支持的字库有哪些：more /usr/share/i18n/SUPPORTED</p>
<p>step 1:  编辑 /etc/locale.gen 添加如下内容，使系统中加入中文库</p>
<p>#koria add this for chinese input</p>
<p>zh_CN.UTF-8 UTF-8</p>
<p>step2: 执行脚本/usr/sbin/locale-gen，生成具有中文输入库的支持包</p>
<p>/usr/sbin/locale-gen</p>
<p>step3 :  编辑 /etc/bashrc 和 /etc/profile，在文件的最后加上</p>
<p>export LC_ALL=&#8221;zh_CN.utf8&#8243;</p>
<p>export LC_CTYPE=&#8221;zh_CN.utf8&#8243;</p>
<p>export LANG=&#8221;zh_CN.utf8&#8243;</p>
<p>最后，设置SSH客户端的字体和编码，例如SecureCRT 中 Session Options 里头字符设置为 UTF-8，并选择 Fixedsys 字体。重新用 SecureCRT 连接。</p>
<p>最后，测试中文能否正常显示，用date命令：</p>
<p><a href="http://www.xiaozhou.net/pics/Debian_1330B/chinese.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="chinese" src="http://www.xiaozhou.net/pics/Debian_1330B/chinese_thumb.jpg" alt="chinese" width="469" height="90" border="0" /></a></p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/ittech/vps-ittech/display_chinese_in_debian_vps-2011-08-14.htm/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>动态加载并显示图片</title>
		<link>http://www.xiaozhou.net/vcdevelopment/dynamic-loading-and-explicit-pictures-2004-12-22.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/dynamic-loading-and-explicit-pictures-2004-12-22.htm#comments</comments>
		<pubDate>Wed, 22 Dec 2004 13:52:55 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[加载]]></category>
		<category><![CDATA[动态]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[显示]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=53</guid>
		<description><![CDATA[HBITMAP hbitmap=(HBITMAP)::LoadImage(AfxGetInstanceHandle(),&#8221;**.bmp&#8221;, IMAGE_BITMAP,0,0, LR_CREATEDIBSECTION&#124;LR_LOADFROMFILE); if(hbitmap==NULL) return FALSE; CBitmap m_bitmap; m_bitmap.Attach(hbitmap); HBITMAP hbitmap; //先用上面的方法动态的装载位图,然后把图片显示到Static控件上 //获得指向静态控件的指针 CStatic *pStatic=(CStatic *)GetDlgItem(IDC_SHOWBMP); //获得位图句柄 HBITMAP Bitmap; //设置静态控件的样式，使其可以使用位图，并试位标显示使居中 pStatic->ModifyStyle(0xF,SS_BITMAP&#124;SS_CENTERIMAGE); //设置静态控件显示位图 pStatic->SetBitmap(hBitmap); 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 Timothy&#039;s Space 并应以链接形式标明本文地址!]]></description>
			<content:encoded><![CDATA[<p>HBITMAP hbitmap=(HBITMAP)::LoadImage(AfxGetInstanceHandle(),&#8221;**.bmp&#8221;, IMAGE_BITMAP,0,0, LR_CREATEDIBSECTION|LR_LOADFROMFILE);<br />
if(hbitmap==NULL)<br />
return FALSE;<br />
CBitmap m_bitmap;<br />
m_bitmap.Attach(hbitmap);<br />
HBITMAP hbitmap;<br />
//先用上面的方法动态的装载位图,然后把图片显示到Static控件上<br />
//获得指向静态控件的指针<br />
CStatic *pStatic=(CStatic *)GetDlgItem(IDC_SHOWBMP);<br />
//获得位图句柄<br />
HBITMAP Bitmap;<br />
//设置静态控件的样式，使其可以使用位图，并试位标显示使居中<br />
pStatic->ModifyStyle(0xF,SS_BITMAP|SS_CENTERIMAGE);<br />
//设置静态控件显示位图<br />
pStatic->SetBitmap(hBitmap);</p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/dynamic-loading-and-explicit-pictures-2004-12-22.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>实时时间显示</title>
		<link>http://www.xiaozhou.net/vcdevelopment/real-time-display-2004-10-26.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/real-time-display-2004-10-26.htm#comments</comments>
		<pubDate>Tue, 26 Oct 2004 15:45:39 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[realtime]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[实时]]></category>
		<category><![CDATA[时间]]></category>
		<category><![CDATA[显示]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=41</guid>
		<description><![CDATA[用计时器实现： SetTimer(1, 1000, NULL); 然后在响应函数： void CAlertDlg::OnTimer(UINT nIDEvent) { static CString strTemp; COleDateTime dtTime; // 刷新显示的时间 dtTime = COleDateTime::GetCurrentTime(); strTemp.Format(&#8220;现在时间 %02i:%02i:%02i &#8220;, dtTime.GetHour(), dtTime.GetMinute(), dtTime.GetSecond()); GetDlgItem(IDC_CURTIME)->SetWindowText(strTemp); //IDC_CURTIME即为窗口显示时间的一个 //CEDIT类控件 } 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 Timothy&#039;s Space 并应以链接形式标明本文地址!]]></description>
			<content:encoded><![CDATA[<p>用计时器实现：<br />
SetTimer(1, 1000, NULL);<br />
然后在响应函数：<br />
void CAlertDlg::OnTimer(UINT nIDEvent)<br />
{<br />
static CString strTemp;<br />
COleDateTime dtTime;</p>
<p>// 刷新显示的时间<br />
dtTime = COleDateTime::GetCurrentTime();<br />
strTemp.Format(&#8220;现在时间 %02i:%02i:%02i &#8220;,<br />
dtTime.GetHour(),<br />
dtTime.GetMinute(),<br />
dtTime.GetSecond());<br />
GetDlgItem(IDC_CURTIME)->SetWindowText(strTemp); //IDC_CURTIME即为窗口显示时间的一个<br />
                                                                               //CEDIT类控件</p>
<p>}</p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/real-time-display-2004-10-26.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

