<?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>Yuzifu Studio &#187; Note</title>
	<atom:link href="http://blog.yuzifu.net/index.php/category/note/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yuzifu.net</link>
	<description>Welcome to Yuzifu&#039;s website!</description>
	<lastBuildDate>Sun, 05 Sep 2010 14:48:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>2010-06-03 tips</title>
		<link>http://blog.yuzifu.net/index.php/2010/06/2010-06-03-tips/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/06/2010-06-03-tips/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 13:44:13 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[barcode]]></category>
		<category><![CDATA[bartender]]></category>
		<category><![CDATA[code128]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[uru4000b]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=448</guid>
		<description><![CDATA[一、URU4000B
URU4000B在程序里的关系是这样的：程序-&#62;biokey.ocx-&#62;Driver-&#62;URU4000B。biokey.ocx是ActiveX，即所谓的SDK。我试过直接引用这个文件，但不成功，所以只能注册后引用COM。使用它并不算难，主类是ZKPEngX，它有这么几个属性可能用的着：
Active、
EngineValid、
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/06/2010-06-03-tips/" title="2010-06-03 tips" target="_blank">阅读全文——共794字</a></span>]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #0000ff;"><strong>一、URU4000B</strong></span></h2>
<p>URU4000B在程序里的关系是这样的：程序-&gt;biokey.ocx-&gt;Driver-&gt;URU4000B。biokey.ocx是ActiveX，即所谓的SDK。我试过直接引用这个文件，但不成功，所以只能注册后引用COM。使用它并不算难，主类是ZKPEngX，它有这么几个属性可能用的着：</p>
<blockquote><p>Active、<br />
EngineValid、<br />
EnrollCount、<br />
EnrollIndex、<br />
IsRegister、<br />
SensorCount、<br />
SensorIndex。</p></blockquote>
<p>比较有用的方法有：</p>
<blockquote><p>InitEngine()、<br />
BeginEnroll()、<br />
EndEngine()、<br />
GetTemplateAsString()、<br />
PrintImageAt()、<br />
SaveJPG()、<br />
VerFingerFromStr()。</p></blockquote>
<p>一定会用到的事件有：</p>
<blockquote><p>OnCapture、<br />
OnEnroll、<br />
OnFeatureInfo、<br />
OnImageReceived。</p></blockquote>
<p>在使用的过程中发现两个状况：<br />
1，我每次登记完和验证完后都调用EndEngine()方法来释放设备，当如此几次后，CPU占用率升至50%，系统反映慢。<br />
2，后来我改在加载窗口时调用InitEngine()来初始化设备，并且整个窗口类里都没有调用EndEngine()来释放设备，结果第二次打开窗口的时候，设备会不工作。</p>
<h2><span style="color: #0000ff;"><strong>二、条码</strong></span></h2>
<p>我原来的条码使用的是Code128，打印软件是Bartender，全手工操作。</p>
<p>现在想实现程序自动打印条码，刚开始的想法是去找免费的条码SDK，集成在程序里。于是在网上找了一阵子，倒是找到了两个，但是限制太多，等于没用。</p>
<p>后来突然想到一个折中的办法，使用Portable型的打印软件，并制作好标签文件，里面设置好从Excel文件读取数据,然后在程序里生成这个Excel数据文件，最后调用打印软件打开标签文件。</p>
<p>另外，条码编码改用code128c，因为它更便于扫描。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/06/2010-06-03-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>封装了Popup</title>
		<link>http://blog.yuzifu.net/index.php/2010/05/%e5%b0%81%e8%a3%85%e4%ba%86popup/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/05/%e5%b0%81%e8%a3%85%e4%ba%86popup/#comments</comments>
		<pubDate>Thu, 13 May 2010 09:48:59 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=445</guid>
		<description><![CDATA[代码如下：
using System;
using System.Windows;
using System.Windows.Controls;
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/05/%e5%b0%81%e8%a3%85%e4%ba%86popup/" title="封装了Popup" target="_blank">阅读全文——共2301字</a></span>]]></description>
			<content:encoded><![CDATA[<p>代码如下：</p>
<pre lang="c#">using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
using System.Windows.Threading;

namespace Yuzifu.Tools
{
    public sealed class MessagePopup
    {
        public static void Show(UIElement parent, string message)
        {
            parent.Dispatcher.Invoke(DispatcherPriority.Background, new Action(() =&gt;
                {
                    Popup popup = new Popup();
                    popup.StaysOpen = true;
                    popup.PlacementTarget = parent;
                    popup.Placement = PlacementMode.Center;

                    Border aroundBorder = new Border();
                    aroundBorder.BorderThickness = new Thickness(2);
                    aroundBorder.BorderBrush = Brushes.SteelBlue;

                    StackPanel aroundStackPanel = new StackPanel();
                    aroundStackPanel.MinWidth = 320;
                    aroundStackPanel.MinHeight = 120;
                    aroundStackPanel.MaxWidth = 480;
                    aroundStackPanel.Background = Brushes.White;
                    aroundStackPanel.Orientation = Orientation.Vertical;
                    aroundStackPanel.FlowDirection = FlowDirection.LeftToRight;

                    DockPanel headDockPanel = new DockPanel();
                    headDockPanel.VerticalAlignment = VerticalAlignment.Top;
                    headDockPanel.Background = Brushes.SteelBlue;

                    TextBlock headTextBlock = new TextBlock();
                    headTextBlock.Margin = new Thickness(10, 0, 0, 0);
                    headTextBlock.Text = "提示";
                    headTextBlock.Height = 26;
                    headTextBlock.HorizontalAlignment = HorizontalAlignment.Left;
                    headTextBlock.VerticalAlignment = VerticalAlignment.Center;
                    headTextBlock.FontSize = 16;
                    headTextBlock.Focusable = false;
                    headTextBlock.IsHitTestVisible = false;
                    headTextBlock.Background = Brushes.SteelBlue;
                    headTextBlock.Foreground = Brushes.White;

                    TextBlock messageTextBlock = new TextBlock();
                    messageTextBlock.Text = message;
                    messageTextBlock.Margin = new Thickness(20, 20, 20, 10);
                    messageTextBlock.MinHeight = 28;
                    messageTextBlock.VerticalAlignment = VerticalAlignment.Top;
                    messageTextBlock.HorizontalAlignment = HorizontalAlignment.Left;
                    messageTextBlock.TextWrapping = TextWrapping.Wrap;

                    Button okButton = new Button();
                    okButton.Content = "OK";
                    okButton.Margin = new Thickness(0, 0, 20, 10);
                    okButton.Padding = new Thickness(25, 3,25,3);
                    okButton.HorizontalAlignment = HorizontalAlignment.Right;
                    okButton.Click += delegate
                    {
                        popup.IsOpen = false;
                        parent.IsEnabled = true;
                    };

                    headDockPanel.Children.Add(headTextBlock);
                    aroundStackPanel.Children.Add(headDockPanel);
                    aroundStackPanel.Children.Add(messageTextBlock);
                    aroundStackPanel.Children.Add(okButton);
                    aroundBorder.Child = aroundStackPanel;
                    popup.Child = aroundBorder;

                    parent.IsEnabled = false;
                    popup.IsOpen = true;
                }));
        }
    }
}</pre>
<p>使用方法:</p>
<blockquote><p>MessagePopup.Show(this,&#8221;显示文字&#8221;);</p></blockquote>
<p>显示效果如下：</p>
<p><a href="http://blog.yuzifu.net/wp-content/uploads/2010/05/MessagePopup.png"><img class="alignnone size-full wp-image-446" title="MessagePopup" src="http://blog.yuzifu.net/wp-content/uploads/2010/05/MessagePopup.png" alt="" width="329" height="129" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/05/%e5%b0%81%e8%a3%85%e4%ba%86popup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SciTE添加到右键菜单</title>
		<link>http://blog.yuzifu.net/index.php/2010/04/scite%e6%b7%bb%e5%8a%a0%e5%88%b0%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/04/scite%e6%b7%bb%e5%8a%a0%e5%88%b0%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 15:05:49 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[scite]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=442</guid>
		<description><![CDATA[SciTE不错，不过它是以压缩包的方式来发布的，想要方便地使用它，可以新建快捷方式或添加到右击菜单，下面是添加到右键菜单的方法：
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Edit with SciTE]
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/04/scite%e6%b7%bb%e5%8a%a0%e5%88%b0%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95/" title="SciTE添加到右键菜单" target="_blank">阅读全文——共326字</a></span>]]></description>
			<content:encoded><![CDATA[<p>SciTE不错，不过它是以压缩包的方式来发布的，想要方便地使用它，可以新建快捷方式或添加到右击菜单，下面是添加到右键菜单的方法：</p>
<blockquote><p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell]<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Edit with SciTE]<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Edit with SciTE\command]<br />
@=&#8221;D:\\Program Files\\wscite\\SciTE.exe %1&#8243;</p></blockquote>
<p>以下方法在Window 7下测试通过。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/04/scite%e6%b7%bb%e5%8a%a0%e5%88%b0%e5%8f%b3%e9%94%ae%e8%8f%9c%e5%8d%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPF多线程以及UI</title>
		<link>http://blog.yuzifu.net/index.php/2010/03/wpf%e5%a4%9a%e7%ba%bf%e7%a8%8b%e4%bb%a5%e5%8f%8aui/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/03/wpf%e5%a4%9a%e7%ba%bf%e7%a8%8b%e4%bb%a5%e5%8f%8aui/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 05:59:19 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[多线程]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2010/03/wpf%e5%a4%9a%e7%ba%bf%e7%a8%8b%e4%bb%a5%e5%8f%8aui/</guid>
		<description><![CDATA[一、界面无响应，即所谓的卡
可以使用
delegate void DeleDisp();
DeleDisp dd = new DeleDisp(DispInfo);
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/03/wpf%e5%a4%9a%e7%ba%bf%e7%a8%8b%e4%bb%a5%e5%8f%8aui/" title="WPF多线程以及UI" target="_blank">阅读全文——共365字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>一、界面无响应，即所谓的卡</strong></p>
<p>可以使用<br />
<code>delegate void DeleDisp();<br />
DeleDisp dd = new DeleDisp(DispInfo);<br />
dd.BeginInvoke(null, null);</code></p>
<p>如果使用了<br />
<code>Dispatcher.BeginInvoke(dd);</code><br />
则界面依然会卡</p>
<p><strong>二、报异常“控件由其它线程创建，无法访问其它线程的UI”</strong></p>
<p>这个比较简单<br />
只要使用把访问UI属性的代码用<br />
<code>Dispatcher.BeginInvoke()</code><br />
包装起来就可以了。</p>
<p>如果是循环更改界面，则应该把把循环的代码放在Dispatcher.BeginInvoke()外面。</p>
<p><strong>三、控件不能同步显示</strong></p>
<p>如果出现这种现象，既可以调用控件的<br />
<code>Refresh()</code><br />
方法来刷新，</p>
<p>还可以调用<br />
<code>System.Windows.Forms.Application.DoEvents()</code><br />
方法来刷新。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/03/wpf%e5%a4%9a%e7%ba%bf%e7%a8%8b%e4%bb%a5%e5%8f%8aui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>折腾</title>
		<link>http://blog.yuzifu.net/index.php/2010/02/%e6%8a%98%e8%85%be/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/02/%e6%8a%98%e8%85%be/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:55:09 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Management]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[ISP]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[SQL SERVER]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[空间]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=438</guid>
		<description><![CDATA[身逢乱世，时不时地出点岔子也就算是有理由了。网站时不时停摆，ISP就不停地更换IP，但想不到后来竟然连ISP的NS服务器也被封了。为了不再受这样的鸟气，我把空间、DNS解析全搬到国外去了。
终于可以安静了。
因为换IP，一台SQL SERVER服务器连接不上。于是跑到服务器那边去看，发现除了连接Internet的网卡IP更换为了新IP，连OPENVPN的虚拟网卡也被“技术人员”修改为了新IP。
人才啊，难怪连接不上。
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/02/%e6%8a%98%e8%85%be/" title="折腾" target="_blank">阅读全文——共345字</a></span>]]></description>
			<content:encoded><![CDATA[<p>身逢乱世，时不时地出点岔子也就算是有理由了。网站时不时停摆，ISP就不停地更换IP，但想不到后来竟然连ISP的NS服务器也被封了。为了不再受这样的鸟气，我把空间、DNS解析全搬到国外去了。</p>
<p>终于可以安静了。</p>
<p>因为换IP，一台SQL SERVER服务器连接不上。于是跑到服务器那边去看，发现除了连接Internet的网卡IP更换为了新IP，连OPENVPN的虚拟网卡也被“技术人员”修改为了新IP。</p>
<p>人才啊，难怪连接不上。</p>
<p>不过事情并未就如此完结，VPN是连接上了，SQL SERVER还是连接不上，于是又去了一趟服务器那边，发现SQL SERVER服务不能启动，经过查询日志才知道，由于更改了操作系统用户帐号，而SQL SERVER服务的登录帐号还是原帐号，导致登录不成功，所以SQL SERVER不能启动。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/02/%e6%8a%98%e8%85%be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>第九个硬盘</title>
		<link>http://blog.yuzifu.net/index.php/2010/01/%e7%ac%ac%e4%b9%9d%e4%b8%aa%e7%a1%ac%e7%9b%98/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/01/%e7%ac%ac%e4%b9%9d%e4%b8%aa%e7%a1%ac%e7%9b%98/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 00:54:40 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Management]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[1T]]></category>
		<category><![CDATA[320G]]></category>
		<category><![CDATA[500G]]></category>
		<category><![CDATA[希捷]]></category>
		<category><![CDATA[硬盘]]></category>
		<category><![CDATA[西数]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=435</guid>
		<description><![CDATA[希捷SATA 1T，发出嗒&#8230;嗒&#8230;规律的响声，系统蓝屏，重启提示加载操作系统错误。
于是，从2009年11月休假回来后，这是坏的很九个硬盘，两个西数SATA 320G，一个希捷SATA 1T，四个希捷SATA 500G，两个希捷SATA 320G。
坏的原因有三种，三个是坏道，两个是希捷固件门，四个是无法检测。
]]></description>
			<content:encoded><![CDATA[<p>希捷SATA 1T，发出嗒&#8230;嗒&#8230;规律的响声，系统蓝屏，重启提示加载操作系统错误。</p>
<p>于是，从2009年11月休假回来后，这是坏的很九个硬盘，两个西数SATA 320G，一个希捷SATA 1T，四个希捷SATA 500G，两个希捷SATA 320G。</p>
<p>坏的原因有三种，三个是坏道，两个是希捷固件门，四个是无法检测。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/01/%e7%ac%ac%e4%b9%9d%e4%b8%aa%e7%a1%ac%e7%9b%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install pptp and radius on lenny</title>
		<link>http://blog.yuzifu.net/index.php/2010/01/install-pptp-and-radius-on-lenny/</link>
		<comments>http://blog.yuzifu.net/index.php/2010/01/install-pptp-and-radius-on-lenny/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 09:43:27 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Note]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[pptpd]]></category>
		<category><![CDATA[radius]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=419</guid>
		<description><![CDATA[1,install all packages
#apt-get install pptpd freeradius radiusclient1
2,configure pptp
#vim /etc/pptpd.conf
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2010/01/install-pptp-and-radius-on-lenny/" title="Install pptp and radius on lenny" target="_blank">阅读全文——共1080字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1,install all packages<br />
#apt-get install pptpd freeradius radiusclient1</p>
<p>2,configure pptp<br />
#vim /etc/pptpd.conf</p>
<p>localip 192.168.42.122<br />
remoteip 192.168.42.123-200</p>
<p>#vim /etc/ppp/pptpd-options</p>
<p>ms-dns 8.8.4.4<br />
ms-dns 208.67.222.222<br />
plugin /usr/lib/pppd/2.4.4/radius.so<br />
radius-config-file /etc/radiusclient/radiusclient.conf</p>
<p>3,configure radius<br />
#vim /etc/freeradius/client.conf</p>
<p>client 127.0.0.1 {<br />
 secret  = mysecret<br />
 nastype     = other<br />
}</p>
<p>#vim /etc/freeradius/users</p>
<p>myusername Cleartext-Password := &#8220;mypassword&#8221;<br />
 Service-Type = Framed-User,<br />
 Framed-Protocol = PPP,<br />
 Framed-IP-Address = 192.168.42.123,<br />
 Framed-IP-Netmask = 255.255.255.0,<br />
 Framed-Routing = Broadcast-Listen,<br />
 Framed-Filter-Id = &#8220;std.ppp&#8221;,<br />
 Framed-MTU = 1500,<br />
 Framed-Compression = Van-Jacobsen-TCP-IP<br />
 <br />
 <br />
4,configure radclient<br />
#vim /etc/radiusclient</p>
<p>127.0.0.1           mysecret<br />
 <br />
#vim /etc/radiusclient/dictionary.microsoft</p>
<p>add content from <a href="http://wiki.freeradius.org/PopTop">http://wiki.freeradius.org/PopTop</a></p>
<p>#vim /etc/radiusclient/dictionary</p>
<p>INCLUDE /etc/radiusclient/dictionary.microsoft<br />
INCLUDE /etc/radiusclient/dictionary.merit<br />
5,test radius<br />
#radtest myusername mypassword 127.0.0.1 0 mysecret</p>
<p>6,if OS not exist /dev/ppp device,creat it<br />
#mknod /dev/ppp c 108 0</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2010/01/install-pptp-and-radius-on-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgreSQL 8.4.2在Win2k3安装不成功</title>
		<link>http://blog.yuzifu.net/index.php/2009/12/postgresql-8-4-2%e5%9c%a8win2k3%e5%ae%89%e8%a3%85%e4%b8%8d%e6%88%90%e5%8a%9f/</link>
		<comments>http://blog.yuzifu.net/index.php/2009/12/postgresql-8-4-2%e5%9c%a8win2k3%e5%ae%89%e8%a3%85%e4%b8%8d%e6%88%90%e5%8a%9f/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 15:29:58 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[win2k3]]></category>
		<category><![CDATA[字符集]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/index.php/2009/12/postgresql-8-4-2%e5%9c%a8win2k3%e5%ae%89%e8%a3%85%e4%b8%8d%e6%88%90%e5%8a%9f/</guid>
		<description><![CDATA[从8.4开始，在我的laptop的win2k3下就不能安装成功，不是权限问题，也不是字符集问题，出错的日志如下：

Initialising the database cluster (this may take a few minutes)...
Executing cscript //NoLogo "D:\PostgreSQL\8.4/installer/server/initcluster.vbs" "postgres" "postgres" "sadb" "D:\PostgreSQL\8.4" "D:\PostgreSQL\8.4\data" 5432 "English, United States"
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2009/12/postgresql-8-4-2%e5%9c%a8win2k3%e5%ae%89%e8%a3%85%e4%b8%8d%e6%88%90%e5%8a%9f/" title="PostgreSQL 8.4.2在Win2k3安装不成功" target="_blank">阅读全文——共1480字</a></span>]]></description>
			<content:encoded><![CDATA[<p>从8.4开始，在我的laptop的win2k3下就不能安装成功，不是权限问题，也不是字符集问题，出错的日志如下：<br />
<code><br />
Initialising the database cluster (this may take a few minutes)...<br />
Executing cscript //NoLogo "D:\PostgreSQL\8.4/installer/server/initcluster.vbs" "postgres" "postgres" "sadb" "D:\PostgreSQL\8.4" "D:\PostgreSQL\8.4\data" 5432 "English, United States"<br />
Script exit code: 1</p>
<p>Script output:</p>
<p>Ensuring we can write to the data directory (using cacls):<br />
处理的目录: D:\PostgreSQL\8.4\data</p>
<p>The files belonging to this database system will be owned by user "yuzifu".<br />
This user must also own the server process.</p>
<p>The database cluster will be initialized with locale English, United States.<br />
initdb: could not find suitable text search configuration for locale English, United States<br />
The default text search configuration will be set to "simple".</p>
<p>fixing permissions on existing directory D:/PostgreSQL/8.4/data ... ok<br />
creating subdirectories ... ok<br />
selecting default max_connections ... 10<br />
selecting default shared_buffers ... 400kB<br />
creating configuration files ... ok<br />
creating template1 database in D:/PostgreSQL/8.4/data/base/1 ... 当前目录无效。<br />
child process exited with exit code 1<br />
initdb: removing contents of data directory "D:/PostgreSQL/8.4/data"</p>
<p>Failed to initialise the database cluster with initdb</p>
<p>Script stderr:<br />
 Program ended with an error exit code</p>
<p>Error running cscript //NoLogo "D:\PostgreSQL\8.4/installer/server/initcluster.vbs" "postgres" "postgres" "(password)" "D:\PostgreSQL\8.4" "D:\PostgreSQL\8.4\data" 5432 "English, United States" : Program ended with an error exit code<br />
Problem running post-install step. Installation may not complete correctly<br />
 The database cluster initialisation failed.<br />
</code><br />
问题最大可能是出在与我安装的某个程序相冲突，但是现在我没有头绪。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2009/12/postgresql-8-4-2%e5%9c%a8win2k3%e5%ae%89%e8%a3%85%e4%b8%8d%e6%88%90%e5%8a%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009-12-01 tips</title>
		<link>http://blog.yuzifu.net/index.php/2009/12/2009-12-01-tips/</link>
		<comments>http://blog.yuzifu.net/index.php/2009/12/2009-12-01-tips/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 01:59:40 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[S5000VSA]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[山特]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=414</guid>
		<description><![CDATA[1,有三个山特: 山特电子（深圳）有限公司(www.santak.com.cn)、山特集成电源设备厂(www.stkpower.com)和美国山特(www.usasantak.com)，同为1000V的在线式，它们三者的产品型号均为C1KS，且前两者外观也一样，但售价不同，山特电子为1250,山特电源为860.
2,倒霉的11月过去了：监控卡坏了，硬盘也坏了；突然掉电，导致S5000VSA上的一对内存插槽损坏，内存也烧掉了一根；Ubuntu Server文件系统发生故障，所有数据丢失；网站升级一个补丁包，结果打不开了，原因是补丁只针对php 5.2.11之前的版本。
3,趁着重装服务器，布署了ESXi 4.0。
]]></description>
			<content:encoded><![CDATA[<p>1,有三个山特: 山特电子（深圳）有限公司(www.santak.com.cn)、山特集成电源设备厂(www.stkpower.com)和美国山特(www.usasantak.com)，同为1000V的在线式，它们三者的产品型号均为C1KS，且前两者外观也一样，但售价不同，山特电子为1250,山特电源为860.</p>
<p>2,倒霉的11月过去了：监控卡坏了，硬盘也坏了；突然掉电，导致S5000VSA上的一对内存插槽损坏，内存也烧掉了一根；Ubuntu Server文件系统发生故障，所有数据丢失；网站升级一个补丁包，结果打不开了，原因是补丁只针对php 5.2.11之前的版本。</p>
<p>3,趁着重装服务器，布署了ESXi 4.0。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2009/12/2009-12-01-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009-10-11 tips</title>
		<link>http://blog.yuzifu.net/index.php/2009/10/2009-10-11-tips/</link>
		<comments>http://blog.yuzifu.net/index.php/2009/10/2009-10-11-tips/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 15:05:17 +0000</pubDate>
		<dc:creator>yuzifu</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[groupoffice]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[wpf]]></category>
		<category><![CDATA[休假]]></category>
		<category><![CDATA[体重]]></category>
		<category><![CDATA[天下2]]></category>

		<guid isPermaLink="false">http://blog.yuzifu.net/?p=411</guid>
		<description><![CDATA[1,项目上线了，版本为2009.0 beta
2,试用了好几个开源OA，最满意的是Group-Office，不过还没法用它，它的在线编辑文档功能是付费才有的
3,实施是一门艺术
4,OpenVPN比PPTP好用的地方在于，同一局域网里可以多个客户端同时拔号
<span class="readmore"><a href="http://blog.yuzifu.net/index.php/2009/10/2009-10-11-tips/" title="2009-10-11 tips" target="_blank">阅读全文——共219字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1,项目上线了，版本为2009.0 beta</p>
<p>2,试用了好几个开源OA，最满意的是Group-Office，不过还没法用它，它的在线编辑文档功能是付费才有的</p>
<p>3,实施是一门艺术</p>
<p>4,OpenVPN比PPTP好用的地方在于，同一局域网里可以多个客户端同时拔号</p>
<p>5,WPF看起来不错，界面跟逻辑分开，很清楚，虽然JAVA也可以，但JAVA的开发效率实在不怎么样</p>
<p>6,国庆花了几个下午，把天下2的角色升到了45级</p>
<p>7,体重降了一点点，71.5KG</p>
<p>8,月底休假</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yuzifu.net/index.php/2009/10/2009-10-11-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
