<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>JohnPuPu</title>
	
	<link>http://blog.johnpupu.tw</link>
	<description>博觀而約取，厚積而薄發!!!</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:02:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Johnpupu" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="johnpupu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>ifstated</title>
		<link>http://blog.johnpupu.tw/2010/07/29/ifstated/</link>
		<comments>http://blog.johnpupu.tw/2010/07/29/ifstated/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:03:57 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd carp ifstated]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=520</guid>
		<description><![CDATA[# cd /usr/ports/net/ifstated
# make install clean
# vim /etc/rc.conf
加入以下資料
## ifstated
ifstated_enable=&#8221;YES&#8221;
ifstated_flags=&#8221;-f /usr/local/etc/ifstated.conf&#8221;
# vim /usr/local/etc/ifstated.conf
# We want to startup
init-state starting
# net.inet.carp.preempt must be enabled (set to 1)
# for this to work correctly.
carp_up = &#8220;carp0.link.up&#8221;
state starting {
  init {
# Here we boot the box.
    if $carp_up
      set-state master
   [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/07/29/ifstated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD CARP</title>
		<link>http://blog.johnpupu.tw/2010/07/29/518/</link>
		<comments>http://blog.johnpupu.tw/2010/07/29/518/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:02:58 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd carp]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=518</guid>
		<description><![CDATA[1.
角色分為 Provider, Host
Provider 就是設定當Host 失連後可以取得原先在Host 上的ip 的主機
Host 就是我們的Client
2.
先 compile Kernel 加入 ( Provider, Host 都要)
device carp 
3.
設定 rc.conf
設定 host
hostname=&#8221;hosta.example.org&#8221;
ifconfig_fxp0=&#8221;inet 192.168.1.3 netmask 255.255.255.0&#8243; ## 原本的網卡設定
cloned_interfaces=&#8221;carp0&#8243; ## carp 網卡
ifconfig_carp0=&#8221;vhid 1 advskew 10 pass testpass 192.168.1.50/24&#8243; ## vhid 在host/provider 都要一致 pass 的部份 兩台也要一樣
設定 provider
hostname=&#8221;provider.example.org&#8221;
ifconfig_fxp0=&#8221;inet 192.168.1.5 netmask 255.255.255.0&#8243;
cloned_interfaces=&#8221;carp0&#8243; ## provider 可以不只當做一台host 的 backup
ifconfig_carp0=&#8221;vhid 1 advskew 100 pass testpass 192.168.1.50/24&#8243;
## [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/07/29/518/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7/27 祝妳生日快樂</title>
		<link>http://blog.johnpupu.tw/2010/07/27/727-%e7%a5%9d%e5%a6%b3%e7%94%9f%e6%97%a5%e5%bf%ab%e6%a8%82/</link>
		<comments>http://blog.johnpupu.tw/2010/07/27/727-%e7%a5%9d%e5%a6%b3%e7%94%9f%e6%97%a5%e5%bf%ab%e6%a8%82/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:20:04 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[有感而發]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=514</guid>
		<description><![CDATA[謹以此文, 祝妳生日快樂
]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/07/27/727-%e7%a5%9d%e5%a6%b3%e7%94%9f%e6%97%a5%e5%bf%ab%e6%a8%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>samba 帳號匯入 及 symbolic link</title>
		<link>http://blog.johnpupu.tw/2010/06/28/samba-%e5%b8%b3%e8%99%9f%e5%8c%af%e5%85%a5-%e5%8f%8a-symbolic-link/</link>
		<comments>http://blog.johnpupu.tw/2010/06/28/samba-%e5%b8%b3%e8%99%9f%e5%8c%af%e5%85%a5-%e5%8f%8a-symbolic-link/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 21:56:19 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=509</guid>
		<description><![CDATA[今天在移機時遇到的問題
從 samba 3.0 移到 samba 3.4
帳號的部份
man pdbedit
       -i passdb-backend
           Use a different passdb backend to retrieve users than the one
           specified in smb.conf. Can be used to import data [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/06/28/samba-%e5%b8%b3%e8%99%9f%e5%8c%af%e5%85%a5-%e5%8f%8a-symbolic-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For what ??</title>
		<link>http://blog.johnpupu.tw/2010/05/30/for-what/</link>
		<comments>http://blog.johnpupu.tw/2010/05/30/for-what/#comments</comments>
		<pubDate>Sun, 30 May 2010 02:02:01 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[有感而發]]></category>
		<category><![CDATA[雜感]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=504</guid>
		<description><![CDATA[For what ??
到底是為了什麼??
]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/05/30/for-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework Widget</title>
		<link>http://blog.johnpupu.tw/2010/05/13/zend-framework-widget/</link>
		<comments>http://blog.johnpupu.tw/2010/05/13/zend-framework-widget/#comments</comments>
		<pubDate>Wed, 12 May 2010 18:02:35 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=499</guid>
		<description><![CDATA[主要是因為之前用Yii 的 Widget 用的挺開心的( 除了他會每次都進一次Cycle 外)
因為用ZF沒找到有這方面相關的資訊
所以自已動手刻&#8230;..
1. 在application 下建 Titan/Base 的資料夾 ( Titan 是我想把自已寫的東西盡可能的都收在這 )
2. vim Titan/Base/Widget.php

&#60; ?php
abstract class Titan_Base_Widget
{
    protected $_basePath;
    protected $_viewBasePath;
    protected $_viewScriptPath;
    public function __construct( $array = null )
    {
        [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/05/13/zend-framework-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FreeBSD branches 支援時限</title>
		<link>http://blog.johnpupu.tw/2010/04/02/freebsd-branches-%e6%94%af%e6%8f%b4%e6%99%82%e9%99%90/</link>
		<comments>http://blog.johnpupu.tw/2010/04/02/freebsd-branches-%e6%94%af%e6%8f%b4%e6%99%82%e9%99%90/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 10:00:09 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=497</guid>
		<description><![CDATA[The current supported branches and expected EoL dates are:
  +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+
  &#124;  Branch   &#124;  Release   &#124;  Type  &#124;   Release date  &#124;  Estimated EoL  &#124;
  &#124;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#124;
  &#124;RELENG_6   &#124;n/a         &#124;n/a  [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/04/02/freebsd-branches-%e6%94%af%e6%8f%b4%e6%99%82%e9%99%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yii 1.1 CActiveRecord 關連的部份修正</title>
		<link>http://blog.johnpupu.tw/2010/01/13/yii-1-1-cactiverecord-%e9%97%9c%e9%80%a3%e7%9a%84%e9%83%a8%e4%bb%bd%e4%bf%ae%e6%ad%a3/</link>
		<comments>http://blog.johnpupu.tw/2010/01/13/yii-1-1-cactiverecord-%e9%97%9c%e9%80%a3%e7%9a%84%e9%83%a8%e4%bb%bd%e4%bf%ae%e6%ad%a3/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 11:07:04 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[program]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=494</guid>
		<description><![CDATA[剛剛用Yii 的AR 寫的很開心,
下了這個

    $criteria=new CDbCriteria;
    $criteria-&#62;condition=&#039;products.id=:ID AND products_info.language_id=:languageID&#039;;
    $criteria-&#62;params=array(&#039;:ID&#039;=&#62;$_GET[&#039;id&#039;], &#039;:languageID&#039; =&#62; $this-&#62;_lang_id );
    $criteria-&#62;order = &#039;products_content.content_orders ASC&#039;;

    $model = Products::model()-&#62;with( &#039;products_info&#039;, &#039;products_content&#039; )-&#62;find( $criteria );

一直出現
CDbCommand 無法執行 SQL 陳述: SQLSTATE[42S22]: Column not found: 1054 Unknown column &#8216;products.id&#8217; in &#8216;where clause&#8217;
想說怪了&#8230;
再看了一下 sql [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2010/01/13/yii-1-1-cactiverecord-%e9%97%9c%e9%80%a3%e7%9a%84%e9%83%a8%e4%bb%bd%e4%bf%ae%e6%ad%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>快快樂樂打造你自已的port</title>
		<link>http://blog.johnpupu.tw/2009/12/17/%e5%bf%ab%e5%bf%ab%e6%a8%82%e6%a8%82%e6%89%93%e9%80%a0%e4%bd%a0%e8%87%aa%e5%b7%b2%e7%9a%84port/</link>
		<comments>http://blog.johnpupu.tw/2009/12/17/%e5%bf%ab%e5%bf%ab%e6%a8%82%e6%a8%82%e6%89%93%e9%80%a0%e4%bd%a0%e8%87%aa%e5%b7%b2%e7%9a%84port/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:12:33 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ports FreeBSD perl]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=486</guid>
		<description><![CDATA[以我自已弄的Net-POP3-SSLWrapper為例
# mkdir /root/Net-POP3-SSLWrapper
# vim Makefile

# New ports collection makefile for:  p5-Net-POP3-SSLWrapper
# Date created:       16 December 2009
# Whom:         johnpupu &#60;johnpupu @gmail.com&#62;
#
# $FreeBSD$
#

PORTNAME= Net-POP3-SSLWrapper
PORTVERSION=  0.02
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= johnpupu@gmail.com
COMMENT=  Perl extension for simple POP3S wrapper for Net::POP3

BUILD_DEPENDS=  [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2009/12/17/%e5%bf%ab%e5%bf%ab%e6%a8%82%e6%a8%82%e6%89%93%e9%80%a0%e4%bd%a0%e8%87%aa%e5%b7%b2%e7%9a%84port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>benchmarking with sysbench on X3650 M2</title>
		<link>http://blog.johnpupu.tw/2009/12/16/enchmarking-with-sysbench-on-x3650-m2/</link>
		<comments>http://blog.johnpupu.tw/2009/12/16/enchmarking-with-sysbench-on-x3650-m2/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 08:54:48 +0000</pubDate>
		<dc:creator>johnpupu</dc:creator>
				<category><![CDATA[有的沒的]]></category>

		<guid isPermaLink="false">http://blog.johnpupu.tw/?p=475</guid>
		<description><![CDATA[手邊剛好有x3650m2的機器
順手測了一下&#8230;FreeBSD 7.1 i386 &#038; FreeBSD 8.0 AMD64
學Jeff Roberson弄一下..XD
就沒圖先看數據吧&#8230;
CPU: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz (2266.76-MHz 686-class CPU)
real memory  = 2137583616 (2038 MB)==>其實這台機器有12G, 不過i386只抓得到2G
avail memory = 2081353728 (1984 MB)
RAID 5 / 四顆 IBM 43W7538 146.8GB 10Krpm SAS
RAID controller MR10i
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;7.1 i386 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
uname -a
FreeBSD ms1.xxx.xxx.xx 7.1-RELEASE-p9 [...]]]></description>
		<wfw:commentRss>http://blog.johnpupu.tw/2009/12/16/enchmarking-with-sysbench-on-x3650-m2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
