December 31, 2004

Hitachi 160G 硬碟似乎有壞軌了

最近將影片備份出來,發現讀取某些檔案會有一堆 error,例如 uncorrectable error, error 00x40 等...買不到一年,趕快去送修好了...><

IDE 硬碟果真不耐用...可惜還沒有錢買硬碟作 raid...之前 notebook硬碟又掛了,回老家寫稿又沒電腦,所以一定要買...天阿...失血...><

Posted by asho at 04:01 PM | Comments (172)

December 28, 2004

買到 KVM 摟

昨天 post 的 Aten PC12I 入手,能抓到 我的羅技 USB 光學滑鼠(by usb2ps2 adapter),後端接出來的線有點長,但清晰度還能接受,比類比好太多了...^^

快樂使用中...:-D

Posted by asho at 03:12 PM | Comments (156)

December 27, 2004

想買 KVM

最近因為想用 KVM 接 Server和我的 Workstation。如果 workstation 不開機的話,我就可以在 Server 上用 chroot 環境上網,這樣就可以省電了。

目前挑到的是Aten PC12I 是我目前挑到的 KVM,沒有變壓器,小小一台,不知道畫面會不會變糊?

下個月有錢再來買吧...:-)

Posted by asho at 04:46 PM | Comments (234)

Kernel-2.6.10-ac

支援了 ITE8212F 的晶片,由 Alan Cox 撰寫,還沒測試過

原本的 ITE 公司釋出的 driver 在我這邊會有 XFS internal error 的問題,磁碟效率會變差

Posted by asho at 04:43 PM | Comments (294)

找出目錄和檔案總何 > 4G 的 script Version 0.6.3

v0.6.3
change output method
v0.6.2
rewrite GetSize method instead of 'du' in order to the portability

這下子 windows 平台也可以用了^^,請在這邊

Posted by asho at 04:40 PM | Comments (152)

December 21, 2004

New Matrox Parhelia Linux driver relase

http://www.goth.net/~prez/mtx/

經過一年的等待,Matrox 終於釋出最新版的 Parhelia Driver for linux 了,該版已經支援 XV 和 OpenGL。修正 SMP unstable 的問題,增加 Xorg 6.7.0, 6.8.0, 6.8.1 以及 kernel-2.6 的支援。

有 Parhelia, P750, P650 的快上吧...

我沒有...-_-...

Posted by asho at 03:04 PM | Comments (159)

找出目錄和檔案總何 > 4G 的 script Version 0.6.1

v0.6.1
support argument -f(ollow symbolink)
fix some ++ typo and minor errors

可以在這邊抓...

Posted by asho at 10:09 AM | Comments (144)

December 20, 2004

找出目錄和檔案總何 > 4G 的 script Version 0.6

這個版本加入參數設定ISO最大和最小的範圍,沒有設定的話,預設Min=3800000,Max=4500000


asho@tyan2466:~/download1/cartoon$ getsize.py
using Default size
Mini ISO size = 3800000
Max ISO size = 4500000

可以在這邊抓...

TODO:
希望可以做到自動整理大於 MaxSize 的目錄並分成數片...

Posted by asho at 09:23 PM | Comments (227)

December 17, 2004

找出目錄和檔案總何 > 4G 的 script Version 0.5

今晚稍微修改一下之後,已經做到 N 個目錄的組合,只要小於 DVD 的容量就可以了
可以在這邊抓...

這兩天都在看 Programming Python...真是棒阿...好像再看小說...XD

Posted by asho at 09:37 PM | Comments (143)

找出目錄和檔案總何 > 4G 的 script

由於最近要備份的影片和動畫愈來愈多,一個一個整理容量大於 4G 的動作太辛苦了,寫了一個 python script 讓他自己去找,我只要把找出的結果燒出來就好了...:-)

Know Bug:
只能找出兩個檔案或目錄的組合,無法找出大於三個以上的組合...當作未來的 Feature!!!

Script 內容:
#!/usr/bin/python

from os import *
import string
DEBUG=0
MinSize=4200000
MaxSize=4650000

dirs=[]
for i in string.split(popen('du -s *').read(),'\n'):
if DEBUG:
print i
dirs.append(string.split(i,'\t'))

dirs.pop() # this remove the last NULL entry

if DEBUG:
print dirs

DirRange = len(dirs)
FourG=[] # > 4G record
if DEBUG:
print DirRange

SizeTable=[] # used to gather the size in order to find out duplicate set
IsDup=0
for i in range(DirRange):
for j in range(DirRange):
size = string.atoi(dirs[i][0]) + string.atoi(dirs[j][0])
if size > MinSize and size < MaxSize:
for refsize in SizeTable:
if size == refsize:
IsDup = 1

if not IsDup:
FourG.append(dirs[i][1]+'+'+dirs[j][1]+'\t'+'size :'+str(size))
SizeTable.append(size)
IsDup = 0

for i in FourG:
print i

請抓的朋友請點這邊

Posted by asho at 09:23 AM | Comments (7710)

December 16, 2004

我包好的 firefly debs

這是我自己編譯好的 deb for testing,由於 wiki 上的站台似乎不見了那我就自己來吧

deb http://asho.dyndns.org/~asho deb/

還有包裝 gcin 喔

Posted by asho at 03:32 PM | Comments (192)

December 13, 2004

技嘉 Ati 9200 入手

今天入手網拍上的 技嘉 Ati 9200,使用 radeon 驅動之後,發現看影片用 Xvideo 跟 Quadro NVS 沒什麼兩樣,NVS 還更細緻了點...怎麼跟 Windows 表現完全相反呢?看來 Nvidia 有加強 Linux 在影片播放的支援喔...

起初一直以為 Ati 影片播放會比 Nv 好多了,現在買了之後在 Linux 下卻沒有,看來 Ati & Nv 的影片之爭可以結束了

Posted by asho at 08:37 AM | Comments (1115)

December 09, 2004

安裝 RealPlayer 10 並加入 mozilla plugin

先到RealPlayer網站下載 Realplayer 10 Gold的bin檔案

然後執行
chmod +x RealPlayer10GOLD.bin
./RealPlayer10GOLD.bin

回答完問題後,再將 realplay 這個執行檔放到 $HOME/bin 下面,這樣就可以讓 mozilla or firefox 讀取含有 realaudio 的網頁了。

PS:軟體目錄下有 mozilla 這個目錄,底下有兩個檔案,請連結到 $HOME/.mozilla/plugins 底下。

Posted by asho at 04:47 PM | Comments (292)

FireFox秀出 plugins

在link bar輸入 about:plugins

Posted by asho at 10:21 AM | Comments (597)

December 06, 2004

udev 無法產生 ide device node

如果使用 Debian 包的 kernel-image 且以 scsi or sata 硬碟為主的話,udev無法產生 ide 介面的 device node 是因為沒有掛載 ide-disk/ide-cd 的關係。

為了這個我還耍呆去送 Bug 給 maintainer ,原來是自己耍白...><,但說也奇怪,我直接讀取 ide 硬碟時也不需要 ide-disk 就能讀寫了,而maintainer 卻說一定會用到這兩個 module...?

Posted by asho at 08:55 AM | Comments (144)

December 03, 2004

我的 LaTeX 文件 template

這是我編寫 LaTeX所使用的檔案,在轉換 html時圖形也不會亂掉,但有個問題是 \ref 的時候沒有 figure number,但 pdf 是正常的

這是我編寫 LaTeX所使用的檔案,在轉換 html時圖形也不會亂掉,但有個問題是 \ref 的時候沒有 figure number,但 pdf 是正常的


\documentclass[12pt,a4paper,dvipdfm]{article}
\usepackage{CJK}
\usepackage{graphicx}
\usepackage[dvipdfm,CJKbookmarks]{hyperref}
\usepackage{html}
%\usepackage{moreverb}
\usepackage{flafter}
%end{latexonly}
%\usepackage{boxedminipage}
%\usepackage{verbatim}
\oddsidemargin 0.0in
\headheight 0.0in
\topmargin 0.0in
\evensidemargin 0.0in
\textheight 9.5in
\textwidth 6.5in
\renewcommand{\contentsname}{\textbf{目錄}}

% Latex2html 會忽略以下 % % 之間的設定,所以 LaTeX 會使用這底下的 inputpic
%begin{latexonly}
\CJKtilde
\renewcommand{\figurename}{附圖}
\renewcommand{\tablename}{表}
\abovecaptionskip=0pt
\belowcaptionskip=0pt

% The command below simplifies the process of including an image. It assumes that the images
% are in a sub-folder called ``graphics'' in the folder that the .tex document lives in.
% It also assumes a bounding box file created e.g. with EBB exists in the subdirectory.
% If the graphic is (for example) called graph.jpg, then the bounding box file should be graph.bb
% The first parameter is the name of the image, the second the text for the ALT tag.
% Note that for some reason it goes wrong if you use \begin{htmlonly}\ldots\end{htmlonly}
% instead of \html. This ``feature'' might however change in subsequent versions.
%
\newcommand{\img}[2]{
\begin{makeimage}
\end{makeimage}
\centering
\latex{\includegraphics{#1}}
\html{\htmladdimg[ALT="#2"]{#1}}}
%
% The next two commands are just modified versions of \img
% The first shows how to put a box round things in both the HTML and PDF versions
% The seconds shows how to scale the image.
%
\newcommand{\boxedimg}[2]{
\begin{makeimage}
\end{makeimage}
\centering
\latex{\fbox{\includegraphics{#1}}}
\html{\htmladdimg[ALT="#2" BORDER="1"]{#1}}}
%
\newcommand{\scaledimg}[2]{
\begin{makeimage}
\end{makeimage}
\centering
\latex{\includegraphics[scale=0.5]{#1}}
\html{\htmladdimg[ALT="#2" WIDTH="5cm"]{#1}}}

\newcommand{\inputpic}[3]
{
\begin{figure}
\begin{makeimage}
\end{makeimage}
\centering
\latex{\includegraphics{#1}}
\html{\htmladdimg[ALT="#2"]{#1}}
\caption{#2}
\label{#3}
\end{figure}
}


\newcommand{\boxverbatim}[3]
{
\begin{figure}[htbp]
\begin{center}
\CJKenc{Bg5}
\begin{boxedminipage}{1\textwidth}
\verbatiminput{#1}
\end{boxedminipage}
\end{center}
\caption{#2}
\label{#3}
\end{figure}
}

\linespread{1.3}

%% 調整段落間距離
\parskip=2ex
%end{latexonly}

\begin{document}
\begin{CJK*}{Bg5}{ming}
\title{\Huge }
\author{葉信佑}
\maketitle
%% 目錄的部份以羅馬數字(0-9)計頁
\pagenumbering{arabic}
\tableofcontents
\clearpage

\end{CJK*}
\end{document}


如果您知道怎麼修改,還請通我一聲,謝謝

Posted by asho at 04:57 PM | Comments (487)

December 02, 2004

OpenOffice 的介面替代字型

不知道是不是只有我這樣,OpenOffice的介面替代字體好像改名字了,我必須替代 "Baekmuk Dotum" 才能改變介面的字體...

以前的 User Interface 好像不見了?

Posted by asho at 08:31 AM | Comments (160)

December 01, 2004

我中99萬9了!!!

還記得之前打電話過來通知說上星期日要去忠孝東路參加抽獎的電話。

說我是百萬問卷中的五位之一,獎金有99萬9,會給我另外一通律師事務所的電話跟他們確認並提供一個我自身帳號供他們匯錢過來...聽完之後,我就直接說:對不起,收訊不良,不好意思,能否晚點再打,謝謝...

真是白爛耶,這一聽都嘛知道是騙人的,背景聲音故意給你用的很吵雜,加上這種匯錢的事情絕不可能用電話通知,至少會有合法的匯票或支票才是。耍白喔,要騙人也高明一點,講話吞吞吐吐的...笨...

Posted by asho at 02:39 PM | Comments (175)

aptitude沒 utf-8介面

因為有一些 display 的問題,所以目前取消掉 UTF-8 環境中的UI當地語言介面,一律以locale=C來顯示。

至於locale=zh_TW.Big5可以正常顯示中文介面,Sarge release之前都不會有 UTF-8 的UI

Posted by asho at 08:35 AM | Comments (138)