第一篇上網加上入聯戳記 UN For Taiwan
實在是非常難看.
看到水費單, 電費單, 連發票也要拼入聯, 所以我認為, 入聯還是要拼下去的
這一條路不能回頭的.
有鑑於上一版入聯戳記什麼鬼圖都看不到了, 這一版入聯戳記一定要修正這個問題的呀
依照上一版慣例, 還是先看圖好了
聯合報拼入聯

布希看了深受感動, 也要拼入聯

國民黨決定跟在民進黨屁屁後面拼入聯

而中國看到台灣這麼努力拼入聯, 他們深受感動

看到世界都為了台灣入聯而努力, 我們怎麼能不感動呢?
我們的終極目標是讓入聯進入宇宙呀~
做法如下
我們上一篇的 rewrite.php 要小小修正一下, 請他到我們預設的網站去抓圖
#!/usr/bin/php
$stdin = fopen('php://stdin','r');
while(1){
$inputstr= fgets($stdin);$inputstr = preg_replace("/(http:.*\.jpg)/",'http://richliu.com/replace.php?img=${1}', $inputstr);
echo $inputstr ;
}
?>
replace.php 的的內容如下
header("Content-Type: image/jpeg");
$image=$_GET["img"];
$pic = @imagecreatefromjpeg($image);
$un4tw = @imagecreatefromjpeg("un4taiwan.jpg");
$pic = image_overlap($pic,$un4tw);imageJpeg($pic);
imagedestroy($pic);
imagedestroy($un4tw);function image_overlap($background, $foreground){
$insertWidth = imagesx($foreground);
$insertHeight = imagesy($foreground);$imageWidth = imagesx($background);
$imageHeight = imagesy($background);if( (($imageWidth/2) < $insertWidth ) &&
(($imageHeight/2) < $insertHeight )){
return $background;
}
$overlapX = $imageWidth-$insertWidth-5;
$overlapY = $imageHeight-$insertHeight-5;
imagecolortransparent($foreground, imagecolorat($foreground,0,0));
imagecopymerge($background,$foreground, $overlapX,$overlapY,
0,0,$insertWidth,$insertHeight,100);
return $background;
}
?>
看到沒有, 就是這麼簡單, 就是這麼容易,
比加入直銷月入百萬還容易.
為什麼政府還不做呢? 三二下就搞定了, 連我這個 Embedded Linux 的宅 RD
都會寫, 而且根本不用花錢, 統統都是用開放源始碼!
台灣政府加油呀, 快做到網上宣傳入聯!!!!
Tags: Kuso http UN FOR TAIWAN






6 responses so far ↓
海牛 // Oct 18, 2007 at 12:57 am
Internet Explorer 6.0 on
Windows XP
Using
今天沒颱風吧 也沒放颱風假阿 阿怎麼有人這麼閒 XD
話說前幾天國慶晚會 大學路上多了一個門 還有一個門聯
你知道的 就是那幾句
[reply this comment]
Derek Hsu // Oct 19, 2007 at 12:40 am
Internet Explorer 7.0 on
Windows XP
Using
我也要拼入聯!
我也要在我的臉上蓋入聯戳章!
[reply this comment]
San-Yuan Chen // Oct 19, 2007 at 12:55 am
Mozilla Firefox 2.0.0.7 on
Windows XP
Using
順便在陳啟禮的棺木上面蓋上入聯的旗幟好了............
[reply this comment]
richliu // Oct 19, 2007 at 3:19 am
Mozilla Firefox 2.0.0.7 on
Linux
Using
海牛: 拼入聯是意志力的表現呀
其他的,
你們這些人, 想要我變消波塊嗎?
[reply this comment]
slzzp // Oct 22, 2007 at 5:00 pm
Mozilla Firefox 2.0.0.7 on
Windows 2000
Using
居家放個內建長輩劉的消波塊, 可以保佑財源滾滾來嗎? XD
[reply this comment]
richliu // Oct 22, 2007 at 5:27 pm
Mozilla Firefox 2.0.0.8 on
Linux
Using
.....................
[reply this comment]
Leave a Comment