在 Windows 7 上安裝 AppLocale

March 5, 2010 2 comments

AppLocale 是 MS 給需要跑多言系使用者的一個很方便的前置程式. 會出現亂碼的程式只要選取原生支援的語系, 文字就可以正常的顯示.

小弟有時會要跑簡中和日文的 software, 就套上 AppLocale 再開啟文字就可以正常顯示. 但是在 Windows 7 下無法安裝…但解決方法如下.

  1. 按下左下角的 Windows icon
  2. 去程式集裡找 Accessories (中文好像是附屬程式集), 裡頭會有 command prompt
  3. 按右鍵, 選 Run as administrator
  4. 在黑色的 command prompt 下, 目錄題示會是 c:\windows\system32
  5. 改目錄去剛才下載的路徑, 本例是 C:\software\applocale, 那就鍵入 cd \software\applocale
  6. 進去目錄後, 再打 apploc.msi 就會看到原本的安裝精靈
  7. 下一步完成後就不會出現錯誤了.
Categories: 1

Unable to join workgroup

February 16, 2010 Leave a comment

One day after my PC rebooted, I’ve got a BIOS checksum error (Asus P5Q Deluxe) and prompted me that default was loaded. I didn’t care that much and pressed “F1″ to continued.

However, the problem started to occur, I couldn’t get the files out from my home Windows 2003 Server R2!!! I ensured that I typed the correct credential but it kept prompting me for bad user name and password. I pondered. I even created many admin accounts on the server and ensured that I typed the correct credential.

I tried numerous ways to isolate the problem including referencing my wife’s new Dell laptop where another Windows 7 premium is installed. The hackintosh that I was using could even join to the workgroup without a problem. What happened to this custom built power PC?

I have started to search for online help and finally came up with a solution. It’s very simple and I will put it in bold letter.

If you know that your credential is 100% correct and keep getting bad user name and password when joining a workgroup, please make sure you TIME is correct.

That’s all, my time on my PC after the checksum error was restored to 2002….

Categories: Windows 7

Tiny7 Rev 01 安裝中文的方法

October 29, 2009 6 comments

引述 chih_hong_lai大大在PCDISCUSS論壇上的方法,讓 Tiny 7 Rev 01 可以安裝中文.

我在我的初代 Acer Aspire One 8G SSD 上試過覺得表現差強人意. 可能本身SSD實在是太慢, 還是會有遲緩的現像

其實此版本可以改成繁體中文版但手續有點複雜我大致簡述如下
1.install Tiny7 Rev01

2.安裝EastAsiaFonts for Tiny7 東亞字體補丁. 由此下載. TXWD 大大制作.

3. 執行完畢之後, 中文網站已能見到.

4. 至於輸入法的部份, 廷用原本 Windows 7 內建的輸入法有點複雜, 小弟我是直接採用 Yahoo! 奇摩的 Key key Link: http://tw.widget.yahoo.com/keykey/

5. 如果想用拼音的, 可建議使用 Google 的拼音輸入 Link: http://www.google.com/ime/pinyin/

以下是舊方法, 太複雜, 故刪除.

1.install Tiny7 Rev01

2.安裝EastAsiaFonts_Vista.exe 東亞字體補丁,google找的到.

3.將zh-tw MUI 檔複製回c:\windows 及c:\program files
請由已安裝win7 RTM 硬碟中提取,搜尋zh-tw 將所有zh-tw目錄壓縮下來即可.

4.安裝中文字型一定要有微軟正黑體.

5.修改登入檔可將下列字串複製存成.reg檔後點開即可.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\zh-TW]
“LCID”=dword:00000404
“DefaultFallback”=”en-US”
“en-US”=hex(7):00,00
“Type”=dword:00000112

6.重新開機由控制台更改地區及語言(region and language) 將顯示語言選擇 中文(繁體)(台灣)
後登出在登入即可.其餘格式/位置及系統管理在設定成台灣即可
系統管理這一項千萬別在顯示語言之前設定,將無法開機.

Categories: Windows 7

Install FFMPEG correctly on ubuntu 9.0.4

September 2, 2009 Leave a comment

Getting the Dependencies
1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following:

Code:
sudo apt-get purge ffmpeg x264 libx264-dev

2. Next, get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):

Code:
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libx11-dev libxvidcore4-dev zlib1g-dev

Install x264
3. Get the most current source files from the official x264 git repository, compile, and install. You can run “./configure –help” to see what features you can enable/disable. If you are behind a firewall or unable to use git, then daily source tarballs are also available.

Code:
cd
git clone git://git.videolan.org/x264.git
cd x264
./configure
make
sudo checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --default

Install FFmpeg
4. Get the most current source files from the official FFmpeg svn, compile, and install. Run “./configure –help” to see what features you can enable/disable. If you are behind a firewall or unable to use subversion, then nightly FFmpeg snapshots are also available.

Code:
cd
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --fstrans=no --install=yes --pkgname=ffmpeg --pkgversion "3:0.svn`date +%Y%m%d`-12ubuntu3" --default

That’s it for installation. You can keep the ~/x264 and ~/ffmpeg directories if you later want to update the source files to a new revision. See “Updating Your Installation” below for more details.

Using FFmpeg and x264
The easiest method for high quality video encoding is by using the libx264 presets that are included with FFmpeg.

Two-Pass encode using the fastfirstpass and hq presets:

Code:
ffmpeg -y -i input.avi -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -bt 512k -threads 0 -f mp4 -an /dev/null && ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -b 512k -bt 512k -threads 0 -f mp4 output.mp4

You can add options such as frame size (for example: -s 640×480) or tweak my example settings to customize your encode.

One-pass CRF (Constant Rate Factor) using the hq preset:

Code:
ffmpeg -i input.avi -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -crf 22 -threads 0 output.mp4

FFmpeg x264 encoding guide has more info on the differences of two-pass and CRF. Also see FFmpeg libx264 presets for more preset descriptions and usage.

Two-pass iPod 640×480 using the fastfirstpass, normal, and ipod640 presets:

Code:
ffmpeg -y -i input.avi -pass 1 -vcodec libx264 -vpre fastfirstpass -vpre ipod640 -b 512k -bt 512k -s 640x480 -threads 0 -f ipod -an /dev/null && ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre normal -vpre ipod640 -b 512k -bt 512k -s 640x480 -threads 0 -f ipod output.mp4

You may have to use qt-faststart, MP4Box, or AtomicParsley to make the video iTunes friendly. I don’t use iTunes or iPod so I can’t test this. More info and other usage examples: iPod Video Guide.

Updating Your Installation
You may eventually want to update to the newest revisions of FFmpeg and x264 if there are any major developments or changes:

Code:
sudo apt-get purge ffmpeg x264
cd ~/x264
make distclean
git pull
./configure
make
sudo checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --default
cd ~/ffmpeg
make distclean
svn update
./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --fstrans=no --install=yes --pkgname=ffmpeg --pkgversion "3:0.svn`date +%Y%m%d`-12ubuntu3" --default

Keep in mind that the option names used in configuring FFmpeg often change between revisions. This also applies to encoding options. If your encoding script breaks between revisions this is the first thing to look for.

Reverting Changes Made by This Tutorial
To remove FFmpeg/x264 and any changes made from this tutorial:

Code:
sudo apt-get purge x264 ffmpeg build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libtheora-dev libx11-dev libxvidcore4-dev zlib1g-dev

Lastly, delete the ffmpeg and x264 directories in your home folder.

Additional Resources

Recent Tutorial Updates

2009-07-14: Added libx11-dev as a dependency to make –enable-x11grab actually work. Removed the “Optional Dependency” section and just added those dependencies (libsdl1.2-dev for ffplay and zlib1g-dev for png and some other encoders) into the main dependency section.

2009-06-12: Added –enable-x11grab to FFmpeg configuration to allow recording of the screen / desktop / X window manager.

Let me know if you have any recommendations or corrections. If you have problems include your Ubuntu version, the FFmpeg command, and the full FFmpeg output.


Last edited by FakeOutdoorsman; July 14th, 2009 at 08:18 PM..
Categories: 1

MySQL UTF8 issue

June 25, 2009 Leave a comment

I was asked to identify an issue between our PHP web form and MySQL DB. The web form is based in Japanese of UTF-8 encoding and we have all database character set and collation set to UTF8_Unicode_Ci. However, when we finish input the fields in Japanese, the data in MySQL is shown in junk character.

The weird thing is you can actually view the data in correct format if you read the data to the web page.

For example, this is what it looks like, some of them are in correct encoding but some don’t.

日本語テスト
北海道は寒いね。
北海道は寒いね。
着付かない
思い出す。
弱点
弱点
弱点
使いません。

After checking the encoding of database and web page and even ran this script “show variables “char%”;”, everything seems to be ok. However, the solution to this is to simply insert the following PHP code right after selecting the DB. If your PHP is 5.2 and above, the below line works for you otherwise you will have to use the alternatives.

PHP 5.2 and above:
mysql_set_charset('utf8');
Older PHP:
mysql_query("SET NAMES 'utf8'");

That’s it. But one thing that I noticed was the CSV export would still result in junk characters. I think CSV doesn’t support unicode anyway so I told my colleagues to export as XLS or XML instead.

 

Error: “Text value unmappable in the current server locale”

April 15, 2009 27 comments

I have found a very nice tutorial for SPSS at DataStep (accessed here) . They even provide sample data for you to quickly play with SPSS. However, I have encountered error “Text value unmappable in the current server locale” when I tried to import the sample data file. Luckily I was able to solve this by visiting to LimeSurvey’s doc repository. (accessed here) All you need to do, is to follow the step below to adjust your character setting. I am using Windows XP with Japanese locale and it should be the cause of the problem…

Open SPSS. Go to Edit > Options > Character encoding for data and syntax. Change the option to “unicode”.

Categories: SPSS docs

Help to fill my thesis survey

March 4, 2009 Leave a comment

Dear all,

I am conducting an online survey for my thesis study titled “Opportunities in the future of wireless industry”.

This survey will help me to determine the likelihood of American mobile users. Please take a few moment to fill it here:

http://www.surveymonkey.com/s.aspx?sm=zlISqekOAcTCbidV7vvwng_3d_3d

Thanks a lot!

Chao,

Hello world!

September 3, 2008 Leave a comment

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

禁止形

September 2, 2008 Leave a comment
禁止形
   辭書形 禁止形
I

触る(さわる)

触るな

II

入れる 

いれるな

III

する

くる

するな

くるな

 

與命令形一樣, 在男性同好中,可以加 よ 來使用

例1:あまり 飲むなよ。(別喝太多)

在緊急時或由地位高, 年紀大的男性時

例1:ものを 落とすな。(東西別掉)

觀看體育比賽時的聲援

例1:頑張れ 

例2:走れ  

Categories: Uncategorized

命令形

September 2, 2008 Leave a comment

 

命令形
   辭書形 命令形
I

行く

飲む

終わる

話す

待つ

会う

行け

飲め

終われ

話せ

待て

会え

II

食べる

見る

食べろ

見ろ

III

する

くる

しろ

こい

 

[註] ”わかる”、”できる”、”ある” 等不包含意志的動詞沒有命令形

例1:明日までに レポートを まとめろ。(報告明天為止整理出來)

例2:もっと 勉強しろ。(再多用功一點)

男性朋友同好, 可在句尾加上語助詞 よ

例1:あした うちへ 来いよ。

 

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.