2007年11月27日 星期二
[軟體]MAC上處理MDS, MDF分割影像檔 ~MISO-J 1.02~
MISO-J 是一套檔案結合的工具軟體。
基本上,不管是任何檔案,
MISO-J都可以盲目的把他們依使用者要求的順序結合成單一個檔。
(有點無俚頭!!)
舉例來說:如果原先有三個文字檔,001.txt, 002.txt & 003.txt
使用者可以透過MISO-J 將這三個檔案合成一個文字檔。
(001.txt + 002.txt + 003.txt --> output.txt)
不過結合的檔案不一定都能開啟就是了。
差別在於有些檔案的開啟需要檔頭或標尾某些特別的敘述來支援。
所以,這種結合方式適合串流性質,或是結構簡單的檔案。
上面舉的txt文字檔就是例子之一。
言歸正傳,這樣的工具程式到底有什麼實質的用途呢!?
有些朋友不知道是否有類似的經驗。
一些PC上壓制的DVD影像檔是以2GB + 2GB + ..MB的方式分割。
過去的作法是必須在終端機的模式下,用CAT指令來將這種ISO影像分割檔結合。
然後才能在MAC OS X上進行燒錄,或是掛載到桌面上讀取。
大家可以參考筆者以前的這篇介紹。
不過畢竟指令輸入容易錯誤,而且無圖形介面可以使用,操作實在是很不直覺。
為了因應這樣的需要,所以筆者寫了這個小程式MISO-J。
各位有需要的朋友可以參酌使用。
操作基本上粉簡單:
+:新增檔案至待處理的清單
-:從待處理清單移除檔案
JOIN:依待處理清單中的順序結合檔案
通常這類PC上製作的ISO影像分割檔的副檔名有兩種類型:
"xxx.mds, xxx.I00, xxx.I01, xxx.I02"
和
"xxx.mds, xxx.mdf, xxx.md0, xxx.md1"
副檔名.mds的檔案是不需要加入結合的。
重要的是其他.I00, .I01, .I02 或.mdf, md0, md1的順序一定要正確。
筆者自己是已經有試過一些檔案了。
不過建議各位還是在確認結合完的影像檔能確實在MAC OS X上燒錄讀取。
才考慮將原始檔刪除。
最後希望大家都能使用得愉快。
MISO-J 1.02下載連結
How to burn/mount .mds-, .mdf-, .md0-image files on Mac OSX
For image files containing just .mds and .mdf, it's sufficient to rename the .mdf to .iso. Burn this file as image file in Toast.
For image-files containing an .md0-file, You need "Split and Concat"
http://download.com.com/3000-2179-10212101.html
Here's how:
(Leave the .mds-file alone - You don't need it, but it's not in the way either).
Rename the other files, for instance:
if Your file batch looks like this:
File.mds - (8kB)
File.mdf - (3,99GB)
File.md0 - (69,9MB)
rename them to
File.mds - (8kB)
File.iso.001 - (3,99GB)
File.iso.002 - (69,9MB)
Of course, the .mdf is the first - and main - file, so it should be named 001.
Open Split and Concat,
click on "concat", and locate and choose the two .iso files (click the first and shift-click the other to select both). Click "open".
Now, Split and Concat should present You with a nice progress bar, so sit back and relax.
When finished (it takes no more than a few minutes), check the size of the new .iso-file to see that it's roughly the same as the size of the old .mdf and .md0 combined.
If it's the same size as just one of the old files, double-check the renaming-process.
When successful, burn in Toast!
Hope I explained it well enough... I've had two successful tries out of two, so it looks like it's the way to go.
Good luck!
2007年11月21日 星期三
2007年11月13日 星期二
有效率的CHMOD針對目錄及檔案
以往修改目錄或檔案權限都是用chmod 770 -R /path/dir來讓dir及dir下的所有子目錄跟檔案同一權限:770(目錄:d rwx rwx ---,檔案:- rwx rwx ---),這樣使得非執行檔的檔案也被賦予eXcute權限,雖然在檔案分享上無礙,但是始終沒有一個適當的解決方案,想使用chmod分開讓目錄權限具備x(進入目錄),讓檔案不具備x(執行檔案).
或許可以使用別種方式如自己寫shell指令visit子目錄跟檔案而不使用-R來統一更改,但是也是累.
Google許久發現需要配合神奇的find指令(find不只是find喔!)
find /path/dir -type f -print0 | xargs -0 chmod 640
針對類型f(即檔案)執行chmod 640指令
find /path/dir -type d -print0 | xargs -0 chmod 770
針對類型d(即目錄)執行chmod 770指令
如此一來,檔案可以不具備x,目錄具備x即可以進入!!
2007年11月9日 星期五
FC/Ubuntu/Debian下的JAVA中文顯示
1.在 jre/lib/fonts/ 下建立个目录 fallback比如我这儿就是mkdir /usr/lib/j2sdk1.5-sun/jre/lib/fonts/fallback/
2.在 fallback 里弄个中文字体拷贝或链接都可以比如我这就是ln -s /usr/share/fonts/truetype/arphic/uming.ttf /usr/lib/j2sdk1.5-sun/jre/lib/fonts/fallback/
3.进入 jre/lib/fonts/fallback/ 执行 mkfontscale
再把 jre/lib/fonts/fonts.scale 的内容加到 jre/lib/fonts/fonts.dir
我这儿就是
cd /usr/lib/j2sdk1.5-sun/jre/lib/fonts/fallback/mkfontscale
cd ..
cat fallback/fonts.scale >> fonts.dir
2007年11月2日 星期五
ASP CODEPAGE
@CodePage 主要是作用在靜態字串,例如MyStr = "這是靜態字串"在IIS5.0及之前的版本@CodePage作用範圍為整個Session都有效也就是在某一頁使用了@CodePage,則其它頁也會受影響而IIS6.0已改為只作用在一個Response body(宣告的頁面及Include進來的頁面)
而Session.CodePage及Response.CodePage都是作用在動態字串例如:從資料庫中讀出的字串或用FSO讀進來的字串兩者的差異在其作用範圍Session.CodePage在整個Session都有效
而Response.CodePage則只作用於單一Response body當未宣告Response.CodePage時會依Session.CodePage的值作為Response.CodePage的設定若Session.CodePage也未設定則Response.CodePage會比照@CodePage的設定(但Session.CodePage不會比照@CodePage的設定,會直接捉Code Page Metabase的設定)若@CodePage也沒設定,則依Code Page Metabase中的設定為準若連Code Page Metabase中也沒設定,則會使用ANSI作為CodePage所以,看你頁面中是否使用了靜態或動態字串來設定相關的CodePage而Response.Charset要跟CodePage的設定相對應,才不會有亂碼產生
MSDN的相關說明http://msdn2.microsoft.com/en-us/library/ms524967.aspx
訂閱:
文章 (Atom)