2013年1月31日 星期四

MacOS : 在螢幕上顯示 按下的按鍵 (Display pressed keys on screen)

常在人家錄的教學影帶上面看到會顯示到底按了哪些快速鍵(shortcut),查了一下,原來MacOS內建的可能就可以達到類似的功能

設定位置如下:

系統偏好設定-->輔助設定->鍵盤--> 啟用按鍵暫留:  在設定內容下設定要顯示的位置即可

 

 

 

或者也可以花錢買軟體,在Mac上最好用的軟體是

Mousepose

使用sublime Text2 Octopress plugin遇到deploy 失敗的問題

安裝完後,一直deploy失敗,後來看了一下console log,發現是rvm的關係,

解決方法:

1.加入rvm 參數在mac 的profile

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.profile

 

2.在Sublime Text2 plug-in設定octopress的設定,

"octopress_cmd_before_rake" : "source  ~/.profile",

2013年1月30日 星期三

Mac 下如何打出 command ,option 等對應的符號表

1.先使用快速鍵叫出系統預設的符號表 command + option + T

2.在左上角的符號表設定,選取自定列表

   加入"科技符號"

3.用滑鼠切換符號表到科技符號,就可以看到⌘⌥⇧⌃ ,在把它選起加到喜好項目,之後即已從喜好項目中直接使用

 

原始參考網站:

http://mulicia.pixnet.net/blog/post/26033416-%E5%A6%82%E4%BD%95%E7%94%A8%E8%98%8B%E6%9E%9C%E7%9A%84%E9%8D%B5%E7%9B%A4%E5%BF%AB%E9%80%9F%E6%89%93%E5%87%BA%E7%AC%A6%E8%99%9F%EF%BC%9F

使用Octopress 與 github遇到的一些問題記錄

這兩天在學習使用octopress +github 寫部落格,因為對git 跟ruby以前完全沒用過,所以遇到的問題還不少,這邊做個記錄,方便自己以後查詢

 

 

# git remote -v show

 

 

 

1.執行rake deploy時遇到 permission denied(publickey)

原因:ssh publickey 錯誤

debug: 先使用command line 去連接github看看,如果正常的話會看到successful的訊息,如果不正卻就是得重新產生public key

或者重新上傳你的public key 

#ssh -T git@github.com

*重新產生public key

#ssh-keygen -lf ~/.ssh/id_rsa.pub

*將public key 上傳到 github account 上去,上傳位置如下

https://github.com/settings/profile

-->SSH keys 

 

 

 

執行rake deploy時,遇到 Github: Error: repository not found. fatal: The remote end hung up….

原因:因為repository 有分大小寫,我在執行時rake setup_github_pages 填入的repository (包括自己的帳號)沒注意到大小寫

可以使用 git remote show 看一下repository是否正確

#git remote -v show

github + octopuses issue

1. install 

http://islamismailov.com/blog/2012/12/31/octopress-on-mac-os-x-with-homebrew/

 

2. setup 

http://zerodie.github.com/blog/2012/01/19/octopress-github-pages/

 

3.troubleshooting


http://stackoverflow.com/questions/12060903/github-error-repository-not-found-when-installing-octopress

assuming you have installed ruby 1.9.3

  1. create repo on github as username.github.com
  2. cd your_working_dir
  3. rake install / rake install['theme_name']
  4. rake setup_github_pages this will ask to write repo name. Do not add ".git" e.g. git@github.com:username/username.github.com this is correct
  5. now add your remote repo, check available repo using git remote -v octopress git://github.com/imathis/octopress.git (fetch) octopress git://github.com/imathis/octopress.git (push)
  6. add your repo git remote add origin git@github.com:username/username.github.com.git
  7. Rename branch master to source, because github pages publishes only source branch git branch
    • master git branch -m master source git branch
    • source
  8. time to preview rake preview open browser and goto localhost:4000
  9. if all is fine then push to github
  10. rake generate git add . git commit -m "first blog" git push origin source rake deploy

brew install octopress

1.brew install git

2.brew install ruby

3.brew install brew-gem

4.git clone https://github.com/imathis/octopress.git octopress

5.cd octopress

6.brew-gem bundler

7.bundle install

8.bundle exec rake install

2013年1月29日 星期二

Sublime Text 2: todo plugin: PlainTasks 介紹

常用快速鍵:

☐ ⌘ + enter or ⌘ + i: 增加新的todo list

✔ ⌘ + d**:  標記完成的task

RSA: Rivest-Shamir-Adleman

RSA是一個區段加密法,其中明文與密文是介於0與n-1的整數

密碼學嘉言

密碼破解的歷史告訴我們:一個問題從某一個方面來看可能無解,但是如果從另一個全然不同角度來看可能就會有解

2013年1月28日 星期一

VXLAN versus NVGRE

VXLAN: VMware 跟思科為主等專長在網路相關的廠商提出的 Virtual Extensible Lan 技術,類似的技術,dell 微軟亦提出

NVGRE: Network Virtualization using Generic Routing Encapsulation

 

主要參考的來源:

http://news.networkmagazine.com.tw/magazine/2012/10/06/42512/

 

如何解決mmm replication fail 問題

今天lab 網路的database 遇到 replication fail,嘗試了幾個方法都沒辦法解決,後來看到另外一篇,搭配fix slave relay log curruption 之後,終於把他正常啟動了

 

1. mmm replication fail # mmm_control set_online shard0master1 MySQL Multi-Master Replication Manager Version: 1.2.6 Config file: mmm_mon.conf Daemon is running! Command sent to monitoring host. Result: ERROR: This server is 'REPLICATION_FAIL' now. It can't be switched to online.

 

2.遠端連線到replication fail那台database

#mysql > show slave status \G

就看到如下的錯誤

Last_IO_Error: Last_SQL_Errno: 1594 Last_SQL_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave. 1 row in set (0.00 sec)

 

3.開始進行 mysqlbinlog 修護

發現他顯示某一行有錯誤,可能是因為之前錯誤的顯示,這個能是由於在之前我的硬碟空間滿了,所以造成系統寫入有問題,即時我把硬碟空間刪除後,在重新啟動系統也沒用,因為file 已經corrupt

#mysqlbinlog mysql-relay.001722

 

4.在執行show slave status \G

記住下列兩個欄位

Relay_Master_Log_File: mysql-bin.001722

Exec_Master_Log_Pos: 4185958

5.執行下列comman ,跳過這段有問題的relay log

#mysql > stop slave;

#mysql> CHANGE master TO master_log_file='mysql-bin.001019', master_log_pos=4185958;

#mysql > start slave ;

10 face of innovation :決定未來的十種人

這本書,雖然是2008年出版的,不過我一直沒注意到,一直到最近才有機會聽到,目前我手上還沒拿到書,就先把網路上其他先進所做的十種類型先貼上作為閱讀提示

主要分為三大類,十種類型的人,前面兩種個有三種類型的角色,後面建造者則有四種角色

A.學習型角色

.1人類學家 the Anthropologist – 構成探索之旅的真正要素並不在於發現新景物,而是以新眼光來看景物。( 普魯斯特 )

.2實驗家 the Experimenter – 我並沒有失敗。我只能說,我已經知道有一萬種方法沒有用。( 愛迪生 )

.3異花授粉者 the Cross-Pollinator – 偶而離開大家常走的路,鑽到林子裡去吧。這樣做,你每次都一定會發現一些前所未見的東西。( 亞歷山大 . 格雷翰 . 貝爾 )

B.組織型角色

4.跨欄運動員 the Hurdler - 我們決定在這十年中作些事,到月球上去,並不是因為這件事很容易,而是因為很困難,因為這個目標可以組織並考驗我們的精力和技能,因為我們願意接受這項挑戰,面對這項挑戰,我們不想拖延,我們只想獲勝。( 約翰 . 甘迺迪 )

5.共同合作人 the Collaborator – 在漫長的人生歷史裡 ( 動物界也一樣 ),學會以最有效的方式合作並就地取材發揮創意者佔上風。( 達爾文 )

6.導演 the Director – 我靠夢想過活。( 史蒂芬 . 史匹柏 )

C. 建造類角色

7.體驗建築師 the Experience Architect - 對大多數公司而言,「附加價值」不論大小,全來自客戶體驗的品質。( 湯姆 . 彼得斯)

8.舞台設計師 the Set Designer – 每個組織 ( 以及每個員工 ) 表現的好壞,多少都會受到實際辦公處所規劃、設計,和管理的影響。( 富蘭克林 . 貝克 )

9.看護人 the Caregiver - 一次考慮一個客戶,盡全力把他們一個個照顧好。( 蓋瑞 . 卡默。地角公司 )

10.說故事的人 the Storyteller – 構成宇宙的是一個個的故事,而不是原子。( 彌瑞爾 . 盧奇瑟 ) 

2013年1月22日 星期二

run level and ring level的差異

Ring level 可分為 0,1,2,3

run levels 則為0,1,2,3,4,5,6

通常ring level跟電腦安全(權限控管)有關,run level 則是linux feature 控管跑在哪一種模式

 

在linux  ring level 通常對應成,同一層的權限不能存取,採用least privilege

Ring 0: Kernel (OS kernel)

Ring 1: init.d (I/O)

Ring 2: Driver(utilities)

Ring 3: Application(User Apps)

 

在Windows 通常,R0~R2 對應的是kernel mode ,R3 對應的是 User mode

什麼是 IMEI

最近公司在統計BYOD設備,要求員工提供IMEI,對於這種名詞常常聽到,知道他是一個手機裝置識別號碼,但從來沒更深入去了解他,剛剛去wiki上查了一下,看了一下他的說明

國際移動設備辨識碼International Mobile Equipment Identity numberIMEI),即通常所說的手機序列號,用於在手機網路中識別每一部獨立的手機,是國際上公認的手機標誌序號,相當於行動電話身份證

序列號共有15位數字,

前6位(TAC)是型號核准號碼,代表手機類型

接著2位(FAC)是最後裝配號,代表產地。

後6位(SNR)是串號,代表生產順序號。

最後1位(SP)一般為0,是檢驗碼,備用。


國際移動裝備辨識碼一般貼於機身背面與外包裝上,同時也存在於手機記憶體中,通過輸入*#06#即可查詢。

1460:宏遠興業之我見

*Check points
*** 2013年底是否有辦法eversmile 展店到100家
*** 凱基證券買超比重大的關係
*** 是否會配股,對股東是否夠好
*** 經營階層接班問題

2016/07/21
突然發現這兩年前的文章,突然變成熱門的搜尋文章,表示宏遠最近應該交易滿熱絡的,其實今年是奧運年,理論上運動相關的個股應該會炒作一波才是,另外看一下我下圖付的截圖,兩年前的股票,現在表現最好的卻是卜蜂,真是大出我意料之外

2014/06/20
今天股價仍然維持在17.4高價,追縱這檔股價大概漲了一倍左有,今天查了一下,這邊文章的搜尋熱度也被推到熱門文章了,真有趣
2014/02/22
看一下宏遠的股價,又見漲停了,漲了三成以上了........
NewImage


 
2013/09/17
附圖為單一證券"凱基證券近10"買超佔成交比重快40%,股價缺不漲不跌,這到底是有大戶在私下交易嘛?還是有基金大筆買入,現在此做記錄以備後續觀察
NewImage


2013/09/17補充:
在財報狗上看到對於整個紡織業上下游關係圖的財報分析,雖然寫的很簡單,不過就因為簡單可以讓人家清楚的知道宏遠在整個產業中的定位
http://statementdog.com/blog/archives/6228

2013/08/29:
今天趁者早上坐車的時候,就把宏遠的半年報拿來看一看,發現還針的不是太賺錢,跟這一兩年來,總經理一直在宣揚綠能可以藉省多少錢
全球3大廠區每年可省新臺幣2億元的支出,因此葉清來強調,「做就對了!」 在官網上看到的宣稱,每年節省兩億,這樣換算回EPS今年至少就可以提高0.55,這樣eps應該全年可以簡單上一塊錢吧,不過事實上就不是如此,到底節省的錢到哪裡去了,有人知道嘛?

2013/08/28:
8/23日這天,宏遠終於因為淨值升到10塊以上,開發融資交易了,比我預期的晚了一季,當天總成交量6千多張,融資占了1732張,股價也的確上漲了,但接下來了兩天,股價就開始下跌,不知道是否是一些原本小佔便宜的投資人放棄了,不然實在想不出,怎麼會在股價開始下跌時,融資賣出呢?今天一開盤甚至殺到跌停價,不過成交量不多,所以後來股價就縮小跌幅到-2.0%以內,現在才月底,理論上帳應該還沒做出來,不知道是因為業績不佳,所以知情人士先賣,還是單純的失望性賣壓,現在繼續小量投資一點觀察一下趨勢。
觀察指標:
*經理人誠信:eversmile是否真的可以在年底前展店到一百家:目前看104上面的確有持續在徵展店人才,但不知道成效如何
*敘利亞戰爭:   95%客戶都在國外,甚至包括中東,不知道戰爭對他的影響大不大,回顧92年波灣戰爭,宏遠eps 是從賺錢到-1.93,不過那次是所有股票都很慘,現在還是先保持觀察吧
2013/05/31:
看總經理每年都轉讓㽪與300張股票到自己的投資公司"宏葉投資股份有限公司",應該是為了節稅考量,不過實在考不懂為什麼是300張,不是在多一點或少一點,原本以為是因為免費額關係,不過查了一下,免稅額應該是111萬,以宏遠的股價七塊多*300張,應該還是得課稅,另外查了一下紅葉投資股分有限公司的資本額是五千萬,難怪不會被追稅,不然看了一下國稅局的宣導網頁,現在似乎會針對這類的逃漏稅追繳,這一家公司看來不適合當一般人的長期持有股票,因為看來比較屬於大股東的私家持股,不配股,小股東享受不到股利回報,雖然創新有成,但不知道是太會花錢,還是公司根本不想賺錢,因為賺錢配股,大股東可能會被額外扣稅

2013/3/20 更新:
http://tw.stock.yahoo.com/news_content/url/d/a/130314/1/3o8iz.html 宏遠興業決議不發股利
看來這還是一家有問題的公司,看來要期待這種 經營階層沒換,就能轉性的公司太難了,

這是一家我目前還看不懂的企業,宏遠興業,其實幾年就在電視上看過介紹他們的創新能力,感覺很有創新能力,強打綠能產業,不過公司都沒什麼在賺錢 最近偶然看到它自創的品牌Eversmile常常有新聞出現,又重新看了一下它的股價,今年股價曾經突破10塊錢,但最近又跌到6-7塊錢,真是一家我看不懂的公司,看公司葉總的紀錄片 宏遠永續經營發展模式,看了都覺得被吸引過去了,無奈我不是這領域的人才,不過股價竟沒表現,公司也沒賺錢,實在想不透,如果案造Good to Great的理論,只要人對了,方向對了,理論上應該產生飛輪效應,業績應該要突飛猛進才對,看了該公司的經營階層的確有成立一些投資公司,不知道是單純的節稅搞量而已,還是也是會不務正業炒作股票? 我自己目前是持正面的看法,總之先買一些建立持股,順便追蹤這到底是不是一家有潛力的翻身股
2013/02/04更新
觀看宏遠興業之2011 永續經營報告書,可以發現這是一家標榜綠能產業的企業,雖然企業目前不專錢,產業前景也並不一定好,不過秉持支持好的經營者好的經營理念,就是先加減買一些,雖然對於這家公司,目前觀看是乎還是有人會進行股票炒作,而非單純的專營在本業經營上面,不過目前我還是持正面的態度觀看這家公司,認為在2013 Q1前應該會有所表現
相關連結 http://www.eversmile.tw/archives/2110 https://zh-tw.facebook.com/eversmile.buy?sk=app_10442206389&filter=3

2013年1月20日 星期日

Scrum tool : Scrumwise

web site:  Scrumwise.com

 

Google C2DM

 

一. 名詞解釋

Credentials
Sender ID    (SID)開發者的email帳號,用來註冊C2DM service 使用
Application ID使用C2DM 的應用程序名稱,用來確保收到的push message 可以綁訂到正確的程序上
Registration ID (Auth)用C2DM 認可的device去註冊C2DM service後,所得到的一組id,其他第三方伺服器可以透過這一組registration ID去發送訊息,這個id大概每隔一週就會被Renew,鑰重新申請產生
Google User AccountDevice需要透過此google account去通過認證
Sender Auth Token由Sender Id對應的Token,可以得到使用C2DM service

 

 
二.流程說明
1. Enabling C2DM
  1. Server端:啟用註冊程序,可以透過如下的curl command以得到 Authentication id                              #curl -X POST https://www.google.com/accounts/ClientLogin -d Email='wfbss.c2dm@gmail.com' -d Passwd='asd12#$56' -d accountType=HOSTED_OR_GOOGLE -d service=ac2dm -d source=TM-WFBSS-5
  2. Client端:需要在被認可的device上面,啟動C2DM 服務,方可以拿到 registration id,目前側試過,Emulator或 使用Android x86 的vm都可以使用
  3.  第三方首先要先啟動一個registration Intent到C2DM的SERVER (com.google.android.c2dm.intent.REGISTER),且這Intent必須但兩個參數,第一個是SENDER ID,第二個是application ID參數說明請看這。
  4. 如果這個registration成功了,C2DM的Server會回傳(broadcast)一個registration ID,這時候Android applicaiton要把這registration ID先存起來,待會用。(Google可能會一段時間就去refresh這個registration ID)
  5. 完成註冊以及取得resgistration ID以後,Android App必須把此ID傳到自己的server上去。Server一樣得把這ID存起來。

註:register ID會存活直到你unregister,或者直到Google refresh為止。

 



2. Sending a message
  1. 在send a message之前,必須確認Android appSever上已經有 resgistration  ID了,以及Sever必須有ClientLogin authorization token. 至於怎麼取得這個token,可以去看Google官網說明
  2. 完成上面的以後,首先,Sever必須先send訊息至C2DM Sever上
  3. Google收到以後,會先存起來,以免Android device是inactive的狀態。
  4. 當Device是online的狀態,Google就會send訊息至device上。
 



3. Receiving a Message
  1. 首先Android OS會先收到這則Message,
  2. 接著Android OS會把這則訊息,會根據package name發送到含有註冊com.google.android.c2dm.intent.RECEIVE的app上去
  3. 最後,該app就會從自己註冊的RECEIVER的Intent裡收到message,就可以處理資料了。

Robot Framework

 

 

Robot Framework 是一個自動測試框架

 

 

1. High-level architecture

NewImage

 

2.檔案架構

Test suit directly/ [subsuit directory | test case file] : include many test cases

                             /initialization file

 

建議的檔案目錄:

1.Test libraries:  lowest-level keywords

2.Resource files with variables and higher-level user keywords

3.Variable files to provide more flexible ways to create variables than resource files

 

3. Test data tables

Different test data tables
Table nameUsed forAliases
Setting table
2) Defining metadata for test suites and test cases
Setting, Settings, Metadata
Variable tableDefining variables that can be used elsewhere in the test dataVariable, Variables
Test case tableCreating test cases from available keywordsTest Case, Test Cases
Keyword tableCreating user keywords from existing lower-level keywordsKeyword, Keywords, User Keyword, User Keywords
 

 

4. Test setup and teardown

  Test setup:  Executed before a test case

  Teardown:  Executed after a test case

 

Test setup and teardown examples
SettingValueValueValue
Test SetupOpen ApplicationApp A 
Test TeardownClose Application  
Test CaseActionArgumentArgument
Default values[Documentation]Setup and teardownfrom setting table
 Do Something  
    
Overridden setup[Documentation]Own setup, teardownfrom setting table
 [Setup]Open ApplicationApp B
 Do Something  
    
No teardown[Documentation]Default setup, noteardown at all
 Do Something  
 [Teardown]  
    
No teardown 2[Documentation]Using special NONE,works with 2.5.6
 Do Something  
 [Teardown]NONE 
    
Using variables[Documentation]Setup and teardowngiven as variables
 [Setup]${SETUP} 
 Do Something  
 [Teardown]${TEARDOWN} 

 

5.Test case styles

*1.keyword-driven style

*2.data-driven style

*3.behaviro-driven style

 

6.Variable types:

*1 Scalar variables

It is possible to use list variables as scalar variables containing lists simply by replacing @ with $. This makes it possible to use list variables with list related keywords, for example, from BuiltIn and Collections libraries. This feature works only if there is no scalar variable with same base name as the list variable has. In these cases the scalar variable has precedence and its value is used instead.

Using list variables as scalars
Test CaseActionArgumentArgumentArgument
Example@{items} =Create Listfirstsecond
 Length Should Be${items}2 
 Append To List${items}third 
 Length Should Be${items}3 
 Remove From List${items}1 
 Length Should Be${items}2 
 Log Many@{items}  

*2 list variables: only can be used with some of settings

Using list variables with settings
SettingsValueValueComment
LibraryExampleLibrary@{LIB ARGS}# This works
Library${LIBRARY}@{LIB ARGS}# This works
Library@{NAME AND ARGS} # This does not work
Suite SetupSome Keyword@{KW ARGS}# This works
Suite Setup${KEYWORD}@{KW ARGS}# This works
Suite Setup@{KEYWORD} # This does not work
Default Tags@{TAGS} # This works

*3 environment variables

Environment variables set in the operating system before the test execution are available during it, and it is possible to create new ones with the keyword Set Environment Variable or delete existing ones with the keyword Delete Environment Variable, both available in the OperatingSystem library. Because environment variables are global, environment variables set in one test case can be used in other test cases executed after it. However, changes to environment variables are not effective after the test execution.

Using environment variables
Test CaseActionArgumentArgument
Env VariablesLogCurrent user: %{USER} 
 Run%{JAVA_HOME}${/}javac

 

 

 

Built-in variables

Available operating-system-related built-in variables
VariableExplanation
${CURDIR}An absolute path to the directory where the test data file is located. This variable is case-sensitive.
${TEMPDIR}An absolute path to the system temporary directory. In UNIX-like systems this is typically /tmp, and in Windows c:\Documents and Settings\<user>\Local Settings\Temp.
${EXECDIR}An absolute path to the directory where test execution was started from. New in Robot Framework 2.1.
${/}The system directory path separator. / in UNIX-like systems, \ in Windows.
${:}The system path element separator. : in UNIX-like systems and ; in Windows.

Mock and Stub

http://osherove.com/blog/2007/9/16/mocks-and-stubs-the-difference-is-in-the-flow-of-information.html

 

Mac 下好用的文字編輯軟體:Sublime Text 2

其實這個軟體已經下載了大概快半年了,但一直沒仔細研究他,只覺得這個編輯器文字很簡潔,

今天因為看到軟體有更新,就連上他的官網,剛好看到的他的demo才發現,他的功能其實滿強的

如果好好研究的話,應該可以加速文件編輯速度

 

例如選取多行的文字,要把它轉到一個list裡面,就可以使用下面的組合技完成任務

1.選取多行後,按⇧⌘L 

 

軟體下載:http://www.sublimetext.com

 

 

2.如何透過Package Control 安裝其他額外的套件

command+shift+p: 叫出pakage control 套件

在command line 輸入:install package

接者系統就會列出一推套件可以選擇安裝,在此我要安裝的套件是PlainTask

就輸入PlainTask,系統即會開始搜尋並安裝

 

 

3.常用快速鍵

 

 

影片介紹

https://tutsplus.com/course/improve-workflow-in-sublime-text-2/#getting_started

2013年1月18日 星期五

Mac OS Home and End 按鍵

在windows編輯文字檔案時,有好用的Home 跟End  (將游標移到句子的前面跟後面)的快速鍵,但自從轉移到MBP後,卻找不到類似的快速鍵,現在才知道,原來還是有快速鍵可以使用 control+A   等於 Home, Control+E 等於End

2013年1月17日 星期四

Anki 外掛:Addons:

官方網站如下:https://ankiweb.net/shared/addons/

 

Addons:安裝方法,只要從Anki軟體工具輸入代碼,例如這個

Chinese support v. 0.6.4

代碼為3448800906,只要輸入後,系統即會自動下載

 

https://ankiweb.net/shared/info/3448800906

2013年1月16日 星期三

Anki: 如何編寫自己的牌組

主要參考文件:

Anki 牌組的架構說明

 

目的:可以透過卡片的範例設計,讓學習效率變好,或者利用網路字典,節省還要查詢單字意思的功夫,只要單純存入生字部分即可

 

1.重點提示: field :可以想成之後可以在卡片中使用的變數名稱:

例如下圖的範例:我建立了四個field:   Charactor, Pronunciation,Meaning,Examples之後,就可以把這四個當成變數元素,自己設定template,決定要在

範例中顯示的範例

NewImage

 

 

2.如果要更偷懶,連字典都不查的話,也可以在card內容,填入下面類似的內容

<iframe src="http://tw.dictionary.yahoo.com/search?p={{text:Front}}&fr=yfp&ei=utf-8&v=0" width=1024 height=600 ></iframe>

 

{{text:Front}}==> 表示取出field變數 Front中的文字,並送出查詢,如果你確認你的網路速度還可以的話,也可以如此加速你的編輯卡篇速度

 

3.匯入單字

最簡單的format,就是使用,分隔的csv檔案,如果我只是需要一份生字表,基本上應該只要每一行對應一個單字,然後直接匯入,透過yahoo字典自動查詢,如此就可以把時間完完整整的省下來



4.在Mac 下面的話,可以配合快速鍵command+enter達到快速輸入

Apple Configurator: 企業執行Mass deploy for iOS的工具

這個工具其實在去年三月就release了,只是我一直沒用過,今天偶然的狀態下發現,稍微玩了一下,就不小心把我的iphone回覆成出廠值,還好我昨天還有針對自己的iphone做備份,還不算太悲劇,

Mac 下閱讀PDF軟體推薦: 內建的preview

2013/11/22更新,發現一個好用的替代軟體,PDFNut,一樣支援單字直接查詢,而且是免費的
https://itunes.apple.com/tw/app/id588109295?mt=12

自從換到Mac OS平台後,對於可以內建字典的功能一直很喜愛,只要看到生字,直接用三個手指頭點一下,就可以叫出字典, 不過當我需要閱讀的文件是pdf格式時,到了pdf卻沒辦法這樣使用,以前在windows平台,因為自己有購買Dr.eye,所以在閱讀pdf還是可以點選生字, 叫出字典查詢,但到了Mac卻不知道該如何使用才好,用acrobat pdf reader閱讀就無法使用內建的hot key. 後來在偶然的機會下看到原來內建的preview軟體也可以閱讀pdf檔案,測試了一下,果然內建的就支援了
,使用方法如下
1.看到生字,在生字上直接使用三個手指點選,就會帶出內建的字典 (關於字典檔擴充,可以參考之前的文章)
2.如果內建字典同時啟用多種的話,會看到不會一次顯示出單字的翻譯,一個是直接點選所要的字典,另外帶出字典的視窗, 或者點選.....的部份,會在叫出來的字典視窗中在顯示下一層的單字意思,如果還是覺得麻煩,就是把字典啟用三種以內,這樣應該不用再額外點選查詢即可以看到翻譯的生字內容


** 2020備註:如果你發現無法使用三指選取取 請記得更改設定


2013年1月4日 星期五

新聞評斷: 釣小管變淫照 同事惡搞 公司挨罰10萬

圖片請參考下列ETtoday的新聞連結

http://www.ettoday.net/news/20130103/148120.htm

 

看完圖片,真的覺得同事被告,公司被罰只是剛剛好,這種類似集體罷凌的狀況實在不可取,其實在外面工作久了,真的會常常遇到一些同事開黃色笑話,

很多一點都不好笑,都不知道為什麼會肉麻當有趣

2013年1月2日 星期三

on premises services vs on Demand servcies (SaaS,software as services)

On premises software是指相對於SaaS而言的一種名詞,有人翻譯成本地授權軟體,基本上就是只安裝在本地(自家公司)中的軟體,如果是屬於client server架構的軟體,則通常client 跟Server都會安裝在公司內部,而SaaS則通常Cleint 會安裝在自家公司,但Server則會安裝在軟體服務商本身的data center中

How to restore a deleted onenote page

復原不小心誤刪的onenote