噗浪備份工具



■ 程式版本:v1.1 (3/16/2010 更新)

■ 檔案下載:PlurkBackup11.zip (4 MB)


噗浪 (http://www.plurk.com/) 在台灣算是使用人口最多的微型網誌。它有別於堆特之時間軸設計、以及回覆功能非常受到歡迎。

噗浪客若要查詢稍久以前的噗文,用滑鼠滾時間軸不知要滾到民國幾年。此程式可以將指定期間內自己的噗文全部抓下來。

從 1.0 版閞始,已經可以連同回覆的噗文一起抓下來了。
1.1版增加「分離私噗」功能。
希望您會喜歡,也請您不吝給小弟指教。

這個程式由 Perl 撰寫而成。使用到 CPAN 上的 WWW-Plurk 模組,由於它太久沒維護了已經不太能使用,我有修改到一些。需要我的原始碼可以在這裡下載。


PicasaWeb Perl Module


■ Download/下載 : picasaweb_perl.zip


你在找 Perl 管理 PicasaWeb 的模組嗎? 如果你在 CPAN 上找到 Net::Google::PicasaWeb 覺得很難用,還有功能不全。可以來試試小弟改寫的 Perl 模組。

CPAN 上的 Net::Google::PicasaWeb 並沒有建立相簿、上傳照片等功能。我改寫對岸 董强 的 Google::Picasa。歡迎大家使用。

裡面有幾個簡單的範例,沒什麼教學文件。有心使用的人只好用肉眼看看 Picasa.pm 這個檔案吧!

在 .Net 使用 GDI+ 調整圖片亮度


也就是 RGB 一起調啦!

原始出處


Bitmap origanalImage;
Bitmap adjustedImage;
double brightness = 1.0f; // no change in brightness
double constrast = 2.0f; // twice the contrast
double gamma = 1.0f; // no change in gamma

float adjustedBrightness = brightness - 1.0f;
// create matrix that will brighten and contrast the image
float[][] ptsArray ={
new float[] {contrast, 0, 0, 0, 0}, // scale red
new float[] {0, contrast, 0, 0, 0}, // scale green
new float[] {0, 0, contrast, 0, 0}, // scale blue
new float[] {0, 0, 0, 1.0f, 0}, // don't scale alpha
new float[] {adjustedBrightness, adjustedBrightness, adjustedBrightness, 0, 1}};

imageAttributes = new ImageAttributes();
imageAttributes.ClearColorMatrix();
imageAttributes.SetColorMatrix(new ColorMatrix(ptsArray), ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
imageAttributes.SetGamma(gamma, ColorAdjustType.Bitmap);
Graphics g = Graphics.FromImage(adjustedImage);
g.DrawImage(originalImage, new Rectangle(0,0,adjustedImage.Width,adjustedImage.Height)
,0,0,bitImage.Width,bitImage.Height,
GraphicsUnit.Pixel, imageAttributes);