2014年1月19日 星期日

[ Android ] : 10MinNews, dedicated app for CNN 10

Update : 2020/02/21

App Name : 10MinNews

Newest version : 1.4

App Type : English Learning / News

Install : install page

Download apk:from google cloud

簡介 :
追蹤最近 60 天 CNN 10 的影片與簡稿;
可以邊看影片邊看簡稿比對學習,幫助你增加英文的聽讀能力。

Introduce :
Trace latest 60 videos & scripts of CNN 10.
You can watch video & script at same page / at same time.
Easily enhance your English reading & listening abilities.

主要功能包括 :
- 下載影片與簡稿到本地後可離線操作。
- 選取簡稿單字,翻譯並紀錄。
- 分享你的單字筆記。

Main Features include :
- You can download video & script to do offline learning.
- You can select a word to translate, to take a note.
- You can share your note.

Demo Pictures :






2013年10月8日 星期二

[ Apple ] : part of MFi ?

From MFi team reply (2013/10/08)

============================================

The MFi Program encompasses third-party hardware accessories which use Apple's licensed technology to connect electronically to iPhone, iPad or iPod. MFi licensed technology includes:

    - Lightning and 30-pin connectors
    - Authentication coprocessors
    - iPod Accessory Protocol, the protocol used to communicate with iPhone, iPad and iPod
    - AirPlay audio technology
    - Apple Wireless Accessory Configuration feature
    - Apple Headphone Remote and Mic system

Non-electronic cases and accessories which do not use MFi licensed technology are not part of the MFi Program. 

MFi Apac Support


============================================

2013年10月7日 星期一

[ Ubuntu ] : Explorer 右鍵 open ternimal


sudo apt-get install nautilus-open-terminal

2013年9月3日 星期二

[ C / C++ ] : Byte Array to Hex String


     int index;
     char hexString[512];

     memset(hexString, 0x0, sizeof(hexString));
     for (index = 0; index < byteArray.length; ++index) {
          sprintf(hexString+index*3, "%02X ", byteArray[index]);
     }

     printf("Hex String : %s\n", hexString);

2013年8月12日 星期一

[ Android ] : Monkey test

example :

adb shell monkey -p com.package.name --throttle 100 -s 43686 -v 50000

-p           : package name
--throttle : interval between event
-s           : random seed
-v           : number of simulated event

others:
================================================================
usage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...]
              [-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...]
              [--ignore-crashes] [--ignore-timeouts]
              [--ignore-security-exceptions]
              [--monitor-native-crashes] [--ignore-native-crashes]
              [--kill-process-after-error] [--hprof]
              [--pct-touch PERCENT] [--pct-motion PERCENT]
              [--pct-trackball PERCENT] [--pct-syskeys PERCENT]
              [--pct-nav PERCENT] [--pct-majornav PERCENT]
              [--pct-appswitch PERCENT] [--pct-flip PERCENT]
              [--pct-anyevent PERCENT] [--pct-pinchzoom PERCENT]
              [--pkg-blacklist-file PACKAGE_BLACKLIST_FILE]
              [--pkg-whitelist-file PACKAGE_WHITELIST_FILE]
              [--wait-dbg] [--dbg-no-events]
              [--setup scriptfile] [-f scriptfile [-f scriptfile] ...]
              [--port port]
              [-s SEED] [-v [-v] ...]
              [--throttle MILLISEC] [--randomize-throttle]
              [--profile-wait MILLISEC]
              [--device-sleep-time MILLISEC]
              [--randomize-script]
              [--script-log]
              [--bugreport]
              [--periodic-bugreport]
              COUNT
================================================================

2013年8月8日 星期四

[ Wi-Fi ] : set Tx power of wireless card


Ubuntu 12.04 test OK!

===========================
example :

set Tx-Power in dBm :
iw dev wlan0 set txpower fixed 0
iw dev wlan0 set txpower fixed 30

restore to default:
iw dev wlan0 set txpower auto

===========================

also to test this (work too):

iwconfig:
iwconfig wlan0 txpower 0
iwconfig wlan0 txpower 17

2013年8月4日 星期日

[ Ubuntu ] : login as root

for ubuntu 14.04

1. set password of root :

# sudo passwd root

2. add a line to file:

# sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
add to last line:

greeter-show-manual-login=true

3. restart

============================

for ubuntu 10.04
1. set password of root :
 
# sudo passwd root

2. restart

============================

for ubuntu 12.04
1. vim /etc/lightdm/lightd.conf
2. add to last line
    "greeter-show-manual-login=true"