<?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>壞蛋的部落格</title>
	<atom:link href="http://www.pigo.idv.tw/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pigo.idv.tw</link>
	<description>嘿嘿嘿嘿 .....</description>
	<lastBuildDate>Sat, 04 Sep 2010 16:01:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>proxmox ve 1.6 正式版釋出</title>
		<link>http://www.pigo.idv.tw/archives/889</link>
		<comments>http://www.pigo.idv.tw/archives/889#comments</comments>
		<pubDate>Sat, 04 Sep 2010 16:00:01 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[虛擬化]]></category>
		<category><![CDATA[proxmox ve]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=889</guid>
		<description><![CDATA[
	看一下更新的東西

	http://pve.proxmox.com/wiki/Roadmap#Proxmox_VE_1.6_-_ISO_Installer_with_2.6.32_Kernel_with_OpenVZ_including_KVM_0.12.5
	

	這一版比較重大的更新是 , kernerl 2.6.32 也加入了 openvz 了 , 而也因為 openvz 的關係 , 關閉了 KSM 的功能

	這樣 2.6.32 kernel 的功能性可以完整支援 KVM 及 OpenVZ ,&#160; 目前我是直接線上升級是沒問題 , 下一步我可能會試試如何用 openvz 弄個雙網卡來玩 haproxy with TPROXY 了 , 哈
]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/889/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>筆記 : OpenVPN Bridge 模式下防止 Netbios 廣播</title>
		<link>http://www.pigo.idv.tw/archives/869</link>
		<comments>http://www.pigo.idv.tw/archives/869#comments</comments>
		<pubDate>Fri, 30 Jul 2010 18:03:10 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[虛擬化]]></category>
		<category><![CDATA[bridge-utils]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=869</guid>
		<description><![CDATA[
	OpenVPN Bridge 橋接模式下最大的優點也是最大的缺點就是 VPN 用戶的電腦可以看到遠端 VPN Server 同一網段的網芳 ~

	這為何說是缺點呢 ??? 因為在 Bridge 模式中 , Client 與 Server 等於是同一網段 , 不管甚麼封包都會互通有無 , 尤其是 NetBios 封包 , 試想 ~ 若遠端的辦公室有 20 台電腦 &#8230; 大家都在搶網芳的 Master Browser 主控權 , 這樣封包一直廣播 , 自然對 VPN 頻寬消耗更多 , 因此最好還是阻擋 NetBios 廣播的封包

	
	在這裡先提一下 Linux Bridge 的概念 , Linux 是使用 bridge-utils 這套件去做橋街裝置的 , 我們用下面的指令來看看橋接裝置是甚麼
proxmox:/# [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/869/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn 使用和 redmine 相同帳號進行認證</title>
		<link>http://www.pigo.idv.tw/archives/851</link>
		<comments>http://www.pigo.idv.tw/archives/851#comments</comments>
		<pubDate>Fri, 30 Jul 2010 14:40:12 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mod_auth_mysql]]></category>
		<category><![CDATA[mod_dav_svn]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=851</guid>
		<description><![CDATA[
	前言

	話說專案控管軟體在軟體開發上常常配合著版本控管一起使用 , 如 Python 寫 Trac ,Ruby 寫的 Redmine 等都有 SVN 檔案庫瀏覽的功能 , 有玩過 SVN 的人應該會知道 SVN 可以搭配 Apache 一起使用 , 其實就我感覺最惱人的便是 SVN 上的使用者管理 , 之前我都是呆呆的用 htpasswd 建立密碼檔 , 但這有個問題 , 就是 SVN 的使用者要改密碼就必須透過我來改 , 當然了 , 也有現成的 Web Interface 軟體可以裝來針對 htpasswd 修改密碼 , 不過這對系統的複雜度就增加了

	今天偶然想起 Apache 有 mod_auth_mysql 可以用 , 既然 Apache 可以使用 mysql 來做身分確認 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/851/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Apache + mod_fastcgi + php-fpm 設定</title>
		<link>http://www.pigo.idv.tw/archives/832</link>
		<comments>http://www.pigo.idv.tw/archives/832#comments</comments>
		<pubDate>Tue, 27 Jul 2010 16:48:03 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php-fpm]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=832</guid>
		<description><![CDATA[
	前言

	這篇是有人叫我分享的 , 順便測一下 php-fpm 和 Apache 搭配起來的效能及穩定度 , 由於 php-fpm 是自帶的 FastCGI Process Manager , 所以和原本的 php fastcgi 有所不同 , php-fpm 若要搭配 Apache 只能以 mod_fastcgi 來運作 , 原本 Apache 有開發 mod_fcgid , 但 mod_fcgid 本身算是個 FastCGI Process Manager , 只能執行本地端 FastCGI , 而 php-fpm 可以用 Unix Socket 或 TCP 模式讓任何具備執行外部 FastCGI 程序的 WebServer 連接 , [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/832/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP FPM ?</title>
		<link>http://www.pigo.idv.tw/archives/827</link>
		<comments>http://www.pigo.idv.tw/archives/827#comments</comments>
		<pubDate>Thu, 22 Jul 2010 15:34:03 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[FPM]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/archives/827</guid>
		<description><![CDATA[
	很久沒有上官方網站看文件 , 今天晚上莫名其妙從官方網站看到一個叫 FPM 的東西

	http://www.php.net/manual/en/install.fpm.php

	按照上面的說法 , 不就是 FastCGI Process Manager 嗎 ?

	怪了 , 原本 PHP 不就已經有支援 FastCGI 了 ?

	仔細給他看一看 , 從 Google 上找一下 FPM 關鍵字後 &#8230;. 媽的 &#8230; 我的天 , 原來 FPM 這東西不得鳥 , 下面才是真正的 FPM 官方網站

	http://php-fpm.org

	原來 FPM 這東西可以解決 PHP FastCGI 甚至 mod_php 權限控管的不足

	例如 , 可以 setuid , chroot , 這對於在一台主機中有多個 VirtualHost 中的權限控管非常有幫助

	而且 FastCGI 跑的效能及記憶體用量都比 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/827/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>我很納悶&#8230;怎麼一堆 PHP 程式設計師不知道要怎麼防 SQL Injection</title>
		<link>http://www.pigo.idv.tw/archives/820</link>
		<comments>http://www.pigo.idv.tw/archives/820#comments</comments>
		<pubDate>Tue, 22 Jun 2010 11:34:09 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=820</guid>
		<description><![CDATA[
	從 5 月份到 6 月份這段期間面試了好多個 PHP 程式設計師 , 包括也曾開職缺面試資訊主管

	我都會問一個問題 , SQL Injection 怎麼防 ?

	我說真的 , 大概面試了 10 來位 , 沒有一個人能夠脫口而出 , 不知道 SQL Injection 的程式設計師不會就算了 , 知道的人居然沒有一個人知道 PHP 原本就有功能可以過濾掉特殊字元 , 甚至還會回答用 str_replace 方法來過濾 , 所以我很想給看到這篇的人知道

	如果你是用 mysql function , 那就是用 mysql_real_escape_string 去過濾

	如果你是用 PDO , 就是用 bind value 作法

	例如

?View Code PHP1
2
3
4
5
$sql = &#34;SELECT * FROM users WHERE [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/820/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>HTML5 + JavaScript 做的 VNC Viewer == Guacamole</title>
		<link>http://www.pigo.idv.tw/archives/817</link>
		<comments>http://www.pigo.idv.tw/archives/817#comments</comments>
		<pubDate>Sun, 30 May 2010 04:00:45 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[網頁設計]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=817</guid>
		<description><![CDATA[
	http://guacamole.sourceforge.net/

	我的媽啊

	HTML5 已經可以做到這樣了

	用的技術就是 html5 + javascipt 而已 , 就可以做到 VNC 遠端桌面控制了

	想必是有用到 WebSocket 的功能

	
]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/817/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>smbftpd 安裝在 CentOS 64bit</title>
		<link>http://www.pigo.idv.tw/archives/802</link>
		<comments>http://www.pigo.idv.tw/archives/802#comments</comments>
		<pubDate>Mon, 17 May 2010 14:41:19 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[smbftpd]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=802</guid>
		<description><![CDATA[
	最近為了想讓同事們可以用 ftp 上傳網站的某些檔案到特定目錄 , 但又不想讓它們碰到敏感的目錄 , 本打算用 vsftp 開啟 chroot 就好 , 但卻發現用了 chroot 之後 , 沒辦法用 ln -s 方式將家目錄以外的目錄讓他們使用

	當然這有解法 , 可以用 mount &#8211;bind 的方式讓 chroot 下的 root 目錄可以看見家目錄以外的目錄 , 不過這樣做比較累人 , 每多一個使用者我可能要多設定一次

	於是我想到了有 smbftpd 這套 ,&#160; 這套 ftp server 可以用類似 Samba 方式來設定共享目錄 , 但以前安裝過 , 竟然現在不能安裝了

	後來查了一下一下原因&#160; , 原來自行編譯時不會去找相關 64bit 目錄 ,&#160; 因為我的 OS 是 CentOS [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/802/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(轉貼)Red Hat Enterprise Linux 6 測試版開放下載</title>
		<link>http://www.pigo.idv.tw/archives/791</link>
		<comments>http://www.pigo.idv.tw/archives/791#comments</comments>
		<pubDate>Sun, 25 Apr 2010 09:11:22 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[技術新聞區]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=791</guid>
		<description><![CDATA[
	從 ITMHOME 看的介紹

	http://www.ithome.com.tw/itadm/article.php?c=60827
	

	
	目前的 RHEL 5 真的套件都舊的很 , 有很多限制

	例如 Kernal 版本太舊 , 很想用 TProxy 來做 haproxy&#160; http transprant 就要自己重編 kernal

	php 5.1 , mysql 5.0 等都太舊了

	安裝時硬碟分割只能選 ext3 也是 , 現在硬碟大的很 , RHEL6 支援 ext4 後就可以分割單一 partion 超過 2T 硬碟了
]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/791/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>實作多日 , 一個簡單的 Comet Chat Demo</title>
		<link>http://www.pigo.idv.tw/archives/781</link>
		<comments>http://www.pigo.idv.tw/archives/781#comments</comments>
		<pubDate>Sun, 04 Apr 2010 19:34:32 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Mono C# VB]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=781</guid>
		<description><![CDATA[
	網址 : http://testcode.pigo.idv.tw/NetServ/CxClient/demo/simplechat/

	非常簡單的 chat , 沒有用到任何資料庫及檔案讀寫 , 完全透過 Comet Exchange Server 作資料交換 , 完全即時聊天

	Script Language 採用 PHP , Comet Exchange Server 採用 C# 開發

	改天我弄好一點會放出完整的 Source Code

	原先我是要先做 Comet Http Server 的 , 但我現在先做了 Comet Exchange Server (簡稱 CxServer)

	CxServer 主要構想是可以讓 HTTP Server CGI 之間可以做資料交換 , CGI 部分任何語言都可以開發 , 如 php , asp.net 等 , 然後 CGI 和 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/781/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
