Oct 31, 2009

Fix the Xbox Live 80169c5f Error on your 360

中文往下翻

I Got this error when I tried to create my wife's gametag.
them I login her Live ID on Xbox.com them try to recover her account on Xbox 360 but 80169c5f still pop up

I did some search can't get clear answer.
but finally i got the answer from xbox.com/forum

It's the cache! system cache on your 360 HDD. your need to clear your cache before create or recover your account

to do so
press guide button and press X to signout.
go to system >> memory >> selection your HDD. press Y
them select clear system cache. reboot your system

try your luck :)

今天帮 LP 建立 Live 帐号,但是创建和恢复的时候都出现这个 80169c5f 的错误
后来终于搞明白了,要清理 cache. 去 system memey 里选中硬盘 然后清理掉 cache 就好了

Oct 14, 2009

Using linux / ubuntu to Build a Twitter API Proxy with Google AppEngine for using twitter

The Chinese Gov has tightened internet censorship these day. most old way to the outside world were blocked.

for now a popular way is to host a relay api proxy on a host which can access the outside world.

login to google app engine http://appengine.google.com/
and create a app
and write down the Application Identifier which you created

for now you need to install python and google app engine sdk tool
type
sudo apt-get install subversion python
for svn and python

Get Birdnest code by typing
svn checkout http://birdnest.googlecode.com/svn/branches/gae/

them vi the app.yaml file
change the nest on 1st line to your Application Identifier them save
type pwd to display the folder path

go to http://code.google.com/appengine/downloads.html
and download the linux version of the google app engine sdk

go to google app engine sdk's folder
type
./appcfg.py update [folder path]

type in your google account to upload your Birdnest proxy

visit [your app id].appspot.com/api/ them you should see a page same as twitter but you can't login.

them just add http://[your app id].appspot.com/api/ to any twitter client which support api proxy change them you should have your twitter active on your PC or Phones

Sep 6, 2009

Can't get full screen on Your HDTV through HDMI connection? (ATI card)

Open Catalyst Control Center
and make sure you have the same settings with this picture.

by the way. you also need click the Attributes tab
and check the GPU Scaling box to enable Scaling!

if you don't. you may have sound problem when display a non- 720p or 1080p apps.

HDMI 链接电视 不能全屏? 按照这里设置吧 :)
另外你还要点击 Attributes 页,开启 GPU Scaling.
否则显示 非 电视机标准分辨率时可能没有声音。

Sep 2, 2009

If you are in china, and need a home use router buy Netgear no D-Link, they pervide newer english firmware

Just bought a Netgear WGR614v9 router. (looks beter than D-Link)
And find they offer global firmware upgrade :) which is good. (The chinese firmware allways out of date)

Aug 27, 2009

The Best Network stream Solution for Xbox 360 as a Media Player for Ubuntu linux users

老规矩看中文往下拉

I've got my 360 for allmost 2 years, and I used to tried several UPNP Media server. most of them were no good for 360.

until I found the FUPPES and the PS3 Media Server.

Key Features for 360
PS3 Media Server: Transcode, Demux. subtitle support
FUPPES: transcode,360 Audio vfolder support.

Realtime transcoding a 720p Mkv file is OK for me :) but 1080p weren't

as you can see.
PS3 media server can handle Video and Pictures on 360, but not audio files
FUPPES can previde perfect audio support for 360.

so all we need to do is to compile install & config PS3 media server as a Picture and video server
FUPPES only configured as a Music Server.

Dependence:
1.PS3 media server is write on JAVA, so you need to install JRE 6 or later on your linux system
2.PS3 media server using mencoder (the mplayer component) to do transcode and demux. so you will need the latest mplayer to be installed.
3.FUPPES needs several codec libs, but you can download my binary build for ubuntu 32bit.

Installation:
1. Compile or download the Lastest Mplayer. you can see my previous post as a reference.
2. Compile or download (ubuntu deb 32bit) the FUPPES by follow this post. (you don't need the config file from that howto at all! we don't need the video section, I'll give you the config files only for auido)
if you downloaded my build of fuppes, just type
sudo dpkg -i fuppes_0.640-1_i386.deb
cd $HOME
mkdir .fuppes
them put these two config files in the folder you just created.
fuppes.conf vfolder.conf
use gedit to edit the fuppes.conf
find /var/ftp/music/audio and change the path to your music folder you can add two or three what ever you like.
find eth0 and change to your network interface name. use "ifconfig -a"
to find out your network interface name. in most case it's eth0 and you don't need to change it.
AND another thing I need you warn you! what xbox 360 do not support PCM/Wav input! only AC3, mp3, wma :( this may sounds ludicrous but it is. looks like M$ are trying to block you to stream PCM lossless data. they hope you to use WMA lossless format the only lossless audio formant that 360 support. so I've already turn the MP3 to 320kbps for quality in config file. (FLAC lossless format will convert into mp3 them stream to 360 console)

type in terminal
fuppes
and press "r" them "enter" to search & build database for music files in the configured path.
when it done, press "l" "enter" them "v" "enter" to generate the vfolder for your 360
start your 360 console and you may find your server and play music files.

3.download PS3 Media Server (a Java Program)
http://code.google.com/p/ps3mediaserver/downloads/list
extart the tgz file by using
tar -zxvf "filename"

copy the extracted folder to anywhere you like. enter the folder
type
sh PMS.sh
to start PS3 Media server
Goto General Configuration tab, choose the network interface at force networking on interface for me choose eth0
Force port of the server (I use 5081) the one follow the FUPPES, leave others empty
Goto Navigation /Share settings tab, and the folder you want to share your videos to 360. and you may hide #video settings# fold
GoTo Transcoding Settings tab
find Video filter engines select Mencoder (the component of Mplayer)
at custom options fill with "-nofontconfig -mc 0"
at subtitle codepage I recommend to use utf8 (but you need to keey your subs in utf-8 format)
specific truetype font for font you like (Asian User must select an asian font for display your language!)

make sure the ASS/SSA subtitle is unclicked!
and click the auto load "srt/*.sub" with the same file name

press the big save button at the top them quit!

retype sh pms.sh
and go to your 360 console.
you will see you mkv movies! and you will see a #Transcode# fold. go into the fold if you want choose another audio track or another subtitle track from the video file :)


太累了,中文下次写吧

Aug 16, 2009

Let Foobar load non-english UTF-8 Cue sheet in both wine and real windows

让 foobar 支持 UTF-8 编码的 cue 文件, 实现多语言显示
看中文往下拉:

I'm using foobar based on wine on ubuntu. but I found some problem for loading cue sheet in non-english language like russian....
I have to use UTF-8 format for multi-language support in cue sheet (convert them manually). but foobar doesn't recognize it. in linux, foobar still can't display russian. In windows, foobar can't load the utf-8 incoded cue sheet completely.

so looks like that foobar doesn't support utf-8 cue sheet. but it really support utf-8. but how? eh...? all I can tell is foobar is a fool bar... it can't detect utf-8 automatically. it need you to tell it you are loading a UTF-8 coded cue sheet. and you can tell it by adding a UTF-8 header (BOM) in the cue sheet.

add BOM in linux.
I havn't find a easy way yet. looks like that gedit don't have any options for UTF-8 BOM support. so you have to use a hex edit like madedit.

open the cue sheet by madedit. add 3 random letters before the first letter.


then switch to hex mode. overwrite the first 3 bytes (24 bit) as "EF BB BF". them save!


in Real windows, you can do the same thing with Ultraedit :)

them enjoy your UTF-8 coded cue sheet


最近下了一些俄文的 flac+cue. 发现 foobar 在 wine 和 windows 下都无法显示俄文,于是我将 cue 编码改成了 UTF-8. 写字板和 gedit 都能显示俄文了, 但是 foobar 就不认了,经过了解 其实 foobar 支持 utf-8 多语言显示的。 但是 cue 文件里要有 utf-8 他的文件头(BOM),没有头的utf-8 文件是不会设别成 utf-8 的所以就还是乱码或者无法播放。 目前我没有找到合适的简单的方法加这个头,只能用一些 hex 编辑器来手工加。 linux 下可以用 madedit, winodws 下 ultraedit.

方法很简单:
打开文件,在文件开始的地方随便安3个英文字母 (24 bit)一共

然后切换到 hex 编辑模式

将前3个 byte 改成 EF BB BF (这个就是 utf-8 的头)

然后 linux 和 windows 的 foobar 就认这个 utf-8 的 cue 了

Aug 9, 2009

How to & Download(ubuntu 9.04 based deb) - Enable Hardware Acceleration (VDPAU) on Ubuntu Linux 9.04 and play HD (1080p) for low CPU load

For Chinese reader please scroll down (看中文请往下翻)

still thinking vdpau don't support ass/ssa or need a patch? no that's history for now :)

Some basic things you need to know
1. Decode a movie in (H.264 or VC-1)1080p format is a very hard work for CPU, and old CPUs may not decode them smoothly.
2. Hardware Acceleration feature is feature offered by GPU. it helps CPU to do some of the work.
3. we need a software interface/driver to pass the video info to GPU, the interface called VDPAU (in windows it's DXVA from DirectX)
4. a special codec is needed to let GPU do the work not CPU. like [ffmpeg] is a codec to decode mpeg by using CPU, and [ffmpegvdpau] is a codec to decode mpeg by using GPU.

What kind of GPU can do such work On linux ? them check your hardware!
As I know for nVIDIA only these cards are support vdpau. so check before read any futrher
for ATI I don't know yet

and check your souldcard driver is OK! (better to use ALSA)

Installation:
1. Install the lastest Graphic driver from nVIDIA site (Im using 185.18.31)
http://www.nvidia.com/Download/index.aspx?lang=en-us
download the run file!

shut down the Xserver by type (need to be root or use sudo)
init 1
and choose netroot
if you are using fedora or redhat linux thats init 3

find your downloads and execute it!
sh xxxxxxx.run

for ubuntu users may receive a warning. you are in run level 1. ignore the warning by press no button. (cuz normal linux it should be run level 3 like fedora)

hit yes for all!

and get back the X server by type init 3 (fedora init 5)
check the system > preference NVIDIA X server Settings for you driver is working

2. Compile the mplayer or try your luck download my build
if you are using ubuntu 9.04 32bit, and have a Supported nVIDIA card. you may try your luck to download my mplayer build!
download my build
http://rapidshare.com/files/265452547/mplayer_SVN-r29482-4.3.3-1_i386.deb
you need to remove your old mplayer by using
dpkg -r mplayer
First!
and install it by type (need root or sudo)
dpkg -i mplayer_SVN-r29482-4.3.3-1_i386.deb
if you don't have the luck you may follow this topic to build it for yourself
http://ubuntuforums.org/showthread.php?t=1037625

3. config the SVN Mplayer (for people download my build)
I'll give you a sample config
create a folder for mplayer config file (need root or sudo)
mkdir /etc/mplayer

and download these two files them put them into /etc/mplayer/
Download mplayer.conf
Download mencoder.conf

type
sudo gedit /etc/mplayer/mplayer.conf
sudo gedit /etc/mplayer/mencoder.conf
uncommit (remove the "#")the font="xxxx" and fill up you favor font name for subtitles.
use fc-list for all fonts in your system.

now you can enjoy the HD movie will less CPU loads by type
mplayer

(as you can see VDPAU only work for MPEG,H.264,VC-1,WMV3 format)
other format still use CPU decode.

4. for the Mplayer skin SMplayer
Mplayer is a great command line based player, although it have a gui but it's not good enough to catch up the SMPlayer the Front-end GUI for Mplayer
try here to get the lastest version of SMplayer
http://smplayer.sourceforge.net/downloads.php?tr_lang=en
and here is a direct link for ubuntu 9.04 32bit users (not always lasteast)
http://ppa.launchpad.net/rvm/smplayer/ubuntu/pool/main/s/smplayer/smplayer_0.6.8-1~jaunty2_i386.deb

install by type (need root or sudo)
dkpg -i smplayer_0.6.8-1~jaunty2_i386.deb

5. config SMPlayer
clear the previous config file
cd $HOME
cd .config
rm -rf smplayer

press ctrl+P to enter options menu.
General -> video tab -> output driver CHOOSE vdpau!
General -> audio tab -> output driver user definded... and fill alsa, (DO NOT FORGET the LAST COMMA! the LAST COMMA meat use alsa first! if fail use something else!)
change the channel match your speak set!
Subtitles -> font and colors! press enable SSA/ASS subtitles!
if you are a chinese user like me, you may change the font to some "黑体" (I'm using WenQuanYi Zen Hei)
Advanced->Options for Mplayer tab-> options: fill this
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,xvid, (DO NOT FORGET the LAST COMMA! the LAST COMMA meat use alsa first! if fail use something else!)




中文部分:
关于在 Linux-ubuntu下开启nVIDIA芯片显卡硬件加速(错误俗称硬解码)的攻略

首先告诉中文读者一些常识,不存在 HD 硬解码 这种说法是错误的(是翻译导致的错误!),GPU 并不是传统意义的硬解码芯片,他需要软件接口引导,让GPU分担CPU一部分的工作,而不是纯硬件! 所以用英语翻译过来的解释应该 硬件加速! 而这个软件接口叫做 VDPAU (对应 windows 下就是 DirectX 里的 DXVA), 光光是用 VDPAU接口 并不能让 GPU 分担CPU 负荷,还需要专门的解码器(Codec)来引导GPU是用 VDPAU 加速能力. 一般这些 codec 都是以 vdpau 结尾的。 比如 ffmpeg 是一个普通的 CPU codec, 而 ffmpegvdpau 就是一个可以使用 GPU 的 codec 了。

在往下看之前,先确认 你的显卡是否支持 VDPAU 接口,再确认你声卡驱动是否安装好了
显卡支持列表 如果发现不支持,那就不要往下看了!

安装
安装最新的显卡驱动
去 nvidia 英文官方网站下载!
http://www.nvidia.com/Download/index.aspx?lang=en-us

之后运行 init 1 退出图形界面 (需要root 权限) 选择 netroot 进入命令行
找到刚才下载的文件运行之
sh 刚才下载的文件
ubuntu 用户会收到一个告警说 你在 run level 1, 因为 ubuntu 比较怪, 传统的 fedora 应该是 init 3 的。 无视这个告警继续,后面一路 yes!

安装好后 运行 init 2 回到图形界面

安装我提供的 mplayer-SVN deb 包 或者自己从 SVN 上下载源码编译。(如何安装 SVN 如何编译自己 google 吧或者看上面的英文版里的链接) (mplayer 新版本只能从 SVN 上获得,web上的版本是很旧很旧的,不支持很多东西 包括 VDPAU)
另外现在新的 mplayer-SVN 无须打 patch!
deb 下载
http://rapidshare.com/files/265452547/mplayer_SVN-r29482-4.3.3-1_i386.deb
(小心 GFW 出没!)

安装前先删除系统自带的古老的 mplayer. 命令
apt-get remove mplayer smplayer
安装下载来的 deb
dpkg -i mplayer_SVN-r29482-4.3.3-1_i386.deb

配置 mplayer
我给的 mplayer 安装好后没有默认配置文件,添加默认全局配置 (root 权限)
mkdir /etc/mplayer

然后下载这2个文件,并放到刚才创建的 /etc/mplayer/ 下
Download mplayer.conf
Download mencoder.conf


sudo gedit /etc/mplayer/mplayer.conf
sudo gedit /etc/mplayer/mencoder.conf
找到 #font="xxxxx" 这里
去掉前面的# 然后将里面的字体名换成你喜欢的字体 (英文名,不要写中文名)(中文字体才能显示中文)
如果要获得你系统里的字体 在终端里敲
fc-list 就能找到所有字体


支持 mplayer 安装完毕。 运行 mplayer 视频文件 就能看了

接下来安装 Mplayer 的皮 SMplayer
去这里下载最新版 smplayer (ubuntu 自带的老了,和新的mplayer 搭配会出错)

http://smplayer.sourceforge.net/downloads.php?tr_lang=en
选择你要的版本
http://ppa.launchpad.net/rvm/smplayer/ubuntu/pool/main/s/smplayer/

我是 32bit 的ubuntu 9.04 所以选
smplayer_0.6.8-1~jaunty2_i386.deb

安装一样
dpkg -i 下来的文件

配置 smplayer
先删除原来 老的 smplayer 配置
cd $HOME
cd .config
rm -rf smplayer

在菜单里找到并启动 smplayer
按 ctrl+P 开启 options 界面
General -> video 表项 -> output driver 选 vdpau! 没有就 user define 自己输入 vdpau, (不要忘记有逗号)
General -> audio 表象 -> output driver user definded... 输入 alsa, (不要忘记有逗号)
选择适合你声卡的声道 默认 2 Channel to 2 or 4 or 6
Subtitles -> font and colors! 按 enable SSA/ASS subtitles!
中文用户更换自己到自己喜欢的黑体 (我用 WenQuanYi Zen Hei)
Advanced->Options for Mplayer tab-> options: 填入
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,xvid, (不要忘记以逗号结尾!)
好了配置完成了!

Jul 29, 2009

Now I decided to make a DELL Inspiron 530S into an HTCP

最近开始折腾 5.1 系统,毕竟丈母娘给买了个 9000 块的 电视机 自己也买了套 DENON AVR-1610 功放。 怎么也要把这套东西达出来能用。 由于 PS3 支持的文件格式有限,所以只能考虑 HTPC. 自己装 HTPC 貌似很麻烦,要选机箱还要选主板。 最终目标是 选用 ATI HD 4 系列的显卡 HDMI 输出AV信号到功放。

正好我给我爸买的 DELL Inspiron 530S 是 MATX 板子,箱子也蛮漂亮,放在电视柜上也不会太难看,关键是噪音小!就让老爸用我的 Linux Server 吧 囧,最多给它装回 XP...

看看这是原来面目
打算给它加读卡器和独立显卡和无线键盘鼠标,就完美啦





Jul 27, 2009

The Place you can buy Home Audio Video system in Shanghai

最近家里装房子,正好有一套喇叭空闲着,于是想找个功放,也体验一下5.1 的效果, 于是开始关心上海的音响市场的位置。在网上搜索了下,基本有如下几家。

人民广场南京路附近的 丽影音响广场
具体地址我就不用文字表述了,看 Google Map 最直观了 还有 照片
Panoramio 照片

这家里面非常萧条,顾客稀少,店家装修都不错,据说是 上工批那里般出来的。 问了几家价钱还可以,没乱开价。

还有就是老的上海一百那里,现在叫 上工批音响通讯市场
具体位置看 Google Maps, Panoramio 照片
这家里面比上面那家顾客稍微多一点, 货也多点, 总体来说也是非常萧条的。 价格应该也是实惠的。

还有么就是曲阳商务中心了
Google MAP
这是一家综合家电商场,里面人比较多,里面机型可能是断档的,某些新机型没有的。

至于徐家汇那个个人觉得那里房租应该最贵的,所以价格也不会实惠。店家也少,故没有去看.

Jun 30, 2009

LockOn in movie [Street Fighter: The Legend of Chun-Li]

Lockon is my favor Modern fighter simulator. and It bumped into a movie called [Street Fighter: The Legend of Chun-Li] :D

I wonder if it's Eagle Dynamic's advertisement? hoho

AeroDancer@CHINA Web site

http://aerodancer.vicp.net/
My Homepage about
the Best Flight sims on Console and Lockon Topics