2010-07-20

在 Ubuntu 安裝 NVIDIA Display Card Driver

雖然在 Ubuntu 可以利用預設的驅動程式安裝
但有時 Ubuntu 對於太新的硬件未有預設的驅動程式
甚至在 GUI 畫面的 System > Administration > Hardware Driver 都找不到相關資料
便需要到 NVIDIA 的官方網站下載相應的驅動程式 http://www.nvidia.com/

2010-07-17

改變 BURG 主題的圖示

見下文
主題的圖示選單項目並不能表達所有作業系統
如延伸自 Ubuntu 的 KUbuntu 、 XUbuntu 及所以 Windows 等
一律都當為相同的作業系統,因此在 BURG 的選單中不能分別
除非加上文字描述
但透過以下方法便可以自訂一些圖示

2010-07-13

在 Ubuntu 中設定 GRUB2

見下文
使用 Ubuntu9.10 預設的 GRUB2 是一個很簡單的黑白界面
透過以下資料修改 GRUB2 讓 GRUB2 更加美觀
但注意,若有任何不正當改動最嚴重可導致 GRUB2 不能起動

2010-07-07

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 突破達成率 (End Of The Road Completion)

「決意」達成率的條件

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 死守達成率 (Desperate Time Completion)

「死守」達成率的條件

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 記憶達成率 (Flashback Completion)

「記憶」達成率的條件

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 異界達成率 (Underbelly Completion)

「異界」達成率的條件

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 咆哮達成率 (Wlid Things Completion)

「咆哮」達成率的條件

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 Extra

Collections - Extra 的獲得條件與支給分數

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 Music

Collections - Music 的獲得條件與支給分數

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 Movie

Collections - Movie 的獲得條件與支給分數

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 Costume

Collections - Costume 的獲得條件與支給分數

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 Gallery

Collections - Gallery 的獲得條件與支給分數

2010-07-02

Bio Hazard Outbreak / Resident Evil Outbreak 決意達成率 (Decision, Decision Completion)

「決意」達成率的條件

Bio Hazard Outbreak / Resident Evil Outbreak 獄炎達成率 (Hellfire Completion)

「獄炎」達成率的條件

Bio Hazard Outbreak / Resident Evil Outbreak 巢窟達成率 (The Hive Completion)

「巢窟」達成率的條件

Bio Hazard Outbreak / Resident Evil Outbreak 零下達成率 (Below Freezing Point Completion)

「零下」達成率的條件

Bio Hazard Outbreak / Resident Evil Outbreak 發生達成率 (Outbreak Completion)

「發生」達成率的條件

Bio Hazard Outbreak / Resident Evil Outbreak Extra

Collections - Extra 的獲得條件與支給分數

Bio Hazard Outbreak / Resident Evil Outbreak Music

Collections - Music 的獲得條件與支給分數

2010-06-03

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 咆哮 (Wild Things) SP Items

「咆哮」SP Item 的獲得條件及地方

利用 Java 將 Zip 格式解壓縮 (Use Java to decompress a ZIP file)

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;

public static void decompress(File source, File destination) throws IOException{
    if (!destination.exists() || destination.isDirectory()){
        destination.mkdirs();
        ZipInputStream zis = new ZipInputStream(new FileInputStream(source));
        byte[] buffer = new byte[1024];
        for (ZipEntry zip; (zip = zis.getNextEntry()) != null;){
            File file = new File(destination, zip.getName());
            if (zip.isDirectory()){
                file.mkdirs();
            } else {
                FileOutputStream fos = new FileOutputStream(file);
                for (int length; (length = zis.read(buffer)) > 0;){
                    fos.write(buffer, 0, length);
                }
                fos.close();
            }
            zis.closeEntry();
        }
        zis.close();
    }
}

利用 Java 將檔案與資料夾壓縮成 Zip 格式 (Use Java to compress file(s) or directory(ies) as ZIP format)

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.Deflater;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

public static void compress(File source, File destination) throws IOException{
    compress(source, destination, null, Deflater.DEFAULT_COMPRESSION);
}

public static void compress(File source, File destination, String comment, int level) throws IOException{
    ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(destination));
    zos.setComment(comment);
    zos.setLevel(level);
    compress(zos, source.getParent(), source);
    zos.flush();
    zos.close();
}

private static void compress(ZipOutputStream zos, String rootpath, File source) throws IOException{
    String filename = source.toString().substring(rootpath.length() + 1);
    if (source.isFile()){
        zos.putNextEntry(new ZipEntry(filename));
        FileInputStream fis = new FileInputStream(source);
        byte[] buffer = new byte[1024];
        for (int length; (length = fis.read(buffer)) > 0;){
            zos.write(buffer, 0, length);
        }
        fis.close();
        zos.closeEntry();
    } else if (source.isDirectory()){
        zos.putNextEntry(new ZipEntry(filename + "/"));
        zos.closeEntry();
        File[] files = source.listFiles();
        for (File file : files){
            compress(zos, rootpath, file);
        }
    }
}

2010-05-27

Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 SP Items List

所有 SP Item 的獲得條件

Bio Hazard Outbreak / Resident Evil Outbreak 決意 (Decision, Decision) SP Items

「決意」SP Item 的獲得條件及地方

Bio Hazard Outbreak / Resident Evil Outbreak 獄炎 (Hellfire) SP Items

「獄炎」SP Item 的獲得條件及地方

Bio Hazard Outbreak / Resident Evil Outbreak 巢窟 (The Hive) SP Items

「巢窟」SP Item 的獲得條件及地方

Bio Hazard Outbreak / Resident Evil Outbreak 零下 (Below Freezing Point) SP Items

「零下」SP Item 的獲得條件及地方