2009年11月10日 星期二

UBUNTU下 flash 中文亂碼解決方案

原因是 /etc/fonts/conf.d/49-sansserif.conf
這個檔案裡的字型設定有錯

方案一 直接刪除 (Ubuntu - 解決 firefox 的 Flash 亂碼、無聲情況)

先備份
sudo cp /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak

接著,把它砍掉~
sudo rm -f /etc/fonts/conf.d/49-sansserif.conf


方案二 修改檔案(解決 Flash 裡頭中文顯示亂碼問題)
sudo gedit /etc/fonts/conf.avail/49-sansserif.conf

把最後一段「sans-serif」的 sans-serif 改成你要的中文字型就可以了,或是將中間橫線拿掉,改成 sans serif 也可以。

ubuntu 如何解壓縮 .RAR

打開「附屬應用程式」的「終端機」

打入sudo apt-get install rar

完成

2009年10月26日 星期一

在 fedora 11 安裝 openoffice

在終端機打上
su

以root身份登入

然後打上
yum groupinstall "Office/Productivity"

即可自動安裝

2009年8月29日 星期六

jQuery: append <script> element

var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = url;
$("#someElement").append( script );

2009年8月16日 星期日

[jQuery]用jQuery控制 iframe 內的元素

How to access iframe in jQuery

jQuery( function() {
$('#frame1').load( function(){
$(this.contentDocument).find('body').html('This frame was modified with jQuery!')
});