<?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>Kuso http UN FOR TAIWAN &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/kuso-http-un-for-taiwan/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sat, 29 Dec 2018 16:14:42 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>上網加上入聯戳記(修正版) UN For Taiwan</title>
		<link>https://richliu.com/2007/10/18/523/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98%e4%bf%ae%e6%ad%a3%e7%89%88-un-for-taiwan/</link>
					<comments>https://richliu.com/2007/10/18/523/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98%e4%bf%ae%e6%ad%a3%e7%89%88-un-for-taiwan/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 17 Oct 2007 16:43:23 +0000</pubDate>
				<category><![CDATA[KUSO]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Kuso http UN FOR TAIWAN]]></category>
		<guid isPermaLink="false">https://richliu.com/2007/10/18/523/</guid>

					<description><![CDATA[<p>第一篇上網加上入聯戳記 UN For Taiwan 實在是非常難看. 看到水費單, 電費單, 連發票也要拼入聯 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2007/10/18/523/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98%e4%bf%ae%e6%ad%a3%e7%89%88-un-for-taiwan/">上網加上入聯戳記(修正版) UN For Taiwan</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>第一篇<a href="https://richliu.com/2007/10/17/522/">上網加上入聯戳記 UN For Taiwan</a><br />
實在是非常難看.</p>
<p>看到水費單, 電費單, 連發票也要拼入聯, 所以我認為, 入聯還是要拼下去的<br />
這一條路不能回頭的.</p>
<p><span id="more-523"></span><br />
有鑑於上一版入聯戳記什麼鬼圖都看不到了, 這一版入聯戳記一定要修正這個問題的呀<br />
依照上一版慣例, 還是先看圖好了</p>
<p><a href="http://udn.com" target="_blank" rel="noopener">聯合報</a>拼入聯<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o.jpg"><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-3176" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o-1024x637.jpg" alt="" width="620" height="386" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o-1024x637.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o-300x187.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o-768x478.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan_1601854452_o.jpg 1099w" sizes="(max-width: 620px) 100vw, 620px" /></a></p>
<p><a href="http://news.chinatimes.com" target="_blank" rel="noopener">中國時報</a><br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1.jpg"><img decoding="async" class="aligncenter size-large wp-image-3178" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1-1024x637.jpg" alt="" width="620" height="386" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1-1024x637.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1-300x187.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1-768x478.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1.jpg 1099w" sizes="(max-width: 620px) 100vw, 620px" /></a></p>
<p><a href="http://www.whitehouse.gov" target="_blank" rel="noopener">布希</a>看了深受感動, 也要拼入聯<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1.jpg"><img decoding="async" class="aligncenter size-large wp-image-3179" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1-1024x637.jpg" alt="" width="620" height="386" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1-1024x637.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1-300x187.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1-768x478.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1.jpg 1099w" sizes="(max-width: 620px) 100vw, 620px" /></a></p>
<p><a href="http://www.kmt.org.tw" target="_blank" rel="noopener">國民黨</a>決定跟在民進黨屁屁後面拼入聯<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-3180" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o-1024x728.jpg" alt="" width="620" height="441" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o-1024x728.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o-300x213.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o-768x546.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan4_1600971507_o.jpg 1117w" sizes="auto, (max-width: 620px) 100vw, 620px" /></a></p>
<p>看到世界都為了台灣入聯而努力, 我們怎麼能不感動呢?</p>
<p>入聯在月球<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-3181" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o-1024x739.jpg" alt="" width="620" height="447" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o-1024x739.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o-300x217.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o-768x554.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan6_1601186241_o.jpg 1133w" sizes="auto, (max-width: 620px) 100vw, 620px" /></a></p>
<p>我們的終極目標是讓入聯進入宇宙呀~</p>
<p>做法如下<br />
我們上一篇的 rewrite.php 要小小修正一下, 請他到我們預設的網站去抓圖</p>
<blockquote><p>#!/usr/bin/php<br />
$stdin = fopen(&#8216;php://stdin&#8217;,&#8217;r&#8217;);<br />
while(1){<br />
$inputstr= fgets($stdin);</p>
<p>$inputstr = preg_replace(&#8220;/(http:.*\.jpg)/&#8221;,&#8217;http://richliu.com/replace.php?img=${1}&#8217;, $inputstr);</p>
<p>echo $inputstr ;<br />
}<br />
?&gt;</p></blockquote>
<p>replace.php 的的內容如下</p>
<blockquote><p>header(&#8220;Content-Type: image/jpeg&#8221;);<br />
$image=$_GET[&#8220;img&#8221;];<br />
$pic = @imagecreatefromjpeg($image);<br />
$un4tw = @imagecreatefromjpeg(&#8220;un4taiwan.jpg&#8221;);<br />
$pic = image_overlap($pic,$un4tw);</p>
<p>imageJpeg($pic);<br />
imagedestroy($pic);<br />
imagedestroy($un4tw);</p>
<p>function image_overlap($background, $foreground){<br />
$insertWidth = imagesx($foreground);<br />
$insertHeight = imagesy($foreground);</p>
<p>$imageWidth = imagesx($background);<br />
$imageHeight = imagesy($background);</p>
<p>if( (($imageWidth/2) &lt; $insertWidth ) &amp;&amp;<br />
(($imageHeight/2) &lt; $insertHeight )){<br />
return $background;<br />
}<br />
$overlapX = $imageWidth-$insertWidth-5;<br />
$overlapY = $imageHeight-$insertHeight-5;<br />
imagecolortransparent($foreground, imagecolorat($foreground,0,0));<br />
imagecopymerge($background,$foreground, $overlapX,$overlapY,<br />
0,0,$insertWidth,$insertHeight,100);<br />
return $background;<br />
}<br />
?&gt;</p></blockquote>
<p>看到沒有, 就是這麼簡單, 就是這麼容易,<br />
比加入直銷月入百萬還容易.<br />
為什麼政府還不做呢? 三二下就搞定了, 連我這個 Embedded Linux 的宅 RD<br />
都會寫, 而且根本不用花錢, 統統都是用開放源始碼!</p>
<p>台灣政府加油呀, 快做到網上宣傳入聯!!!!</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2007/10/18/523/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98%e4%bf%ae%e6%ad%a3%e7%89%88-un-for-taiwan/">上網加上入聯戳記(修正版) UN For Taiwan</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2007/10/18/523/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98%e4%bf%ae%e6%ad%a3%e7%89%88-un-for-taiwan/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>上網加上入聯戳記 UN For Taiwan</title>
		<link>https://richliu.com/2007/10/17/522/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98-un-for-taiwan/</link>
					<comments>https://richliu.com/2007/10/17/522/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98-un-for-taiwan/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 17 Oct 2007 12:31:39 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[亂扯淡]]></category>
		<category><![CDATA[Kuso http UN FOR TAIWAN]]></category>
		<guid isPermaLink="false">https://richliu.com/2007/10/17/522/</guid>

					<description><![CDATA[<p>最近新聞吵得火熱的郵局在信件加上入聯戳記, 看得我是熱血沸騰, 我相信只要是任何一個腦袋不正常的台灣人 一定都 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2007/10/17/522/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98-un-for-taiwan/">上網加上入聯戳記 UN For Taiwan</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>最近新聞吵得火熱的郵局在信件加上入聯戳記,<br />
看得我是熱血沸騰, 我相信只要是任何一個腦袋<span style="text-decoration: line-through;">不</span>正常的台灣人<br />
一定都會想要加上這個戳記呀.</p>
<p><span id="more-522"></span><br />
先來看看成果</p>
<p><a href="http://www.gov.tw" target="_blank" rel="noopener">http://www.gov.tw</a> (我的 E 政府)<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1598485949_o.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3170" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1598485949_o.png" alt="" width="1014" height="709" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1598485949_o.png 1014w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1598485949_o-300x210.png 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1598485949_o-768x537.png 768w" sizes="auto, (max-width: 1014px) 100vw, 1014px" /></a></p>
<p><a href="http://www.whitehouse.gov" target="_blank" rel="noopener">http://www.whitehouse.gov</a> (白宮)<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-3171" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1024x637.jpg" alt="" width="620" height="386" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-1024x637.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-300x187.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o-768x478.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan3_1601857398_o.jpg 1099w" sizes="auto, (max-width: 620px) 100vw, 620px" /></a><br />
真贊呀, 連白宮都支持入聯!!!</p>
<p><a href="http://udn.com" target="_blank" rel="noopener">http://udn.com </a>(聯合新聞網)<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan1_1599369552_o.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3173" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan1_1599369552_o.png" alt="" width="1014" height="709" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan1_1599369552_o.png 1014w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan1_1599369552_o-300x210.png 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan1_1599369552_o-768x537.png 768w" sizes="auto, (max-width: 1014px) 100vw, 1014px" /></a><br />
連質報都支持入聯呀</p>
<p><a href="http://news.chinatimes.com%20">http://news.chinatimes.com </a>(中國時報)<br />
<a href="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o.jpg"><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-3174" src="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1024x637.jpg" alt="" width="620" height="386" srcset="https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-1024x637.jpg 1024w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-300x187.jpg 300w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o-768x478.jpg 768w, https://richliu.com/wp-content/uploads/2007/10/unfortaiwan2_1601856360_o.jpg 1099w" sizes="auto, (max-width: 620px) 100vw, 620px" /></a><br />
連統媒也支持入聯</p>
<p>這樣我們入聯大業無所不在, 無處不在.</p>
<p>首先先準備 Squid , 架好 Proxy, 可以採用一般模式或是 Transparent mode,<br />
政府應該在中華電信的骨幹網路上建立 Great UN Proxy , 這樣大家才能感受到<br />
台灣人民需要入聯的心聲&#8230;</p>
<p>接下來, 編輯 /etc/squid/squid.conf<br />
加上一行</p>
<blockquote><p>url_rewrite_program /usr/local/bin/rewrite.php</p></blockquote>
<p>最後就是產生 rewrite.php 這個檔案啦</p>
<blockquote><p>#!/usr/bin/php</p>
<p>$stdin = fopen(&#8216;php://stdin&#8217;,&#8217;r&#8217;);<br />
while(1){<br />
$inputstr= fgets($stdin);</p>
<p>$inputstr = preg_replace(&#8220;/http:.*\.jpg/&#8221;,&#8221;http://edit.gio.gov.tw/site/UNM/public/Data/79171233571.jpg&#8221;, $inputstr);</p>
<p>echo $inputstr ;<br />
}<br />
?&gt;</p></blockquote>
<p>我希望籍由我這個小小的功能, 可以協助政府在人民上網時, 可以表達入聯心聲<br />
這樣不僅僅是國內人民支持, 連國外友人連到台灣的網站也可以了瞭入聯<br />
如果家家戶戶都架設這樣的系統, 不僅僅可以宣導入聯, 還可以防止小朋友看色情圖片<br />
摸蛤兼洗褲, 一舉兩得!!!<br />
大家快上吧 XD</p>
<p>[Tags] squid , url_rewrite_program [/Tags]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2007/10/17/522/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98-un-for-taiwan/">上網加上入聯戳記 UN For Taiwan</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2007/10/17/522/%e4%b8%8a%e7%b6%b2%e5%8a%a0%e4%b8%8a%e5%85%a5%e8%81%af%e6%88%b3%e8%a8%98-un-for-taiwan/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
