2011-06-29

利用 Java 發送 HTTP POST 請求 (Using Java to send HTTP Request with POST method)

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;

2011-06-06

讓 Spreadsheet Excel Writer 的字串斷行 (Line Break in Spreadsheet Excel Writer)

先編寫一個使用 Spreadsheet Excel Writer 輸出 Excel 檔案的 php 文件
並在儲存格中加入 \n 來將字串
Write a simple PHP file using Spreadsheet Excel Writer to export Excel file
見下文

2011-03-23

在 OpenOffice.org Calc 重覆列印列或欄 (Repeat printing row(s) or column(s) in OpenOffice.org Calc)

見下文
格式 -> 列印範圍 -> 編輯
選取合適的範圍、重覆的列或欄,然後按確定
但有時會出現錯誤
Format -> Print Ranges -> Edit
Select the suitable range, repeat row(s) or column(s), then press OK
However, sometimes an error will occur

2011-03-09

恢復 Ubuntu 的音量控制台 (Restore Ubuntu Volume Control Panel)

當升級 Ubuntu 系統後,有機會遺失音量控制台的快速啟動
雖然可以從 系統 > 偏好設定 > 聲音 來設定音量
這方法雖然可行,但只調整音量的情況下,顯得比較繁複
Sometimes after Upgrade your Ubuntu System, Volume Control Panel will be lost.
Although you can configure your System Volume in System > Preferences > Sound Preferences,
It is a tedious method that only increase, decrease or mute the volume.
見下文

2011-02-24

使用 Java 上載檔案至 FTP 伺服器 (Use Java to upload file to FTP Server)

import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import sun.net.TelnetOutputStream;
import sun.net.ftp.FtpClient;

2011-01-11

為 Ubuntu 增加字型 (Add font types in Ubuntu)

將字型檔案放置在 /usr/share/fonts/truetype
不過為了容易整理文件,建議先在 /usr/share/fonts/truetype 中建立一個資料夾

2011-01-01

讓 Windows Bootloader 載入 GRUB

為避免格式化 Ubuntu 後導致不能起動 Windows ,所以不讓 GRUB 成為 MBR
但使用 Windows 預設的 Bootloader 又不能列出非 Windows 的作業系統,所以需要改寫 C:\boot.ini
注意:胡亂改寫 C:\boot.ini 的會導致所有作業系統不能起動
If you use GRUB as MBR, after format Ubuntu partition GRUB will erase also
However, after re-build Windows Bootloader as MBR, GRUB2 will be replaced, and Ubuntu cannot be started for booting
So, how could let Windows Bootloader as MBR and boot up Ubuntu after GRUB2 is replaces