青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

2008年8月13日

一直收藏著laok的blog ,講基金的blog,還知道他有一本《我的投資觀和實踐》,想著有一天要買基金了就好好研究一下的。
今天沒事的時候翻了幾篇,看著看著有了感覺,最后忍不住就手癢去招行實踐了一把,于是我就這么也成為了“基民”。

看過的幾篇做個筆記:
  • 1,該把多少存款用來投資?
    年齡越大越應(yīng)該保守
    建議:30歲,30%的資產(chǎn),各種投資不超過70%;40歲,儲蓄40%,投資60%;60歲,儲蓄60%,投資40%。
    這個意見基本上和《奔奔族理財》意見一致,也很合理。

  • 3, 第一只基金買甚么?
    建議第一只基金去買貨幣基金。 貨幣基金再怎么買也不會有損失
    • 首先取決于你的風(fēng)險承受能力和你準(zhǔn)備投資的年限,先要確定投資甚么基金品種;
    • 再確定是哪個公司的哪種基金。選擇晨星評級至少4星以上的;
    • 不能以短時間論英雄;三個月,甚至半年以內(nèi)的排位我認(rèn)為沒有任何意義。
    指數(shù)基金不推薦,因為中國市場不夠規(guī)范(美國的市場基本上是有效的,但中國的市場恐怕連半有效市場都不是)
    新基金不是個好選擇;老牌基金公司下的老牌勁旅基金恐怕是一個好選擇

  • 5,關(guān)于基金定投
    我采用的是一次性投入和定投結(jié)合的辦法。
    當(dāng)我第一次把銀行的存款投入基金的時候,我基本采用的是一次性投入(實際上我是在較短的時間分批投入的,這樣降低偶然漲跌影響)。
    而后來每個月的結(jié)余工資是采用定投的方式來存養(yǎng)老金。

    定投最大的好處實際上是心理上的。
    定投就可以逼迫你克服你的貪婪。這是一種強(qiáng)制性的非常有紀(jì)律性的投資方式,別去考慮股市的漲跌,也不要試圖抓住這種漲跌。
    要注意嚴(yán)格的投資紀(jì)律性在投資上是非常重要的。
    嗯,定投是很合理的選擇啊,雖然波段的誘惑很大。。。

  • 13,我為什么選擇廣發(fā)和上投
    評價一個基金公司的好壞,可以看他所有的基金的平均水平。
    主要參考某家基金公司所有產(chǎn)品在晨星的評級,如果多數(shù)是5星的基金品種,說明這家基金公司整體水平不錯。
    感覺和taobao上挑賣家差不多。。。

  • 31,再說定投
    一個模擬的例子說明定投收益最終好于一次性投入
    英文中定投稱為dollar-cost average方法
    如果你要長期投資,按照普遍的認(rèn)為,大盤是長期向上的,在這個向上的趨勢上有很多短期的波動。那定投實際上就是平滑了這種波動,最后得到一個平均效益。
    定投不是最好的長期投資方案,但如果你沒有那么多資金進(jìn)行一次性投資,例如你是從每個月的收入中提取一部分,定投則是非常好的選擇。

    無論市場是牛是熊還是猴,定投都是一個不錯的辦法,這是我的觀念。

  • 15,給基金新手的一些建議
    推薦:基金投資入門系列貼匯總【新手必讀】
    這篇還沒看完,蠻系統(tǒng)的介紹了入門,這個以后回來重讀。。。
    另外提到的這篇入門貼,重點看了里面介紹貨幣基金的部分。總之貨幣基金就是風(fēng)險小回報小,基本可以用來代替存款的東西吧


其余的翻了幾篇,有涉及到技術(shù)/數(shù)字分析方面的,沒仔細(xì)推敲。一方面也是看了上面的幾篇已經(jīng)心癢癢了,呵呵

于是照搬了幾條意見,去招行還有晨星逛了逛,最后就選定了嘉實貨幣 這只。主要是:
  1. 肯定選一只貨幣基金;另外現(xiàn)在股票市場還太混亂,看不清,感覺貨幣基金也穩(wěn)妥些。
  2. 投入不多,不超過所有資金的1/5
  3. 看了嘉實的其他基金品種,蠻多在晨星達(dá)到了5星的評價
  4. 不是收益最高的,但晨星對它去年的評價也不錯,而且查看了近幾周排名,都排在貨幣基金的第一位。
  5. 晨星對嘉實貨幣去年收益的排名是第二,第一是中信現(xiàn)金優(yōu)勢,不過招行不能買;中信現(xiàn)金優(yōu)勢似乎也不錯,值得關(guān)注

以后考慮:
  1. 再仔細(xì)研究一些基金知識,同時切身體會一下操作基金的感覺
  2. 重點考慮定投一到兩只股票型基金,畢竟現(xiàn)在的股市那么低,反彈空間誘人啊~
  3. 財幫子網(wǎng)看上去還不錯,或者要找一個同類的工具型網(wǎng)站,最好也能包括股市投資記錄的



posted @ 2008-08-13 17:47 frank28_nfls 閱讀(330) | 評論 (0)編輯 收藏

2008年7月30日

安裝

  1. 安裝cairo的runtime庫

    http://www.cairographics.org/download/

    official GTK+ for Windows page,下載最新版的"cairo"、"libpng"、"zlib"
    解出libcairo-2.dll, libpng12.dll和zlib1.dll,放到某目錄中(如d:cairobin),將這個目錄加入系統(tǒng)Path
  2. 安裝python2.5

  3. 安裝PyCairo
    http://bbs.chinaunix.net/viewthread.php?tid=1162830
    帖子講的是PyGTK的安裝,而且老了,但提到很有用的信息:

    windows版的PyCairo要去gnome的ftp下,最新的1.4版
    cairo主頁上找到的PyCairo 下載是源碼包,有個setup.py,但安裝失敗,提示找不到cairo

  4. 測試
    http://www.cairographics.org/pycairo/
    運(yùn)行其中的example

資料

  1. Cairo Tutorial for Python Programmers
    http://www.tortall.net/mu/wiki/CairoTutorial
  2. PyCairo主頁
    http://www.cairographics.org/pycairo/
  3. cairo C documentation
    http://www.cairographics.org/manual/
posted @ 2008-07-30 16:12 frank28_nfls 閱讀(917) | 評論 (0)編輯 收藏

2008年4月29日

search: this is where all story begins
gmail: daily use, just another legend
docs: AWESOME! makes doc not just doc
toolbar for Firefox: some great tools to make Firefox even greater
reader: now part of my life, to let me know what's happening around
translate: not accurate, but always help
blog search: specific tool for specific use
notebook: just not suitable for me
calendar: reminding-SMS is really useful, pity that i'm not always a scheduled person
gtalk: simple and clean. great backup for MSN, though not a replacement yet
picasa: offline tool + online holding. perfect match
blogger: really convenient when combining with google docs; really suck when being blocked by GFW!
mobile: reader, search, map... just give me more!
YouTube: not really so atractive among tons of copiers
iGoogle: not so atractive either, sorry, i prefer classic google homepage
page creator: to build a personal web page is always my dream, but...殘念
desktop search: great idea, but hey guys, you can do better
code: for specialists, seems to be better than sourceforge, we'll see...
SketchUp: not really used, but really interested of this move direction
gadget and OpenSocial: these guys make Javascript so sexy!
earth: thanks for offering a free tour of world


My top 5

SearchSearch GmailGmail DocsDocs Reader TalkTalk



btw: I just feel like to speak some english after watching "how i met ur mother", anyway...

posted @ 2008-04-29 16:49 frank28_nfls 閱讀(356) | 評論 (0)編輯 收藏
 
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/synchronization.html

Mutex概念
線程同步最基本的是mutex(mutual exclusion的縮寫)。一個互斥體一次只允許一個線程訪問共享區(qū)。當(dāng)一個線程想要訪問共享區(qū)時,首先要做的就是鎖住(lock)互斥體。如果其他的 線程已經(jīng)鎖住了互斥體,那么就必須先等那個線程將互斥體解鎖,這樣就保證了同一時刻只有一個線程能訪問共享區(qū)域。

Boost.Thread supplies recursive and non-recursive mutexes with exclusive ownership(獨(dú)占) semantics, along with a shared ownership (共享) (multiple-reader / single-writer) mutex.
Boost.Thread supports four basic concepts for lockable objects:

Lockable,
exclusive ownership
TimedLockable,
Lockable的基礎(chǔ)上加上了timeout
SharedLockable,
TimedLockable基礎(chǔ)上,允許shared ownership(同時也支持exclusive)
This is the standard multiple-reader / single-write model:
at most one thread can have exclusive ownership, and if any thread does have exclusive ownership, no other threads can have shared or exclusive ownership. Alternatively, many threads may have shared ownership.
UpgradeLockable,
SharedLockable基礎(chǔ)上,允許upgradable ownership(同時也支持shared、exclusive)
This is an extension to the multiple-reader / single-write model provided by the SharedLockable concept:
a single thread may have upgradable ownership at the same time as others have shared ownership. The thread with upgradable ownership may at any time attempt to upgrade that ownership to exclusive ownership. If no other threads have shared ownership, the upgrade is completed immediately, and the thread now has exclusive ownership, which must be relinquished by a call to unlock(), just as if it had been acquired by a call to lock().

[注:除Lockable的mutex外,其余的各種復(fù)雜mutex還需要更多代碼實踐]

Each mutex type implements one or more of these concepts, as do the various lock types.

Lock Types
boost定義的Lock types為class template,以合適的Lockable object作為模板參數(shù)
lock_guard
RAII-style的簡單lock,在ctor中l(wèi)ock,在dtor中unlock
只支持簡單的Lockable object
unique_lock
lock_guard復(fù)雜在:不僅提供RAII-style的lock,還允許用戶指定是否在ctor中立即lock,意味著可以指定推遲lock(defer acquiring the lock,通過指定defer_lock_t參數(shù)),直到顯式調(diào)用其lock()方法
還支持TimedLockable concept,前提是需要lock的Lockable object本身支持
The member functions of boost::unique_lock are not thread-safe...[注:這句沒看懂。。。]

shared_lock
upgrade_lock
upgrade_to_unique_lock

[注:目前只用過unique_lock。后面幾種對應(yīng)于不同需求的lock,從名字就可以直觀看出功能,還未試驗,直接參考api]
Mutex Types
Mutex types對應(yīng)于之前的mutex concepts,目前有:
Class mutex
boost::mutex實現(xiàn)了Lockable concept,提供exclusive-ownership mutex.
At most one thread can own the lock on a given instance of boost::mutex at any time.
Multiple concurrent calls to lock(), try_lock() and unlock() shall be permitted.

typedef unique_lock mutex::scoped_lock;

Typedef try_mutex
Class timed_mutex
Class recursive_mutex
Typedef recursive_try_mutex
Class recursive_timed_mutex
Class shared_mutex
適用于不同需求


Condition Variables
The general usage pattern is that one thread locks a mutex and then calls wait on an instance of condition_variable or condition_variable_any. When the thread is woken from the wait, then it checks to see if the appropriate condition is now true, and continues if so. If the condition is not true, then the thread then calls wait again to resume waiting.(中文參考)

lock is passed to wait()wait() will atomically add the thread to the set of threads waiting on the condition variable, and unlock the mutex. When the thread is woken, the mutex will be locked again before the call to wait returns. This allows other threads to acquire the mutex in order to update the shared data, and ensures that the data associated with the condition is correctly synchronized.

In the mean time, another thread sets the condition to true, and then calls either notify_one() or notify_all() on the condition variable to wake one waiting thread or all the waiting threads respectively.


condition_variable_any比condition_variable更通用;condition_variable要求傳給wait()的必須是boost::unique_lock<boost::mutex>類型;condition_variable一般更優(yōu)化

One-time Initialization
僅運(yùn)行一次的例程
http://www.stlchina.org/twiki/bin/view.pl/Main/BoostThread#5%20%BD%F6%D4%CB%D0%D0%D2%BB%B4%CE%B5%C4%C0%FD%B3%CC
[注:還未使用過]

Barriers
[注:還未使用過]



posted @ 2008-04-29 14:28 frank28_nfls 閱讀(667) | 評論 (0)編輯 收藏
 
線程局部存儲(中文說明) (Another one )

典型的應(yīng)用場景是errno。

Boost線程庫提供了智能指針boost::thread_specific_ptr來訪問本地存儲線程。是跨平臺的解決方案
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_local_storage.html

Portable thread-local storage with boost::thread_specific_ptr


Cleanup at thread exit


[注:還沒有實踐過,等寫過相應(yīng)代碼后再來補(bǔ)充文檔]



posted @ 2008-04-29 14:26 frank28_nfls 閱讀(560) | 評論 (0)編輯 收藏
 
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_management.html

launching threads
boost::thread類代表一個可執(zhí)行的線程(thread of execution)。
A new thread is launched by passing an object of a callable type that can be invoked with no parameters to the constructor.
The object is then copied into internal storage, and invoked on the newly-created thread of execution.
If you wish to construct an instance of boost::thread with a function or callable object that requires arguments to be supplied, this can be done using boost::bind.
(thread non-copiable, but movable; object that used to created a thread must callable, if not, use boost::ref)

Joining and detaching
當(dāng)代表一個可執(zhí)行的線程(thread of execution)的boost::thread對象被銷毀時,這個線程便同時被detached. Detached的線程將繼續(xù)運(yùn)行直到線程終止。
也可以顯式調(diào)用(explicitly)一個boost::thread對象的detach()方法,這時這個線程直接被detach,而這個boost::thread對象講不再代表thread of execution,而指Not-a-Thread

join()用于等待一個線程結(jié)束。
(timed_join())

Interruption
調(diào)用boost::thread對象的interrupt()方法,可以中斷其對應(yīng)的線程。
When the interrupted thread next executes one of the specified interruption points (or if it is currently blocked whilst executing one) with interruption enabled, then a boost::thread_interrupted exception will be thrown in the interrupted thread. If not caught, this will cause the execution of the interrupted thread to terminate. As with any other exception, the stack will be unwound, and destructors for objects of automatic storage duration will be executed.
(boost::this_thread::disable_interruption, Predefined Interruption Points)

Thread IDs
每一個運(yùn)行中的thread都有一個唯一的id值。
調(diào)用對應(yīng)的boost::thread對象的get_id()方法,或者在運(yùn)行的thread中調(diào)用boost::this_thread::get_id()方法。

Namespace this_thread

this_thread下包含的是在正在運(yùn)行的線程內(nèi)部,所能進(jìn)行的線程操作,包括上面提到的get_id()方法
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_management.html#thread.thread_management.this_thread

Thread Group
thread_group class provides for a collection of threads that are related in some fashion.
New threads can be added to the group with add_thread and create_thread member functions.
thread_group is not copyable or movable.


posted @ 2008-04-29 14:25 frank28_nfls 閱讀(803) | 評論 (0)編輯 收藏
 
基礎(chǔ)概念:

原文:http://www-eleves-isia.cma.fr/documentation/BoostDoc/boost_1_29_0/libs/thread/doc/definitions.html
backup:http://docs.google.com/Doc?id=dgnd783p_138c62cd2gb
這是1.29.0版boost文檔中的定義,參考了C++ standard,并結(jié)合boost作了解釋,很規(guī)范,介紹了以下基本概念:
Thread、Thread-safe、Thread State、Race Condition、Deadlock、Starvation、Priority Failure、Memory Visibility
新版boost文檔中已經(jīng)沒有這一章了



參考:

  1. http://www.cs.cf.ac.uk/Dave/C/node32.html
    一個c/pthread的thread教程,有一些典型例子的代碼、算法說明
  2. http://www.stlchina.org/twiki/bin/view.pl/Main/BoostThread#C++%20Boost%20Thread%20%B1%E0%B3%CC%D6%B8%C4%CF
    C++ Boost Thread 編程指南(中文版)
    http://www.ddj.com/cpp/184401518
    英文原版
    WARNING:Out-of-Date(2002年的)! 只能參考用
  3. http://aszt.inf.elte.hu/~gsd/klagenfurt/material/ch03s06.html
    英文的一篇boost.thread說明,里面有boost::thread的簡單例子,其中一個使用了condition
    WARNING:Out-of-Date! 只能參考用

Code:





posted @ 2008-04-29 14:12 frank28_nfls 閱讀(1947) | 評論 (0)編輯 收藏

2008年4月24日

原本是想把新blog架在csdn上


然而csdn不讓全文輸出rss這一點就足足把我逼走

現(xiàn)在開始試試看這里,感覺這里能滿足我大部分要求,但愿這次就能徹底定下來了。。。

posted @ 2008-04-24 15:55 frank28_nfls 閱讀(413) | 評論 (1)編輯 收藏
僅列出標(biāo)題  
 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美在线观看一二区| 一区二区黄色| 欧美国产日韩精品免费观看| 久久精品女人| 久久九九国产精品怡红院| 久久激情中文| 麻豆精品国产91久久久久久| 蜜臀a∨国产成人精品| 欧美国内亚洲| 国产乱子伦一区二区三区国色天香| 国产日本欧美一区二区三区在线| 国内精品久久久久影院薰衣草| 狠狠色综合网| 亚洲精品日韩在线| 午夜欧美精品久久久久久久| 久久久一本精品99久久精品66| 久久亚洲私人国产精品va媚药| 可以免费看不卡的av网站| 亚洲第一精品电影| 中国亚洲黄色| 久久色在线观看| 欧美精品1区2区3区| 国产精品亚洲片夜色在线| 尤物网精品视频| 亚洲一区免费视频| 欧美成人dvd在线视频| 9l国产精品久久久久麻豆| 久久成人免费电影| 欧美婷婷六月丁香综合色| 狠狠色综合色区| 亚洲欧美一区二区激情| 欧美粗暴jizz性欧美20| 亚洲永久免费av| 欧美—级在线免费片| 国产精品五月天| 一个人看的www久久| 裸体女人亚洲精品一区| 亚洲性色视频| 欧美午夜精品久久久久久孕妇| 在线不卡亚洲| 久久久久久9| 亚洲女人天堂成人av在线| 亚洲欧美制服另类日韩| 韩日午夜在线资源一区二区| 亚洲午夜激情| 亚洲三级毛片| 噜噜爱69成人精品| 国产一区二区主播在线| 亚洲欧美怡红院| av成人福利| 欧美日韩三区四区| 日韩亚洲欧美一区二区三区| 免费在线日韩av| 久久精品国产免费观看| 国产亚洲成年网址在线观看| 亚洲永久免费av| 亚洲视频你懂的| 国产精品国产三级国产aⅴ入口| 日韩一二三在线视频播| 亚洲人永久免费| 欧美大片免费| 一本久久精品一区二区| 99精品欧美一区二区三区综合在线| 欧美精品一区在线| 亚洲一区二区三区乱码aⅴ蜜桃女| 亚洲免费av观看| 国产精品白丝av嫩草影院| 一本色道久久综合亚洲精品婷婷| 亚洲黄色大片| 欧美男人的天堂| 亚洲午夜视频| 先锋影音网一区二区| 国产一区二区黄| 麻豆国产精品777777在线| 麻豆精品在线观看| 中文日韩欧美| 欧美亚洲视频一区二区| 禁久久精品乱码| 亚洲黄色在线视频| 国产精品毛片在线| 久久久水蜜桃| 欧美美女福利视频| 久久精彩视频| 欧美成人一区二区三区| 亚洲影院一区| 久久亚洲春色中文字幕| 在线亚洲免费| 久久久久国产一区二区三区四区 | 欧美午夜欧美| 久久成人精品电影| 久久深夜福利免费观看| 一本一本久久a久久精品综合妖精| 夜夜爽99久久国产综合精品女不卡| 欧美日韩精品一区二区三区四区| 亚洲欧美国产日韩天堂区| 欧美一区视频| 亚洲影院在线| 久久综合精品一区| 亚洲欧美日韩在线观看a三区| 久久九九热re6这里有精品| 亚洲欧洲午夜| 久久丁香综合五月国产三级网站| 亚洲区一区二| 欧美va天堂在线| 日韩午夜黄色| 一区二区三区欧美成人| 一区二区三区日韩精品视频| 国产一区二区三区自拍 | 亚洲三级网站| 亚洲一区二区三区高清| 亚洲三级影片| 久久久久综合| 欧美一区二区性| 欧美日韩高清不卡| 欧美国产激情| 尤妮丝一区二区裸体视频| 亚洲天堂偷拍| 亚洲欧美清纯在线制服| 欧美日韩在线播放三区四区| 欧美福利视频在线| 一区二区亚洲欧洲国产日韩| 亚洲欧美日韩国产另类专区| 亚洲无吗在线| 欧美国产国产综合| 久久这里有精品15一区二区三区| 国产精品成人免费| 亚洲精品久久久久久久久久久久久 | 香蕉久久夜色精品国产| 欧美日韩免费观看一区三区| 欧美大片第1页| **网站欧美大片在线观看| 久久成人一区| 欧美在线免费一级片| 国产精品久久久久久超碰 | 一区二区三区四区国产精品| 欧美成人精品在线| 欧美大片在线观看| 亚洲电影自拍| 美女视频黄免费的久久| 欧美成人免费视频| 91久久线看在观草草青青| 久久亚洲午夜电影| 欧美激情成人在线| 亚洲精品影视| 欧美日韩国产天堂| 99在线热播精品免费| 亚洲欧美日韩在线| 国产欧美日韩综合| 久久久久88色偷偷免费| 毛片基地黄久久久久久天堂| 曰韩精品一区二区| 欧美电影打屁股sp| 亚洲精品美女91| 亚洲一区二区三| 国产亚洲精品aa| 麻豆精品一区二区av白丝在线| 欧美高清视频| 亚洲视频一区在线| 亚洲国产日韩欧美| 欧美aa在线视频| 亚洲国产高潮在线观看| 狂野欧美激情性xxxx欧美| 亚洲电影中文字幕| 一区二区三区欧美| 国产一区二区三区久久| 欧美成人按摩| 亚洲男女自偷自拍| 免费成人高清视频| 亚洲一级特黄| 在线精品视频一区二区三四| 欧美区一区二区三区| 亚洲一区二区三区免费在线观看| 久久国产精品久久久久久| 亚洲国产一二三| 国产精品一国产精品k频道56| 快she精品国产999| 欧美亚洲视频| 日韩一级二级三级| 你懂的视频欧美| 西瓜成人精品人成网站| 亚洲第一区在线观看| 国产精品色午夜在线观看| 欧美**字幕| 久久精品亚洲精品| 亚洲特级片在线| 亚洲国产综合在线看不卡| 久久久久99| 午夜精品久久久久久久99樱桃| 亚洲国产综合在线看不卡| 国产亚洲欧美另类一区二区三区| 欧美日韩视频在线观看一区二区三区| 午夜宅男欧美| 亚洲影视在线播放| 亚洲日本成人在线观看| 欧美成人一区二区在线 | 亚洲激情av在线| 久久综合久色欧美综合狠狠 | 欧美在线播放一区二区| 日韩亚洲视频在线| 亚洲精品乱码久久久久|