2011-07-12

[教學] 讓 SMPlayer 正常顯示中文字幕

SMPlayer 是一款很出色的影音播放器,它以 MPlayer 為核心,提供了直覺的操作介面,被稱為最棒的 MPlayer 前端介面。它同時有 Windows 跟 Linux 版本,因為功能完整且對硬體要求不高,所以受到許多人的喜愛。MuldeR's MPlayer for Windows 則是玩家修改後的版本,它同樣是 SMPlayer,不過有對各種 CPU 做最佳化,也是值得一試。

不過相信很多在 Windows 底下使用 SMPlayer 的人都有遇過無法顯示中文字幕的問題,要怎麼解決呢?底下三張圖片就是解答!

1.
在偏好設定裡頭,切換到「進階 → Mplayer 的選項」,將原本的「-nofontconfig」移除。



2.
在「字幕」分類的〔字幕〕分頁底下,預設的字幕編碼選擇「正體中文字元集 (BIG5)」。若有時候你的字幕編碼是 Unicode 或 UTF-8,這裡就需要改為相對應的值。



3.
切到〔Font and colors〕分頁,按下〔Enable SSA/ASS subtitles〕按鈕以便啟用它。然後你就可以選擇字體跟位置、顏色、樣式等設定了。最新版的 SMPlayer 將 SSA/ASS 的設定改成這樣,再也不用自己下參數,實在是非常方便。記得一定要啟用 SSA/ASS,才可以正常顯示字幕喔。

2011-07-11

三用電表的使用方法.....數位式三用電表 (YF1069型)





直流電壓測試
1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至DCV區域。(若不知道待測電壓的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止,最大電壓勿超過 DC 1000V。)
3 將測試棒與待測線路並聯。
4 從液晶顯示器讀取待測電壓值。
 
交流電壓測試

ACV

1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至ACV區域。(最大電壓勿超過 AC 750Vrms。)
3 將測試棒與待測線路並聯。
4 從液晶顯示器讀取待測電壓值。
 
直流電流測試

DCA

1 將紅色測試棒插入“mA”插座(大於200mA則插入10A插座),黑色測試棒插入“COM”插座。
2 旋轉開關轉至DCA區域。(若不知道待測電流的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止)
3 將測試棒與待測線路串連。
4 從液晶顯示器讀取待測電流值。
 
電阻測試

OHM

1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至OHM(Ω)區域。(若不知道待測電組的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止)
3 將測試棒接到待測電阻上。
4 從液晶顯示器讀取待測電阻值。
 
二極體測試
1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至二極體 “”檔位。
3 將測試棒接至待測二極體。
4 從液晶顯示器讀取測量值。
 
電晶體測試
1 旋轉開關轉至 hFE 區域。(依電晶體形式轉至 PNP 或 NPN 位置。)
2 將待測電晶體腳位 EB 配合插孔標示插入電晶體測試插座。
3 從液晶顯示器讀取 hFE 值。

2011-04-26

ATX 電源供應器手動啟動 (不接主機板啟動)

2014-12-22_114828

重點在 PS_ON# 這支接腳即16號接腳,只要跟任何 GND 的接腳(3、5、7、15 、17 、18、19)短路即可啟動ATX 電源供應器進行直流輸出(電源供應器的散熱風扇開始運轉)。要注意的是,短路動作要一直保持,一旦兩接腳開 路,ATX 電源供應器就會停止直流輸出(電源供應器的散熱風扇停止轉動)。

PS: 千萬不要以電線線色來做判別,各家電源供應器廠商的線色使用不盡相同!

這樣還不能保證電源供應器沒壞,只是知道電源供應器可啟動而已. 這只是最基本的功能沒壞. 接下來還要量各腳的輸出訊號(這只能大約得知各輸出是否正常),然後再進行負載測試, 也就是接上主機板

2014-12-21_181328

2011-03-24

沒軟碟機怎麼製作 USB FLASH KEY MS-DOS 開機碟?

Comment 2012/11/2 --- 以下方法太複雜了; 可改用 unetbootin or ultraiso

1: 到 這裡 下載Bootdisk



我是建議下載Windows 98 SE No Ram Drive 的開機碟,無特別偏好。但只要是Windows與Dos系列的應該都可用,NT的開機就不是DOS了。



2: 到 這裡 下載 Virtual Floppy 的程式 ( x32 only. For x64, please use imdisk )



3: 解壓縮檔案,例如 C:\VFloppy



4: 執行 vfdwin.exe
執行後會出下如下圖片



請點Install安裝虛擬Floppy。如果會經常需要虛擬Floppy,可以將啟動方式設為Auto。


成功安裝後,視窗會出現『The VFD driver is installed.』 請點Start 啟動 VFloppy



正確啟動後會顯示



不要急著去打開我的電腦,絕對不會顯示有軟碟機的 但不要擔心!請跟著下列順序操做!


先點 Drive0,接著change,Driver Letter A:,最後OK (當然,如果你電腦A: 已經用掉了,也請自己改成別的Drive Letter)



打開我的電腦看一下~~



出現了!!!
但還沒結束,我們要放磁片進去:

請點選『Open/Create』,接著點『Create』。注意橢圓部分設定請不要更改



最後,請去『我的電腦』,點進去Floppy,應該出現如下圖:一張空白的軟碟片




5: 製作開機軟碟
點選剛剛下載的檔案,並點OK



成功後A槽內容如下。對於以前常用Dos的朋友,裡面的東西應該都相當熟悉吧





5: 製作可開機MS-DOS USB 隨身碟


終於,花了這麼多步驟,最後重頭戲來了!

如同另外一篇教學,請下載HPUSBFW.EXE這文件 http://files.filefront.com/HPUSBFWEX.../fileinfo.html

接著請把製作開機碟的USB插入電腦,先讓他偵測。

注意!此USB隨身碟裡面所有資料接會被抹除!

執行HPUSBFW

勾選『Quick Format』以及『Create DOS Startup Disk』,並在下面空位輸入軟碟機的代號。在此例是A:\



接著按下『Start』,會跳出如下圖選項



程式會警告你,建立開機USB碟會殺掉所以裡面的資料。確認裡面資料都備份過後,請按『Yes』 不要沒確認資料誤殺來找我!



格式化成功後如下



此時USB裡面都是空的,這是正常的,因為重要系統檔案都被隱藏起來。
複製你所需要的檔案至 A:\. 假設我想要Flash Nvidia顯卡的Bios,那當然要把Bios跟刷卡的程式都放進去。如果是想要Flash其他東西,也請把相關程式放進去。







6: 開機
確認USB隨身碟有插在電腦上,進入 BIOS 設定由 USB FLASH KEY 優先開機。

2011-02-20

把老舊的Buffalo WBR2-G54 更新 dd-wrt firmware


======================
Method 1

DD-WRT serial recovery


======================
Method 2

TFTP recovery in Windows
*Untested, credit goes to ermax at D-WRT forum
  1. Get your router's MAC, its the 12 digit default SSID printed on the sticker at the back of the router, starting with 00. Then you'll need to break it down every two digit by inserting : or - between them.
  2. Download the latest official firmware(in case of recovery) from Buffalo's official website. Extract to get the firmware, in my case, its 1.74 and the firmware name is wzrhpg300nh-174, ~20MB.

    Also download the 
    Linksys TFTP utility.
  3. (May not necessary) Do a hard reset or 30/30/30 on the router.
  4. Unplug all the ethernet cable and the power cable and connect the computer directly to the router(still leave it off)
  5. Set the computer's static IP to 192.168.11.2, netmask 255.255.255.0, gateway/DNS 192.168.11.1.
  6. Open a Windows command prompt as Administrator. This is default on Windows XP, under Windows Vista/7, type cmd in the search box from Start menu, then press Ctrl+Shift+Enter. You will be prompted with the User Account Control dialog. 
  7. Type route print to get a list of your NIC(s). Write down the interface number for the LAN card, in my case, it's 12.
  8. Now type the command below to get the ARP binding(thanks ermax at DD-WRT forum):

    netsh interface ipv4 add neighbors 12 192.168.11.1 00-1d-12-34-56-78

    Replacing the number 12 with the interface number and 00-1d-12-34-56-78 with the router's MAC address.
  9. Run Linksys TFTP utility. Put 192.168.11.1 as Server address, Password empty, File is wzrhpg300nh-174 just extracted, set retry time to 30.
  10. Click "Upgrade" in the TFTP utility and quickly plug the power back to turn on the router. There might be few failed attempts but the flash process should start later. Wait patiently the router will reboot itself when the upgrade is done. Navigate to http://192.168.11.1(for stock firmware) to configure your router.
TFTP recovery in Linux
*Most of this part is from DD-WRT wiki with some tweak. TEST WORKING

Will use Ubuntu Live CD as an example but other distro should also work. The Ubuntu LiveCD can be booted from a USB flash drive. See here.
  1. Do Step 1-4 in "TFTP recovery in Windows" except we don't need Linksys TFTP utility here. So we have MAC address ready, router unpowered and the computer is directly connected to the router.
  2. After booting into Ubuntu, open a terminal and type:

    sudo apt-get update
    sudo apt-get install tftp-hpa
    sudo /etc/init.d/networking stop
    sudo ifconfig eth0 192.168.11.2
    sudo ifconfig eth0 netmask 255.255.255.0 
    sudo arp -s 192.168.11.1 00:1D:12:34:56:78#change to the folder where you put the firmware image, if it's on desktop then it's
    #"/home/ubuntu/Desktop".
    cd /home/ubuntu/Desktop
    tftp 192.168.11.1
    *from this point, you're under tftp command prompt, the "tftp>" is the prompt tftp gives you, you just need to type the command AFTER that.
    tftp> verbose
    tftp> binary
    tftp> trace
    tftp> rexmt 1 
    tftp> timeout 60 
    tftp> put wzrg300nh-firmware.tftp

    Replace the fictional MAC in red with the router's. All command you need to input is in italic. Also replace wzrg300nh-firmware.tftp with the firmware you need, in case of stock firmware, its wzrhpg300nh-174.Also, at this point, the router is still unpowered and that's OK. Tftp will keep trying to send the firmware to the router and when it fails (because the router isn't yet on or hasn't yet brought up it's tftp interface) it will wait 1 second and retry, up to 60 times as that's how we set up the tftp client.
  3. Now quickly plug the power cord back to the router. The router will start up and you will see some lights blinking (possibly). About 10-20 seconds in, you should notice that tftp is sending the file. instead of the retry message over and over you will see some progress scrolling down the screen and at the end it will tell you how many blocks or bytes were transferred in how many second.
  4. After the transfer is complete, wait about 5-10 minutes the router will reboot itself. When the wireless LED is on you're good to go.
  5. Bring the network back in Linux by typing

    sudo service networking start
======================

Reference 1. : "http://www.dd-wrt.com/wiki/index.php/Recover_from_a_bad_flash"

2011-01-08

如何在blogspot插入表格

前言:
使用blogspot插入表格必須直接修改 html 語法,但會造成空白行,介紹去除空白行的方法。

Step by Step:
表格必須先在網頁編輯器(如DreamWeaver)做好。

點選"修改html",將先前做好的表格的 html 原始碼貼上來。

將文章發佈,您會發現表格前面有一大堆空白,這是因為blogspot將html的原始碼的換行都變作
的換行符號,解決方法如下:

將所有表格的html原始碼寫成一行,不要按"enter"去換行


<table width="200" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>


改成以下這樣(注意:下面的換行是自動轉行,不是按enter換行):


<table width="200" border="1"><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td>
</tr><tr><td> </td><td> </td><td> </td></tr></table>


如果表格太大,無法逐一修改,可先發佈不正常的表格,然後在ie或firefox下開啟該文章,並檢視原始碼。


將原始碼有關表格的html語法,複製到文字編輯器上,再將全部的
都替換成空白。



再修改原文章,在原來的表格處。抽掉原來不正常的表格語法(在第下圖紅色框框內table語法),再貼上去除
的語法。再發佈一次即可。