2010年10月28日 星期四

綠角 基金成本 相關的 手續費、經理費....與成本的危害

如何查詢基金的總開銷數字(How to Find the Expense Ratio of Mutual Funds)
http://greenhornfinancefootnote.blogspot.com/2010/11/how-to-find-expense-ratio-of-mutual.html

基金成本大解剖(Detailed Analysis of Fund Expenses)
http://greenhornfinancefootnote.blogspot.com/2007/08/detailed-analysis-of-fund-expenses.html

手續費與佣金只是總成本之一(Fees and Commissions Are Only Part of Total Costs)
http://greenhornfinancefootnote.blogspot.com/2010/05/fees-and-commissions-are-only-part-of.html

經理費不等於總開銷
http://greenhornfinancefootnote.blogspot.com/2007/08/blog-post.html

如何將別人的資產轉到自己名下(License to Steal)
http://greenhornfinancefootnote.blogspot.com/2007/11/license-to-steal.html

常見的投資謬思---賺小錢才要注重成本(For Every Investor, Cost Matters.)
http://greenhornfinancefootnote.blogspot.com/2008/08/for-every-investor-cost-matters.html

常見的投資謬思---長期與短期投資的分別(Holding Period vs Investment Time Horizon)
http://greenhornfinancefootnote.blogspot.com/2008/07/holding-period-vs-investment-time.html

付出愈少,拿得愈多(付出愈多,拿得愈少)(The More You Pay, The Less You Get)
http://greenhornfinancefootnote.blogspot.com/2008/07/more-you-pay-less-you-get.html

常見的投資謬思總目錄
http://greenhornfinancefootnote.blogspot.com/2008/08/blog-post.html

資產配置初步(Asset Allocation in Essence)總目錄
http://greenhornfinancefootnote.blogspot.com/2008/07/asset-allocation-in-essence.html

2010年10月21日 星期四

Find ioremapped virtual addr by /proc/vmallocinfo

Documentation/filesystems/proc.txt

vmallocinfo:

Provides information about vmalloced/vmaped areas. One line per area, containing the virtual address range of the area, size in bytes, caller information of the creator, and optional information depending on the kind of area :

pages=nr number of pages
phys=addr if a physical address was specified
ioremap I/O mapping (ioremap() and friends)
vmalloc vmalloc() area
vmap vmap()ed pages
user VM_USERMAP area
vpages buffer for pages pointers was vmalloced (huge area)
N=nr (Only on NUMA kernels)
Number of pages allocated on memory node

> cat /proc/vmallocinfo
0xffffc20000000000-0xffffc20000201000 2101248 alloc_large_system_hash+0x204 ...
/0x2c0 pages=512 vmalloc N0=128 N1=128 N2=128 N3=128
0xffffc20000201000-0xffffc20000302000 1052672 alloc_large_system_hash+0x204 ...
/0x2c0 pages=256 vmalloc N0=64 N1=64 N2=64 N3=64
0xffffc20000302000-0xffffc20000304000 8192 acpi_tb_verify_table+0x21/0x4f...
phys=7fee8000 ioremap
0xffffc20000304000-0xffffc20000307000 12288 acpi_tb_verify_table+0x21/0x4f...
phys=7fee7000 ioremap
0xffffc2000031d000-0xffffc2000031f000 8192 init_vdso_vars+0x112/0x210
0xffffc2000031f000-0xffffc2000032b000 49152 cramfs_uncompress_init+0x2e ...
/0x80 pages=11 vmalloc N0=3 N1=3 N2=2 N3=3
0xffffc2000033a000-0xffffc2000033d000 12288 sys_swapon+0x640/0xac0 ...
pages=2 vmalloc N1=2
0xffffc20000347000-0xffffc2000034c000 20480 xt_alloc_table_info+0xfe ...
/0x130 [x_tables] pages=4 vmalloc N0=4
0xffffffffa0000000-0xffffffffa000f000 61440 sys_init_module+0xc27/0x1d00 ...
pages=14 vmalloc N2=14
0xffffffffa000f000-0xffffffffa0014000 20480 sys_init_module+0xc27/0x1d00 ...
pages=4 vmalloc N1=4
0xffffffffa0014000-0xffffffffa0017000 12288 sys_init_module+0xc27/0x1d00 ...
pages=2 vmalloc N1=2
0xffffffffa0017000-0xffffffffa0022000 45056 sys_init_module+0xc27/0x1d00 ...
pages=10 vmalloc N0=10


0xbf000000-0xbf002000 8192 load_module+0x518/0x123c pages=1 vmalloc
0xbf006000-0xbf00b000 20480 load_module+0x518/0x123c pages=4 vmalloc
0xbf00f000-0xbf012000 12288 load_module+0x518/0x123c pages=2 vmalloc
0xbf016000-0xbf01b000 20480 load_module+0x518/0x123c pages=4 vmalloc
0xbf01f000-0xbf021000 8192 load_module+0x518/0x123c pages=1 vmalloc
0xd080b000-0xd0817000 49152 cramfs_uncompress_init+0x2c/0x6c pages=11 vmalloc
0xd0818000-0xd085b000 274432 jffs2_zlib_init+0xc/0xa8 pages=66 vmalloc
0xd085c000-0xd0868000 49152 jffs2_zlib_init+0x38/0xa8 pages=11 vmalloc
0xd087a000-0xd087c000 8192 __arm_ioremap_pfn+0x5c/0x160 ioremap
0xd0888000-0xd088a000 8192 __arm_ioremap_pfn+0x5c/0x160 ioremap
0xd1000000-0xd9001000 134221824 __arm_ioremap_pfn+0x5c/0x160 ioremap

2010年10月20日 星期三

git log --stat --oneline --no-merges

http://lkml.org/lkml/2010/10/6/406


Git hint of the day: do
git log --stat --oneline --no-merges v2.6.36-rc6..v2.6.36-rc7
to get a dense view of the commits and visually pick out the ones
that aren't trivial one-liners

2010年10月19日 星期二

2010年10月18日 星期一

Android Development

Android 淺探 (一), 2010
http://mmdays.com/2010/08/27/android-1/

DiveIntoAndroid
深入淺出 Android -- Google 手持設備應用程式設計入門
http://code.google.com/p/androidbmi/wiki/DiveIntoAndroid



Ubuntu 8.04, eclipse 3.2.2

apt-get install eclipse openjdk-6-jdk

Download the ADT Zip File
http://developer.android.com/sdk/adt_download.html

[Help] -> [Software Updates] -> [Find and Install] -> [Search for new features to install]
  1. use already downloaded ADT: [New Local Site] -> (selet the path of the file)
  2. download the file online: [New Remote Site] -> (Name: ADT; Location: http://dl-ssl.google.com/android/eclipse/site.xml)
(select ADT, and the other two (Callisto Discovery Site, The Eclipse Project Updates)) -> [Finish] -> [Update Site Mirrors: chosse a site] -> [OK]
(Select ADT, if dependency error exist, select [Select Required])

[Window] -> [Preferences] -> [Android] -> (provide the path of the Android SDK) -> [Apply]
(error: An internal error occurred during: "Android SDK Content Loader")

[Window] -> [Android SDK and AVD Manager]

Andriod 筆記(Run Application, build Image)
http://blog.richliu.com/2009/01/09/681/

Android & Eclipse 開發環境 - 第一次安裝筆記
http://changyy.pixnet.net/blog/post/24081323

Android 開發環境安裝、設置 與 開發
http://plog.longwin.com.tw/my_note/2010/10/01/android-devel-env-install-2010

Android - A beginner's guide
http://www.codeproject.com/KB/android/AndroidGuide.aspx

Introduction to Android Development
http://mobile.tutsplus.com/tutorials/android/introduction-to-android-development/


Python for Android (ASE: Android Scripting)
http://plog.longwin.com.tw/news-technology/2010/07/19/python-for-android-ase-script-2010

2010年10月16日 星期六

Google DevFest 2010

Google DevFest 2010
https://sites.google.com/site/devfestapac/taipei/sessions

Introduction to Google Maps API *

Speaker: Bill Luan
This is a session to introduce Google Maps API technologies. Topics covered in this session include the history and vision of Google Maps and Maps API, Google Maps API technologies fundamentals, application development using Google Maps API with JavaScript, as well as geo-doing, LBC, advertisement opportunities using Google Maps, and showcases of some featured web sites around the world using Google Maps API for business innovations. A brief introduction of migrating to Maps API 3 will also be covered.


* Session will be given in Mandarin.

Lab Sessions

All attendees are expected to have their own laptop computers and power supplies to participate in the lab sessions. For all lab sessions, check pre-requisites. Lab sessions will take place in the classrooms outside the auditorium. Note that the Android lab sessions also include some lecture material that goes deeper into a specific topic. All seating is first come, first served and availability is not guaranteed.

For help with Android pre-requisites, see below:



  • Google_Maps_API_Intro_English_TW_DevFest_BillLuan.pdf - on Oct 12, 2010 8:33 AM by Stephanie Liu (version 1)
    2542k View Download

2010年10月9日 星期六

Android Basics and Image Updating

黑客前的必備知識
http://wiki.cheyingwu.tw/Android/Hack-area/Introduction-hacking

工程模式
http://wiki.cheyingwu.tw/Android/Hack-area/Engineering-Bootloader-and-fastboot

各機種進入 Recovery 模式及 Fastboot 模式的方法
http://wiki.cheyingwu.tw/Android/Hack-area/Devices-into-Fastboot-and-Recovery-model

HTC
Dream/T-Mobile G1/Android Dev Phone 1 (ADP1)
* Revocery Model
o Home + Power
* Fastboot
o Camera + Power


Recovery-utility (以「recovery utility」的方法更新系統。)
http://wiki.cheyingwu.tw/Android/Hack-area/Recovery-utility

擷取 Android 手機畫面 - 下載並安裝 Android SDK
http://wiki.cheyingwu.tw/Android/Get-screenshot-on-andrioid
Download the Android SDK
http://developer.android.com/sdk/index.html

ADP1-to-Android-1.1
http://wiki.cheyingwu.tw/Android/Archive/ADP1-to-Android-1.1
Flashing your Android Dev Phone with a Factory System Image
http://developer.htc.com/adp.html



[wiki] Android - Update history
http://en.wikipedia.org/wiki/Android_%28operating_system%29#Update_history


Setting up a Device for Development
http://developer.android.com/guide/developing/device.html#setting-up
If you're developing on Ubuntu Linux, you need to add a rules file that contains a USB configuration for each type of device you want to use for development. Each device manufacturer uses a different vendor ID. The example rules files below show how to add an entry for a single vendor ID (the HTC vendor ID). In order to support more devices, you will need additional lines of the same format that provide a different value for the SYSFS{idVendor} property. For other IDs, see the table of USB Vendor IDs, below.
  1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules.

    For Gusty/Hardy, edit the file to read:
    SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

    For Dapper, edit the file to read:
    SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"

  2. Now execute:
    chmod a+r /etc/udev/rules.d/51-android.rules



[wiki] CyanogenMod
http://en.wikipedia.org/wiki/CyanogenMod

CyanogenMod Wiki
http://wiki.cyanogenmod.com/index.php?title=Main_Page

The Rom Bible
http://forum.xda-developers.com/showthread.php?t=668090

[Recovery] [15-May-2010] RA-dream-v1.7.0 (also for the Rogers Dream)
http://forum.xda-developers.com/showthread.php?t=566669


SPL
http://code.google.com/p/android-roms/wiki/SPL

[HOW-TO] Haykuro SPL, Danger SPL, Death SPL FOR DREAM/G1
http://forum.xda-developers.com/showthread.php?t=625886

android-roms: label:SPL
http://code.google.com/p/android-roms/downloads/list?q=label:SPL


[Radio] Radio Image update 2.22.23.02
http://forum.xda-developers.com/showthread.php?t=640535



sapphire-port-dream
This page is for Haykuro's custom ROMS for the G1.
http://code.google.com/p/sapphire-port-dream/