2012年10月31日

Inmotion Hosting的备份服务

几个月前开始使用Inmotion Hosting的主机托管服务,前几天不小心删除了一个DB闯了大祸,自己没有备份。

让客服帮忙给恢复,答复是【备份已经被Overwrite,无解】,欲哭无泪。

 

免费备份服务

With our automated backup plan, backups are run every 24-36 hours and will overwrite the previous backup.

Even if using our automated backups, we highly suggest customers also keep their own backups

 

有偿服务

Although this service is included with many of our hosting plans, it's
limit is 10 GB. By subscribing to our Backup Service regular, incremental
backups would continue, and you would only pay $7.50 per 10 GB billed
automatically every month. Details are below.

Up to 10 GB included (Business Class & V-Dedicated)

10 - 20 GB $7.50 monthly

20 - 30 GB $15.00

30 - 40 GB $22.50

...and so on. Please note that InMotion Hosting assumes no liability as to
the availability or completeness of client data backups, and each client is
expected and encouraged to maintain local backup copies of their own data.

Wysiwyg与CKEditor

在Drupal中,Wysiwyg与CKEditor是很好的搭配。

 

安装

  • Instal the WYSIWYG module and enable
  • Download the latest CKEditor and unzip it in sites/all/libraries
  • Go to configuration => wysiwyg and choose the editor for the input format (use it on the full HTML or PHP)
  • Now you can edit and there you can choose under buttons and plugins what buttons appear
  • When you create a content type don't forget to set the correct text format

 

配置

由于默认的配置文件【sites/all/libraries/ckeditor/config.js】不起作用,需要变通的方法,大致如下

   (具体请参考: http://fuseinteractive.ca/blog/wysiwyg-module-ckeditor-taming-beast

 

1.制作一个Module

     创建目录【sites/all/modules/custom】,在该目录下建立2个文件(类型为info和module)

      ckeditor_custom.info    

name = CKEditor Custom

description = Custom configuration for CKEditor

core = 7.x

      ckeditor_custom.module

<?php

/**
* Implements hook_wysiwyg_editor_settings_alter()
*/
function ckeditor_custom_wysiwyg_editor_settings_alter(&$settings, $context) {

  // The $context variable contains information about the wysiwyg profile we're using
  // In this case we just need to check that the editor being used is ckeditor

  if ($context['profile']->editor == 'ckeditor') {
     $settings['customConfig'] = base_path() . drupal_get_path('module', 'ckeditor_custom') .
'/ckeditor_custom_config.js';
   }
}

 

2.创建配置文件

跟上面两个文件在同一目录下创建文件【ckeditorcustomconfig.js

CKEDITOR.on( 'dialogDefinition', function( ev )
{
  // Take the dialog name and its definition from the event data.
  var dialogName = ev.data.name;
  var dialogDefinition = ev.data.definition;

  if ( dialogName == 'link' )
  {
    var targetTab = dialogDefinition.getContents( 'target' );
    // Set the default value for the URL field.
    var targetField = targetTab.get( 'linkTargetType' );
    targetField[ 'default' ] = '_blank';
  }
});

 

3.将刚制作的Module启用

 

下面的链接是Dialog的定制示例

http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Dialog_Customization

2012年10月26日

西江千户苗寨

千户苗寨由十余个依山而建的自然村寨相连成片,是目前中国乃至全世界最大的苗族聚居村寨。西江是一个保存苗族“原始生态”文化完整的地方,是领略和认识中国苗族漫长历史与发展的首选之地。西江牯藏节、苗年,闻名四海,西江千户苗寨,一座露天博物馆,展览着一部苗族发展的史诗,成为观赏和研究苗族传统文化的大看台。

 

西江千户苗寨远景 

说西江千户苗寨平常,那它就是一个苗族村寨而已,极为平常,说西江千户苗寨不平常,那是因为它代表了所有苗族村寨的历史和文化,确实不平常。游历千山 万水的余秋雨说,西江千户苗寨,一个用美丽回答一切的地方。这里在你脚下的路,是横蔓的小径,它们曲折,蜿蜒的向前伸展,在没有完全走完之前它们是无穷的 远,它们仿佛穿越前方的云层,通向远古的浪漫,承载着千年古老的脚印。路面上的鹅卵石精心铺垫着各种精美神奇的图案,每一幅都是那样的醒目那样的巧妙,走 在这里的每一步都仿佛脚下是一段亘古的往事或者一段富有智慧创造的结晶。也许每一段路,每一株百年的古树,每一座被岁月和风雨剥蚀的木楼,每一条曲折蜿蜒 的小巷,以及那些有序而又错乱的田梯,一片片、一层层的,都仿佛在向人们展示着一幅古老绝美的水墨画卷。我为这些巧妙的自然工笔而感叹。米酒、酸菜、龟凤 汤、糯米粑、大长桌……也向人们展示着千户苗寨,人们丰富精华的名食和大气的家具。

 

苗族盛装

西江有远近闻明的银匠村,苗族银饰全为手工制作,其工艺具有极高水平。西江苗族是黔东南苗族的重要组成部分之一,现主要居住的是苗族的“西”氏族。作为全世界最大的苗寨,西江千户苗寨拥有深厚的苗族文化底蕴,这里的苗族建筑、服饰、银饰、语言、饮食、传统习俗不但典型,而且保存较好。西江苗族过去穿长袍,包头巾头帕,颜色都是黑色的,故称“黑苗”,也称“长裙苗”。西江苗族的语言属于汉藏语系苗瑶语族苗语支中部方言的北部次方言,这里现使用的文字是通用的汉语言文字,尽管汉语言是西江苗族与外界交流的必备语言工具,但苗族之间的语言交流仍然使用传统的苗语。也是重要的苗族之一,这也是黔东南的重要的代表之一。

2012年10月24日

印度支那--安南

此安南非彼安南。
越南、老挝和柬埔寨合称印度支那,以前是一个国家,叫安南。十九世纪后期成了法国殖民地,法国人被赶走后,印度支那成立了四个政权,柬埔寨、老挝、北越和南越。北越统一越南后,向老挝和柬埔寨提出,重建统一的安南,老挝实力最弱,没有意见,但是红色高棉坚决反对。
为了和越南人对抗,中国把西哈努克、红色高棉和美国人支持的朗诺政府残余力量捏合在一起,成立柬埔寨民族解放统一阵线,名义上是西哈努克为首,实际上是红色高棉力量最大。
苏联解体后,越南失去了军事和经济支持,不得不和中国和解,退出柬埔寨,放弃了成立统一安南的设想。中国也承诺放弃支持红色高棉,但是必须让西哈努克当国王。失去中国支持的红色高棉由于过去政策不得人心,短时间内土崩瓦解,西哈努克的儿子拉那烈在和韩桑林的继承人洪森竞争总理中败北。

经世济民

 

 

经济与经济学 现代汉语中的经济一词有两个语源,一个语源是古代汉语,另一个语源是日语。

在日本的电视节目上看到,其实日语的“经济”,就是来源于汉语“经世济民”。

 

1.古代汉语

    古代汉语中“经济”一词意为“经邦济世”、“经世济民”  ,略同于现代汉语中的“政治” , 至迟出现于三国时期。 

   《晋书·石苞传》 :苞为中护军司马师司马,司马懿闻苞薄行好色,以责司马师,师答 曰: “苞虽细行不足而有经国才略,夫贞廉之士未必能经济世务”云云。 《晋书·纪瞻传》 : 晋元帝司马睿(公元 317 年即位)褒奖纪瞻的诏书中说“ (纪)瞻忠亮雅正,识局经济。《晋 ” 书·殷浩传》 :简文帝司马昱(公元 371 年即位)答书“足下沈识淹长,思综通练,起而明 之,足以经济。 ”

    唐朝以后,此词用得就比较多了。

   《李太白诗》卷十二《赠别舍人弟台卿之江南》“令弟经济士,谪居我何伤。 : ”杜甫《上 水遣怀》“本来经济才,何事独罕有。《宋史·王安石传》“朱熹尝论安石,以文章节行高 : ” : 一世,而尤以道德经济为己任。 ”

    以上这些都是比较典型的例子,意思都是“经邦济世” 、“经世济民”。

    宋代以后不仅语词上而且实际中经济一词也已普遍使用,以此命名的书也不少。如: 宋·滕洪编《经济文衡》 ;元·李士瞻撰、其曾孙李仲辑《经济文集》 ;明·陈其愫编《经济 文辑》 ;明·黄训编《皇明名臣经济录》 ;清· “求自强斋主人”编《皇朝经济文编》 ;清· “宜 今室主人”编《皇朝经济文新编》 。

    以上以“经济”为名的书,内容基本上不出传统“经济” 。

    《红楼梦》中多次出现“经济” 。例如第三十二回:湘云笑道: “还是这个情性不改。如 今大了,你就不愿读书去考举人进士的,也该常常的会会这些为官做宰的人们,谈谈讲讲些 仕途经济的学问,也好将来应酬世务,日后也有个朋友。没见你成年家只在我们队里搅些什 么! ”宝玉听了道: “姑娘请别的姊妹屋里坐坐,我这里仔细污了你知经济学问的。 ”

    古人也有取名为“经济”的:明代小说《金瓶梅》中有一个人物就叫陈经济;清代名臣 陈廷敬的祖父也叫陈经济(陈廷敬父名陈昌期、祖父名陈经济、曾祖父名陈三乐) 。

   “政治”含义的“经济”一直使用到 19 世纪末 20 世纪初,才被 economy 含义的“经 济”取代。促成“经济”含义转变的是日本人。 

 

2.日语

    《广辞苑》 (第四版) “经济” ① : 《文中子· 礼乐》 治国救民、 经国济民、 政治; ②economy 经济;③俭约。 “经济学”:“研究经济现象的学问……,旧称理财学。  ”

    福泽谕吉(1835—1901 年,印在 10000 日元的钞票上)1868 年在庆应义塾讲授美国经 济学家弗兰西斯·威兰德(Francis Wayland)的《政治经济学原理》 ,同年翻译出版了在苏 格兰出版的由钱伯发行的学校和私人用的《经济学教科书》 ,被认为是最早向日本传播西方 经济学的人。日本人把 economy 翻译为“经济” ,把 economics 翻译为“经济学” ,以后中国 人接受了这种译法。 “economics”最初没有经过日译本也有直接被译到中国的,只是当时没 有用 “经济学” 这个词, 而是使用 “富国策”“生计学”“计学” 、 、 等词, 后来才统一译为 “经 济学” 。

3.economy 的来源

    色诺芬(Xennophon) (公元前 430 年左右—公元前 355 年以后)的《经济论》 ,又译《家政学》,古希腊奴隶制生产是以家庭为单位的, 因此把组织管理奴隶制经济的各种问题都列入 “家政管理” 范围内, 英文的 “economy”一词就是从希腊文这个词演变而来的。 

 

   现代汉语中的经济一词,系采用 19 世纪日本的译法,其含义已不同于古代汉语中的经 济,而与西方现代语言中的 economy 相一致。

 

 

2012年10月18日

史考特证券(Scottrade)和盈透证券(IB)的对比评价

Scottrade(史考特证券)InteractiveBrokers(盈透证券,简称IB)是中国人投资美股常用的两家美国券商。为了帮助大家比较评价,stockbrokers从多方面做了个全面的比较分析。


Find the best online broker



Interactive Brokers vs Scottrade 2012 Review

starPoor
starstarMediocre
starstarstarGood
starstarstarstarExcellent
starstarstarstarstarOutstanding
trophyFeatured
 Scottrade
Interactive Brokers
Open AccountOpen AccountOpen Account
Current OffersTrade free for 70 days - Learn MoreTrade on over 100 market centers in 19 countries - Learn More
Broker ReviewsRead full review ›Read full review ›

Fees

Equity Trade Commissions*$7.00$2.50
Mutual Fund Trade Commissions*$17.00$14.95
Options Trade Base$7.00$0.00
Options Per Contract$1.25$0.70
Broker Assisted Trades$27.00$100.00
Minimum Deposit$500.00$10,000.00

2012 Review Ratings

Overallstar star star star starstar star star
Commissions & Feesstar star starstar star star star star
Customer Servicestar star star star starstar star star star
Platform & Toolsstar star star starstar star star
Researchstar star star starstar star
Ease of Usestar star star star starstar star
Investment Offeringstar star star star starstar star star star star
Educationstar star star star starstar star
Mobile Tradingstar star star star starstar star star star

Brokers

Scottrade
Interactive Brokers

Account Features

Virtual Tradingcheck
No Minimum Deposit
No Maintenance Feescheck
No-Fee IRAscheck
Online Trader Communitycheck
Investment Educationcheckcheck

Mobile Trading

iPhone Appcheckcheck
iPad Appcheck
BlackBerry Appcheckcheck
Android Appcheckcheck
Mobile Sitecheck

Customer Service

Phone Supportcheckcheck
Email Supportcheckcheck
Live Chat Supportcheck
Retail Locationscheck
24/7 Customer Supportcheck

Trade Types

Stock Tradingcheckcheck
Options Tradingcheckcheck
Mutual Fundscheckcheck
FOREX Tradingcheck
Futures Tradingcheck

Recommended For

Discounted Tradingcheck
Long Term Tradingcheck
Options Tradingcheck
Active Tradingcheck
International Tradingcheck

Recap

Scottrade
Interactive Brokers
Open AccountOpen AccountOpen Account
Current OffersTrade free for 70 days - Learn MoreTrade on over 100 market centers in 19 countries - Learn More
Broker ReviewsRead full review ›Read full review ›