Chinese Handwriting for Nexus S

Just got a Nexus S as it was on sale for HKD2858. One thing I missed was the Chinese handwriting on my old HTC Magic. Well... thank god so many ppl are hacking Android. Went to google "HTC中文輸入法 GingerBread/Froyo" and got the input method install in no time.

Posted by clarence Tue, 05 Jul 2011 14:49:00 GMT


M-audio Revolution 5.1 under Win7 x64

最後,原來win7係可以用vista driver 的說... 唔洗攪咁多野... orz...

之前由於 m-audio rev 5.1 唔出 windows 7 x64 driver, 所以要係底板出 spdif 用住先...

今日終於頂唔住, 上去 VIA 到 download Envy24GT driver, 諗住冇左 m-audio control panel, 有聲出都好過冇:

installation:
  • open device manager
  • right click on M-Audio Revolution 5.1 and select "Update Driver Software..."
  • Select "Browse my computer for driver software"
  • Select "Let me pick from a list of device drivers on my computer"
  • Click "Have Disk..."
  • Browse to the correct map (in my case it was Envy24_Family_DriverV540a\VIAEnvyAud\Drivers\V64WD M)
  • Select the "Envy24 Family Audio Controller WDM" and click "Next"


係ok work... 不過 by default, 個 device 只係可以 support 48kHz sample rate. 明明 hardware support 都唔放埋 44.1, 192 etc 出黎. 攪到播 CD 的話唔係好掂... 於是要改 registry

小弟只係用佢黎聽歌, 所以改左 VA_CPLSelectSR 做0x08 (44.1 kHz). 改完 reboot... 個 device 就有番 44.1 俾我選... 依家用緊 foobar WASAPI 出 spdif, 音場 and 動態明顯全勝 onboard.

Posted by clarence Tue, 22 Mar 2011 16:09:00 GMT


電腦底板出 S/PDIF COAX 同軸

之前一直用開 m-audio Revolution 5.1 係電腦聽歌. 但自從上左 Windows 7 之後就要用 on-board audio, 事關 m-audio 唔出 Win7 64bit driver...

今日終於"的"起心肝, 揾番部封晒塵 hifidiy.net Mini USB DAC 出黎. 心目中駁法係一雞兩食: USB audio 果 part 用黎打機 / youtube 等等, S/PDIF 果 part 就専俾 foobar2k 播歌. 不過問題係我用緊塊底板 S/PDIF 只係有 TOSLINK 光纖 out, 但係部 DAC 只係有 COAX 同軸 in.

其實, 依家好多底板都有 S/PDIF pin-out:
01

網上有人直接係 SPDIFOUT 同 GND 拉線出 RCA 頭當 COAX out. 但底板好多時都係出 TTL 而唔係 COAX signal. 雖然 signal format 係一樣, 但 TTL 通常係 5 volt 而 COAX 係 under 1 volt. 如果部 DAC 唔識 handle 的話, 可能會燒機的說.

要 DIY 一個 TTL -> COAX converter 唔難, 網上有好多唔同方法. 參考 Asus 自家出的 module:
02

相信大部份綫路都係用黎出 optical. 留意同軸出口附近只係有三粒貼片原件. 如果冇估錯, 佢就係文中提到的 "Simplest TTL to S/PDIF coax interface":
03

於是用手上的剩件照做:
04

cable 係用舊 cd-rom audio out cable. 手上冇 330ohm 電阻, 用兩粒加夠:
05

試左一日... so far so good...
06

(Using AD8620 for the LPF part and AD823 for headamp part)

Posted by clarence Sun, 06 Feb 2011 11:13:00 GMT


Taio Cruz - Dynamite (Int'l Version)

Posted by clarence Sun, 10 Oct 2010 13:46:00 GMT


Arduino with two 7x5 LED matrix

Using Arduino with 74HC595 and 74HC238 to control the LED matrix

Posted by clarence Wed, 08 Sep 2010 14:02:00 GMT


DLNA firewall setup

notes to self... to setup DLNA...

ipfw add pass all from any to 239.0.0.0/8 in via re0 keep-state
ipfw add pass all from any to 239.0.0.0/8 out via re0 keep-state

route add -net 239.0.0.0 -netmask 255.0.0.0 -iface re0

Posted by clarence Sat, 31 Jul 2010 06:10:00 GMT


MSN "now playing" plugin for foobar2000 (version 0.6)

This is version 0.6 of the plug-in. Fixed the bug that MSN displayed garbage when foorbar was closed during music playing.

This plug-in is for the foobar2000 music player. It sends the song information to MSN Messenger for display.

The component is available here.

Save the file under the components directory of foobar2000 (e.g. C:\Program Files\foobar2000\components) and restart the program. There will be a new item added under the Playback menu. Select the format of info that you want to show on MSN. Also remember to turn on the "Show what I'm listening to" feature on your MSN Messenger.

The C++ source code is also available. You will need to download the foobar2000 SDK in order to build it.

1
2

Posted by clarence Sun, 11 Jul 2010 14:13:00 GMT


Android Safe 1.0.2

1

Android Safe 1.0.2 released today. No new feature or bug fix. This release is mainly for speed improvement.

I picked to implement an encryption program as my first Android application because (besides the fact that I have a real need to replace my Palm application MemoAES) I need to have an excuse to play with native programing on Android! :P I also picked a secure and computationally expensive key generation method: PBKDF2 with 1024 rounds (!) of iteration and a 256-bit key output for AES.

Both Android Safe version 1.0.0 and 1.0.1 used pure Java implementation. The Dalvik VM isn't really that bad. The key generation process took around 3 seconds. But since each of the notes in Android Safe is encrypted with different salt, that essentially translate to the fact that they are using different keys. So each open, save, and import (with different password) action requires at least one call to the PBKDF2 algorithm. The user experience is acceptable, but not that good.

Using Android NDK, the PBKDF2 part is rewritten with JNI (in C) for version 1.0.2. The speed improvement is over five-folds. Below is some test data I collected when testing the algorithm with test vectors found in RFC3962. Each test executed three times with the average taken as the result.

PBKDF2 Speed Tests using test vectors from RFC3962. (Pass phrase = "password". Salt="ATHENA.MIT.EDUraeburn")
  1200 iterations 2 iterations
128-bit JNI 330ms 3ms
128-bit Java 1864ms 9ms
256-bit JNI 632ms 11ms
256-bit Java 3495ms 97ms


2

Posted by clarence Thu, 17 Jun 2010 13:44:00 GMT


Android Safe

1

Encrypt notes with 256-bit AES. Keys are based on PBKDF2 with 1024 iterations and 256-bit salt. Export/Import encrypted notes to external storage. Share the encrypted messages via emails. Online tool available to decrypt the message without using Android.

2 3 

4

Posted by clarence Sun, 13 Jun 2010 03:51:00 GMT


中秋羊

買件無骨羊肩, 醃左佢

1
2

再加薯角... 咁又一餐!

3

同場加演, 肥死你牛油磨菇...

4

... 唔少得啤酒!

5

肥。到。冇。朋。友!!!
6

Posted by clarence Sat, 03 Oct 2009 13:14:00 GMT


Older posts: 1 2 3 ... 22