2012年8月22日 星期三

foobar2000轉mp3 (找不到lame.exe?)

應該有人跟我遇到一樣的情況,解決歷程記下來提供參考:

想用foobar2000將flac檔切割轉成mp3格式
點選到最後一步foobar竟然問我電腦上的lame.exe存在哪裡
找到lame的源頭 http://lame.sourceforge.net/
它說 LAME is only distribued in source code form
(LAME只以原始碼方式提供)


專案下載頁提供了一些使用lame的免費及商用軟體連結
下載了幾個解開都沒有我要的lame.exe(多半是.dll給自己主程式用的)

重新搜尋google後又找到個佛心大哥編了很多binary可下載


32bit Windows 下載這個
http://www.rarewares.org/files/mp3/lame3.99.5.zip

64bit Windows 下載這個
http://www.rarewares.org/files/mp3/lame3.99.5-64.zip

解開來bingo! 裡面的確有lame.exe 
(lame_enc.dll及一堆html檔請忽略)

把lame.exe這檔案單獨解到你喜歡的目錄裡
我是為了foobar2000轉檔用的所以就放在foobar目錄下

完成後把轉檔的流程重新點一次

問lame.exe時選到foobar目錄下按下一步

320Kbps的mp3就這樣出來了

再見~

2012年5月4日 星期五

USB網卡(AX88772a)CentOS 5.5不支援 驅動程式source code又compile失敗 - ELRepo佛心套件

USB有線網卡插到CentOS 5.5 server無法驅動
原廠光碟裡的driver都是要自己編譯的source code
readme說得很簡單: make, make install 就好
其實不然... 
make執行下去,先要kernel source、又要gcc、又缺Library.....
功力不好肯定走不到make install這一步

想偷個懶上網找人家編好的driver沒下落
卻意外發現ELRepo這個好東西,真是懶人的救星!
官方網址  http://elrepo.org
它是為RedHat Enterprise及衍生系統設計的好東東
ELRepo supports Red Hat Enterprise Linux (RHEL) and its derivatives (Scientific Linux, CentOS & others)

強烈建議常亂加硬體的人要裝這套!!!

安裝方式非常簡單,先這樣:

如果是 RHEL-5, SL-5 or CentOS-5,下這行:

如果是 RHEL-6, SL-6 or CentOS-6,用這行:

這麼簡單一套懶人神器就安裝完成了~

接下來,依照你的硬體加裝driver
我的是AX88772網卡,來自ASIX公司,用這行:
yum install kmod-asix

ELRepo佛心好物就幫我把driver裝好了
網卡插上USB埠試看看,上工!  bravo!!!
 
( 不知道裝哪隻的話 這裡查 http://elrepo.org/tiki/Packages )


由衷感謝開發這套系統的大哥大姐們~
誠如其slogan所說:

"For the community, by the community."





2012年4月29日 星期日

無法開啟 新增印表機 列印多工緩衝處理器未開啟

VISTA下無法列印 以為沒有安裝印表機

開啟控制台新增印表機後,跳出現下列訊息

(Windows無法開啟 [新增印表機],本機列印多工緩衝處理器服務未執行,請重新啟動多工緩衝處理器,或重新開機)



原因就是Windows系統中負責處理列印工作的服務被關閉



解決方法如下~

步驟一: 檔案總管中,在"電腦"上按右鍵選取"管理"





步驟二: 在"管理"視窗左邊列表中,選取 "服務" (services)。右邊視窗內就是本機的所有服務,往下選到Print Spooler,此時它的狀態空白,啟動類型是"手動",難怪不能使用印表機!





步驟三: 在Print Spooler上點兩下出現下列視窗。點一下"啟動"按鈕即可啟動此服務。這台電腦不知何因竟然把列印功能必備的服務關掉了! 順便將它改成"自動"以確保Windows重新啟動後列印功能可以正常運作。





完成!









2012年4月28日 星期六

為什麼我的JAPAN LIFE遊戲找不到加朋友按鈕

如果你也是個玩遊戲都不看說明 也懶得執行任務的人
玩到JAPAN LIFE這個iPAD遊戲時 就可能遇到一樣的問題

玩沒兩天發現好多商店及設施都不能建 說是要有neighbor(中文版好像叫好友)...
想說沒看到哪裡有neighbor的按鈕
應該繼續玩升個兩、三級後自己會出現吧!

就這樣繼續亂玩幾天
還是沒消息  忍不住上網查

這才發現這遊戲叫和風物語  已經流行好幾個月了~
還有一大堆人在邀朋友 (英文版叫neighbor)

恍然大悟 原來neighbor要靠自己努力找 手動加

滿心歡喜抄了幾個ID回到遊戲裡 卻遍找不到可以加好友的按鈕



再次搜尋google卻沒看到相關討論
剛好工作也忙  就這樣再拖了幾天

今天   我終於搞懂了!!!

原來遊戲的設計是要玩家一步步跟著monggi學習
跟著導覽做些簡單任務後好像會走到加好友這關
自己沒理會熱心的monggi   他當然幫不上忙...

所以
如果你跟我一樣已經先蓋了一大堆房子才發現這點

直接進去設定把導覽功能"跳過"就好了
我的是英文版 所以是 "Skip tutorial"這個
點選後繼續按確定 這個按鈕就出現了!

最後 如果你也在找好友
我的ID:   4joal


老實說 我原先以為它是單機版遊戲.....



2012年4月13日 星期五

Tagging / Untagging VLAN ID with Linux

Here's the note of my VLAN ID tagging / untagging experiment on CentOS 5.5.

Add VLAN tag on packets from LAN port 1 with ID 1000 and LAN port 2 with ID 2000. Forward both to LAN port 3 and remove VLAN tags in the reverse direction. To do this, we need 8021q kernel module and bridge controller "brctl". Here's the command to make it work:

Three interfaces on my PC:
LAN port 1 = eth0
LAN port 2 = eth1
LAN port 3 = eth2


First bring up all the base interfaces:
   ifconfig eth0 0.0.0.0 up
   ifconfig eth1 0.0.0.0 up
   ifconfig eth2 0.0.0.0 up

Create VLAN interfaces and bring them up:
   vconfig add eth0 1000
   ifconfig eth0.1000 0.0.0.0 up
   vconfig add eth1 2000
   ifconfig eth1.2000 0.0.0.0 up

Prepare (create) bridges:
   brctl addbr bridge1000
   brctl addbr bridge2000

Bridge eth0.1000 to LAN port 3 (eth2):
   brctl addif bridge1000 eth0.1000
   brctl addif bridge1000 eth2
   ifconfig bridge1000 up

Bridge eth1.2000 to LAN port 3 (eth2):
   brctl addif bridge2000 eth1.2000
   brctl addif bridge2000 eth2
   ifconfig bridge2000 up

~Done!


note 1: I once had troubles to make it work. reason is that bridge needs to be activated manually.

note 2: saw such info somewhere, "8021q kernel module is enabled by default only in Kernel 2.6". with Kernel 2.4 you need to insert the module manually (insmod 8021q). if you don't find the module in system, install it with yum. try keyword 8021q or vlan.

note 3: interfaces in a bridge seems lose their layer3 functions. for example, I lost access to IP address of eth2 after "ifconfig bridge2000 up". guess that's because all packets (in fact Ethernet frames) to eth2 forwarded to eth0.2000 before going up to IP layer.   

2012年4月3日 星期二

How to block Microsoft Live Messenger Ads

I agree this is a fair deal that I use Live Messenger for free while Microsoft pushing Ads at the bottom to make some money.

Some time ago the Ads became unbearable. A big window pop up right in the middle of desktop whenever my cursor walk over the minimized Ad. This drove me crazy and I decided to block the Ads with no mercy...

Again, google helps in almost all cases. I found there are at least 3 ways to deal with the Ads.
1. install MSN Shell
2. block the site rad.msn.com by adding it in IE options
3. blind messenger by redirecting rad.msn.com to itself (loopback)

I don't like 3rd party shell since they are too powerful to win my trust. I don't like IE to get involved because it get hi-jacked by ad sites easily. Option 3 is no doubt the best solution because it's risk free. I gave it a try and it work out so great. Here's the steps to carry it out:

step 1. edit the file c:\windows\system32\drivers\etc\hosts, add a line "127.0.0.1 rad.msn.com" at the bottom. (example from Windows 7)

   # Copyright (c) 1993-2009 Microsoft Corp.
   #
   # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
   #
   # This file contains the mappings of IP addresses to host names. Each
   # entry should be kept on an individual line. The IP address should
   # be placed in the first column followed by the corresponding host name.
   # The IP address and the host name should be separated by at least one
   # space.
   #
   # Additionally, comments (such as these) may be inserted on individual
   # lines or following the machine name denoted by a '#' symbol.
   #
   # For example:
   #
   #      102.54.94.97     rhino.acme.com          # source server
   #       38.25.63.10     x.acme.com              # x client host
   # localhost name resolution is handled within DNS itself.
   #    127.0.0.1       localhost
   #    ::1             localhost

   127.0.0.1    rad.msn.com

step 2. save the file to your desktop (it's a system file so I save it to desktop temporarily)

step 3. move the saved file back to its origin. my case, cut the file "c:\users\jason\desktop\hosts" and paste it in folder "c:\windows\system32\drivers\etc". you need to authorize the request to overwrite because you're accessing a system file.

step 4. execute the command in DOS Shell "ipconfig /flushdns" to activate the trick

step 5. re-login restart your Messenger and you should fine Ads no longer show


Hope this work for you also.



cheers!

2012年4月2日 星期一

Why is my hard drive so busy (process hacker)

Ever wonder why your hard drive is always busy reading or writing something that slow down your Windows dramatically even you're doing nothing? I do, and it bothers me all the time because my Windows VISTA running on a E8200, 4G memory hardware is always writing something I don't know making endless clicking sound even after screen saver activated.

An always busy hard drives is really annoying. It can be a windows service, a virus, or in most cases the windows memory swapping who make your hard drive busy. Anyway, it's always good to know who's making it busy. Isn't it?

A quick search led me to a Taiwanese blog (http://twchuck.blogspot.com/2010/11/blog-post_19.html) which talking about the same thing (busy hard drive) and introduces a nice tool call "process hacker" (from sourceforge). I had it working on my computer in 3 minutes and the result came out so great!


Download the great tool from sourceforget here:
Process Hacker

No installation required. Just extract the folder you need to a place where files can be excuted (x64 folder for 64bit Windows, x86 for non-64bits, choose one that fits your Windows) and run "ProcessHacker.exe". This program will analyze and show you lots of useful information. Down below is a snapshop of my Windows VISTA. The task with highest "I/O Total" should be the one who bother your hard drive most. Ignore the process who bursts up and go down in 1 second. The ones who keep high I/O for at least 5 seconds are the real bad guys.

You can right click on the process you don't like to "terminate" it or even "terminate tree" to kill related processes at once. I made this post to help you find clues to an annoying symptom, not to ruin your unsaved work so be sure that you know what you're doing. Killing something you don't know may cause system unstable!

Cheers!

(ignore those Chinese characters since I have no way to change them to English in a Chinese Windows)