This is a bug in android system.
scrollview.scrollTo(x,y)
doesn’t always work.
Use this instead when you do codings:
scrollview.post(new Runnable() { public void run() { scrollview.scrollTo(x,y); } });
Tech Businesses, Entrepreneurship, Fintech, Cloud Cybersecurity & Architectures, Products & Projects
This is a bug in android system.
scrollview.scrollTo(x,y)
doesn’t always work.
Use this instead when you do codings:
scrollview.post(new Runnable() { public void run() { scrollview.scrollTo(x,y); } });
Can’t delete device in Eclipse solution:
1. Open Terminal, go to ~/.android/avd
2. Remove the <name>.ini file
3. Remove the <name>.avd folder
That’s it.
Testing device:
Galaxy Note 2, Android 4.1.1
iPod touch 4, iOS 6.0.1
Steps:
留意:若閣下對負面感受較少免疫力,請勿閱讀此文。下文會對人情感中的負面素材提出反思。
此敝稱之為 “闇道”。
————————-
不喜歡下雨天。
曾經,很喜歡下雨。下雨讓人寧靜,下雨讓人體會浪漫,下雨讓人清新。
但是,到社會越來越扭曲,就很不一樣。
下雨總被打傘的人刮到:社會變得人只顧自己而忽略別人;
下雨總要冒雨等著貪婪的車輛駛過去:很少見有車留意到你冒雨而停下讓你先過;
下雨總遇上濕滑的梯級:途人總為方便,以為自己沒有袋好的傘不會滑倒老人家。
有時,下雨天會讓我問:下雨天人都不理會旁人,若有一天世界末日,情況更不堪設想。
倒數末日緣結時 就是以此為反思而構思的電影。
電影中人類面對不能逃生的末日,濫藥、酗酒、放蕩、自毀。既然沒有明天,也不用對任何事負責。
片中瀰漫恐懼的絕望滋味,而故事就建構在這絕望感上。
和朋友閒談中說過:認識一個人,從他的恐懼與憂慮開始。
因為,恐懼與憂慮是人最強烈的情緒;
因為,這兩種情緒可看到他的底線;
因為,這兩種情緒可看到他的價值觀;
因為,這兩種情緒對某些人是等同生存意義。
基本上,明白一個人的恐懼與憂慮,等於認識他整個性格結構。也能懂得如何好好和他做朋友。
是不是所有的人都有恐懼?
Marvel的蝙蝠俠的人設,就是一個心理質素完美而沒有恐懼的人。
現實和歷史上,耶穌是沒有恐懼的人。
或者說,就算是普通人,在聖靈裡禱告、行在道中的人,是沒有恐懼的。
他們(包括普通人和耶穌) 偶有恐懼,但藉著禱告就將那道力放出去離開身體。
或者説,從禱告看,適度的恐懼也是好的,保護人免受傷害。
--從這,禱告中看,無論恐懼不恐懼也是好的。就此使人連對「要避開恐懼的恐懼」也擺脫了:恐懼最恐佈最有殺傷力的地方,是連要戰勝恐懼/不恐懼,本身也是一種恐懼。
而當人藉禱告與靈修活在聖靈裡,聖靈持續不斷的更新醫治與使人成聖,也使人隨年越來越對恐懼和憂慮免疫。
恐懼,本身是一道能扭曲人類行為的力量。
所以,要使人能做回自己,做出正確選擇,在於放開恐懼的枷鎖。
哲學與信仰,曾對此作出討論。不贅。
電影到最後,主角克服心理磨難,做完最好的選擇,迎接末日。
後半有一段妙處。整套電影不談信仰,所有主角都是無信仰人仕。故事後半段男女主角在海灘遇到一班替人施洗的人,電影的氣氛從劇烈的絕望感轉眼變成喜樂與愛。
全沒半句教義,主角有沒有受洗也沒交代。但信仰的真諦不言而諭。
筆畢•2012-12-07
2012世界末日前兩週 😛
Recursively delete a directory in all folder.
e.g. ".svn" folder
$ find . -type d -name .svn | xargs rm -rf
or
$ find . -name ".svn" -exec rm -rf {} \; // Credit: Zed Shaw, at the Mongrel mailing list.
To set path in mac, use the following commands
1. Check current PATH settings
echo $PATH
2. Set PATH temporarily
export PATH=$PATH:/path/
3. Set PATH permanently for USER
pico ~USER/.bash_profile
(insert this line to the file) PATH=$PATH:/path/
4. Set PATH for All Users on the mac
sudo pico /etc/paths
(insert this line to the file) PATH=$PATH:/path/
Decompiling Android .apk
Scenario 1: get the string & gfx
1. Use some app e.g. ES File Explorer to extract the apk to the computer.
2. Use apktool. Download from http://code.google.com/p/android-apktool/. apktool and apktool-install-macosx.
3. do apktool d your_apk.apk
Scenario 2: get the source code
1. Same as step 1 above.
2. dex2jar : http://code.google.com/p/dex2jar/downloads/list. JD Decompiler http://java.decompiler.free.fr/?q=jdgui
3. unzip the apk to get to the classes.dex
4. dex2jar.sh classes.dex
5. drag the classes_dex2jar.jar to JD Decompiler.
Done.