被病理殺爆之後,為放鬆&雪恥來研究一下所謂的T轉
http://forum.gamer.com.tw/C.php?page=1&bsn=19950&snA=991
這篇寫得很好…真是令人恍然大悟…
http://www.wretch.cc/blog/will840530/13256029
T轉詳解,針對上篇未說明的"無限T轉"作了非常詳盡的說明
http://www.teamliquid.net/forum/viewmessage.php?topic_id=175252
英文說明"st stacking",以上"無限t轉"文章應該都參考自此篇
http://apa0318.net63.net/ST_stacking-Opening.html
開場方式有系統的歸類為三種,我實驗了四套系統,這個最經得起考驗,又好記
http://www.ptt.cc/bbs/tetris/M.1313747783.A.C6D.html
這篇偏對戰…放著先
連這玩意兒也有人玩得這麼透徹,只能說…Orz
http://home.gamer.com.tw/creationDetail.php?sn=1505730
留四總教學,是下一個要學習的陣法(如果有時間學的話 XDDD)
2012年11月30日 星期五
2012年11月5日 星期一
取得ftp檔案列表
使用wget
http://stackoverflow.com/questions/7261140/wget-only-the-file-names-in-an-ftp-directory
wget -r --no-remove-listing --spider ftp://uid:pwd@ip:port/
ps.中文檔名的處理,要重新編譯wget(蛤?)
http://zeroplex.blogspot.tw/2012/08/wget.html
1.14版開始ssl參數必需額外指定,configure時加上 --with-ssl=openssl
http://stackoverflow.com/questions/7261140/wget-only-the-file-names-in-an-ftp-directory
wget -r --no-remove-listing --spider ftp://uid:pwd@ip:port/
ps.中文檔名的處理,要重新編譯wget(蛤?)
http://zeroplex.blogspot.tw/2012/08/wget.html
1.14版開始ssl參數必需額外指定,configure時加上 --with-ssl=openssl
2012年10月30日 星期二
grub開機選單管理
請安裝
詳參
http://www.webupd8.org/2012/09/grub-customizer-30-released.html
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=235434
https://wiki.ubuntu-tw.org/index.php?title=GRUB2%E4%B8%AD%E6%96%87%E6%8C%87%E5%8D%97%E7%AC%AC%E4%BA%8C%E7%89%88%28%E4%B8%8A%EF%BC%89
grub-customizersudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
詳參
http://www.webupd8.org/2012/09/grub-customizer-30-released.html
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=235434
https://wiki.ubuntu-tw.org/index.php?title=GRUB2%E4%B8%AD%E6%96%87%E6%8C%87%E5%8D%97%E7%AC%AC%E4%BA%8C%E7%89%88%28%E4%B8%8A%EF%BC%89
2012年9月29日 星期六
Git, Git X Dropbox (or Google Drive), Git X Emacs
共筆或考古詳解的協作流程,在初期(共筆->上課時,考古->上課時或工作剛分派時)較傾向於使用Google文件的協作,因為大家比較會同時進行,debug或diff的需求比較沒有需要,或是根本來不及趕上文件本身的變化速度。課堂結束或考古解題初步完成後,就可以把文件匯出為輕量級標記語言(html=> 黑魔法利器pandoc =>org mode, doc=> odt ==> odt2org ==>org mode, pdf => poppler 的 pdf2html => html)以納入 git 進行版本控制
Git 教學(2):Git Branch 的操作與基本工作流程
Git 情境劇:告訴你使用 Git 時什麼情況該下什麼指令
3分鐘學會基本使用。情境劇這篇整理了很多指令,可以印一份下來參考。
http://www.cheat-sheets.org/saved-copy/git-cheat-sheet.pdf
看得懂英文的話,這份印下來很好用
□ [教學] Git使用教學 Part 1 -- 新手上路
□ [教學] Git使用教學 Part 2 -- 控制版本
這一系列用很簡單的例子講得很深入
Git教學:初學者使用心得分享(Windows)
如作者所言,是windows面向
正體中文 的Git Magic電子書。嚴格來說,翻得有點生硬,不如直接看原文的好。
□ [教學] Git使用教學 Part 3 -- 多人作業 延續之前提到的系列,講述用--bare選項來使雲端空間成為server的方法
這篇寫得滿不錯,設定的部份相當值得參考,初學emacs的話可以經常開著這頁
Hyperlinks
org mode的hyperlinks建立的方法,我覺得很重要
Article about using Emacs for work with version control systems 廣泛地討論了在emacs中使用git的方法,有一般化模組(VC, DVC)及特殊模組兩大類,其中 Work with Git 特別說明了git的模組。
(custom-set-variables
'(org-emphasis-alist
(quote
(("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("`" org-code "
" "") ("=" org-code "
)))
Git
Git 教學(1):Git的基本使用Git 教學(2):Git Branch 的操作與基本工作流程
Git 情境劇:告訴你使用 Git 時什麼情況該下什麼指令
3分鐘學會基本使用。情境劇這篇整理了很多指令,可以印一份下來參考。
http://www.cheat-sheets.org/saved-copy/git-cheat-sheet.pdf
看得懂英文的話,這份印下來很好用
□ [教學] Git使用教學 Part 1 -- 新手上路
□ [教學] Git使用教學 Part 2 -- 控制版本
這一系列用很簡單的例子講得很深入
Git教學:初學者使用心得分享(Windows)
如作者所言,是windows面向
正體中文 的Git Magic電子書。嚴格來說,翻得有點生硬,不如直接看原文的好。
Git X Dropbox (or Google Drive)
Git教學:Git的遠端操作及利用Dropbox建立Server進行協同開發(Windows)□ [教學] Git使用教學 Part 3 -- 多人作業 延續之前提到的系列,講述用--bare選項來使雲端空間成為server的方法
Emacs
普通人(非程式設計師)的.emacs設定檔這篇寫得滿不錯,設定的部份相當值得參考,初學emacs的話可以經常開著這頁
Hyperlinks
org mode的hyperlinks建立的方法,我覺得很重要
Git X Emacs
Emacs学习笔记(14):在Emacs中使用gitArticle about using Emacs for work with version control systems 廣泛地討論了在emacs中使用git的方法,有一般化模組(VC, DVC)及特殊模組兩大類,其中 Work with Git 特別說明了git的模組。
Org-mode
我認為粗體、斜體、底線、刪除線等標記除了字體上的強調外,在顏色上也應該有所強調。雖然我們可以在菜單的“Org"-> "Customize"->"Expand This Menu"後於“Org"-> "Customize"->"Customize"->"Org Appearance"->"Org Empahasis Alist..."加入:background "red"這樣的設置,不過還是滿希望網上有現成的設定可利用…目前看到的解決方式多半是在~/.emacs中設定(custom-set-variables
'(org-emphasis-alist
(quote
(("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("`" org-code "
" "" verbatim) ("~" org-verbatim "" "" verbatim) ("+" (:strike-through t) "" "" verbatim)))))
.emacs常用設定及org mode指令速查
.emacs常用設定
第一常用的應該是還原上次桌面 ,參考 DeskTop 中的 Auto-Saving the Desktop 及 Specifying Files Not to be Opened 還有 Automatically Overriding Stale Locks 。第二常用是最大化視窗,win32平台請參考 FullScreen 。
再來是顏色的調整,參考 ColorTheme 。其中適用於 org-mode 者請參見 color themes , customizing Org appearance。另外,Org-mode FAQ 中的"Org-mode has a lot of colors? How can I change them?"有講到,要知道游標所在位置的話可按
C-u C-x = ,要修改則按 M-x customize-face [RET] ,否則使用 customize-group 的話還要找出那個 group ,滿麻煩的。舉例來說,現在要修改 org-level-1 讓字體變大。在org載入後下達
(set-face-attribute 'org-level-1 nil :height 240)
其它常用設置可參考 Emacs 从入门到精通 ,其中 undo 的快捷鍵、them、org、gtd、git的配置滿值得參考的。
範例
coldnew 的 emacs 配置https://github.com/coldnew/coldnew-emacs/blob/master/config.org
org mode指令速查
* 一般M-S-ENTER (增加新item)===>類似於mindjet的Ins鍵
Tab (展開/折疊)===>類似於mindjet的C-'D'鍵
S-Tab (全部展開/折疊)===>類似於mindjet的M-C-'.'鍵
M-S Left/Right | 減/加星(層級)===>類似於大綱模式的M-S-Right/Left鍵
* Outline
C-c C-n/p (下/上個標題)===>類似於mindjet的右方向鍵
C-c C-f/b (下/上個同級的標題)===>類似於mindjet的上下方向鍵
C-c C-u (上一級標題)===>類似於mindjet的左方向鍵
C-c C-j (jump?)
cheat sheets(小抄?)
http://orgmode.org/orgcard.pdf 非常的齊全,下載的org-7.9.2.zip中也有http://emacsclub.github.com/html/org_tutorial.html 略長,但說明文字望文生義,不錯;但是側重在export 的部份
2012年9月26日 星期三
ubuntu 12.04使用emacs的org mode內嵌圖片/pdf連結方法
網路上有很多講到iimage的文章,但是使用ubuntu 12.04原來附的emacs 23是不能動作的。解決方式參考 http://orgmode.org/worg/org-faq.html 更新 org
如此下達 M-x org-display-inline-images 或C-c C-x C-v才會顯示圖片
還有設置 pdf 的閱讀器,不要使用 emacs 直接去打開 pdf 檔,要加入 openwith 設定於.emacs中,請參考 Emacs的插件openwith.el 。在win32平台上直接打開~/.emacs檔即可,不用去找它的位置,因為經常隨版本而改變 (冏>)
在以命令列啟動 adobe reader 時可以下達參數以指定開啟頁面,可參考 Adobe Reader Command Line Reference [closed] ,參數列表可見 http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf 。而在org mode中的外部連結有 shell 參數可指定,可參考 External links 。目錄名稱需使用8.3形式,可參考 http://en.wikipedia.org/wiki/8.3_filename 。因此連結形式為
[[shell:C:\Progra~1\Adobe\Reader~1.0\Reader\AcroRd32.exe /A "page=149&pagemode=none" C:\a.pdf][a]]
想要使各平台使用一致的file:形式連結,需要改寫 org-file-apps-defaults-gnu 及 org-file-apps-defaults-windowsnt 。節錄相關說明如下:
目前看來以下兩篇講的都是如何修改 evince 為預設 pdf 文件檢視器
Org-mode export to LaTeX: temptation or nuisance?
How do I make Org-mode open PDF files in Evince?
綜合起來,可以work的版本如下,注意數字的部分\d要改成[0-9]才能工作,不知道為何…
;; PDFs visited in Org-mode are opened in Evince (and not in the default choice)
(eval-after-load "org"
'(progn
;; Change .pdf association directly within the alist
(setcdr (assoc "\\.pdf\\'" org-file-apps) "evince %s")
(add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'" . "evince -p %1 %s") t)
))
win32上修改為
;; PDFs visited in Org-mode are opened in Evince (and not in the default choice)
(eval-after-load "org"
'(progn
;; Change .pdf association directly within the alist
(if (assoc "\\.pdf\\'" org-file-apps)
(setcdr (assoc "\\.pdf\\'" org-file-apps) "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe %s")
(add-to-list 'org-file-apps '("\\.pdf\\'" . "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe %s") t)
)
(add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'" . "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe /A page=%1 %s") t)
)
)
如此下達 M-x org-display-inline-images 或C-c C-x C-v才會顯示圖片
還有設置 pdf 的閱讀器,不要使用 emacs 直接去打開 pdf 檔,要加入 openwith 設定於.emacs中,請參考 Emacs的插件openwith.el 。在win32平台上直接打開~/.emacs檔即可,不用去找它的位置,因為經常隨版本而改變 (冏>)
在以命令列啟動 adobe reader 時可以下達參數以指定開啟頁面,可參考 Adobe Reader Command Line Reference [closed] ,參數列表可見 http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf 。而在org mode中的外部連結有 shell 參數可指定,可參考 External links 。目錄名稱需使用8.3形式,可參考 http://en.wikipedia.org/wiki/8.3_filename 。因此連結形式為
[[shell:C:\Progra~1\Adobe\Reader~1.0\Reader\AcroRd32.exe /A "page=149&pagemode=none" C:\a.pdf][a]]
想要使各平台使用一致的file:形式連結,需要改寫 org-file-apps-defaults-gnu 及 org-file-apps-defaults-windowsnt 。節錄相關說明如下:
- Regular expression which contains (non-shy) groups:
...
Example: (\"\\.pdf::\\(\\d+\\)\\'\" . \"evince -p %1 %s\")
to open [[file:document.pdf::5]] with evince at page 5.
目前看來以下兩篇講的都是如何修改 evince 為預設 pdf 文件檢視器
Org-mode export to LaTeX: temptation or nuisance?
How do I make Org-mode open PDF files in Evince?
綜合起來,可以work的版本如下,注意數字的部分\d要改成[0-9]才能工作,不知道為何…
;; PDFs visited in Org-mode are opened in Evince (and not in the default choice)
(eval-after-load "org"
'(progn
;; Change .pdf association directly within the alist
(setcdr (assoc "\\.pdf\\'" org-file-apps) "evince %s")
(add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'" . "evince -p %1 %s") t)
))
win32上修改為
;; PDFs visited in Org-mode are opened in Evince (and not in the default choice)
(eval-after-load "org"
'(progn
;; Change .pdf association directly within the alist
(if (assoc "\\.pdf\\'" org-file-apps)
(setcdr (assoc "\\.pdf\\'" org-file-apps) "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe %s")
(add-to-list 'org-file-apps '("\\.pdf\\'" . "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe %s") t)
)
(add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'" . "C:\\Progra~1\\Adobe\\Reader~1.0\\Reader\\AcroRd32.exe /A page=%1 %s") t)
)
)
訂閱:
文章 (Atom)

