Permalink
Browse files

Goodbye Jekyll, and say hello to Pelican.

  • Loading branch information...
1 parent 2ad291c commit c5d8fc87795e8c3b5e6b067a2c87397380c9c378 @dram committed Sep 13, 2012
Showing with 11,942 additions and 474 deletions.
  1. 0 .nojekyll
  2. +13 −2 Makefile
  3. +0 −4 _config.yml
  4. +0 −22 _includes/blog_page.html
  5. +16 −0 _sources/pages/blog/about.md
  6. +2 −0 _sources/pages/blog/archive.md
  7. +2 −0 _sources/pages/home.md
  8. +2 −4 { → _sources/pages}/logo/index.md
  9. +2 −4 { → _sources/pages}/logo/tut-01.md
  10. +2 −4 { → _sources/pages}/logo/tut-02.md
  11. +2 −4 { → _sources/pages}/logo/tut-03.md
  12. +2 −4 { → _sources/pages}/logo/tut-04.md
  13. +2 −4 { → _sources/pages}/logo/tut-05.md
  14. +2 −4 { → _sources/pages}/logo/tut-06.md
  15. +2 −4 { → _sources/pages}/logo/tut-07.md
  16. +1 −4 {_posts → _sources/posts}/2007-10-30-notes-on-c-traps-and-pitfalls-ch1.md
  17. +1 −4 {_posts → _sources/posts}/2007-11-11-notes-on-c-traps-and-pitfalls-ch2.md
  18. +1 −4 {_posts → _sources/posts}/2007-11-15-notes-on-netbsd.md
  19. +1 −4 {_posts → _sources/posts}/2007-11-17-notes-on-c-traps-and-pitfalls-ch3.md
  20. +1 −4 {_posts → _sources/posts}/2007-11-24-notes-on-c-traps-and-pitfalls-ch4.md
  21. +1 −4 {_posts → _sources/posts}/2007-12-07-continuation-passing-style.md
  22. +1 −4 {_posts → _sources/posts}/2007-12-07-foldr-and-foldl.md
  23. +1 −4 {_posts → _sources/posts}/2007-12-07-more-general-form-of-case-in-haskell.md
  24. +1 −4 {_posts → _sources/posts}/2007-12-07-string-manipulation-in-haskell.md
  25. +1 −4 {_posts → _sources/posts}/2008-04-03-evince-and-dbus.md
  26. +1 −4 {_posts → _sources/posts}/2008-04-06-vim-and-lisp-and-screen.md
  27. +1 −4 {_posts → _sources/posts}/2008-04-19-quack-mode-settings.md
  28. +1 −4 {_posts → _sources/posts}/2008-05-06-chicken-setup-in-win.md
  29. +1 −4 {_posts → _sources/posts}/2008-05-10-compile-chicken-in-win.md
  30. +1 −4 {_posts → _sources/posts}/2008-05-20-web-archive.md
  31. +1 −4 {_posts → _sources/posts}/2008-05-27-chicken-or-scheme-or-lisp-environment-in-vim.md
  32. +1 −4 {_posts → _sources/posts}/2008-06-12-drive-of-logitech-v320-in-slackware.md
  33. +1 −4 {_posts → _sources/posts}/2008-06-21-a-vim-color-scheme.md
  34. +1 −4 {_posts → _sources/posts}/2008-08-05-vim-tip-toggle-two-recent-buffers.md
  35. +1 −4 {_posts → _sources/posts}/2008-08-07-256-color-support-in-urxvt.md
  36. +1 −4 {_posts → _sources/posts}/2008-08-29-learning-python-defaultdict.md
  37. +1 −4 {_posts → _sources/posts}/2008-08-30-learning-python-dict.iterkeys-vs-dict.keys.md
  38. +1 −4 {_posts → _sources/posts}/2008-08-30-learning-python-enumerate.md
  39. +1 −4 {_posts → _sources/posts}/2008-08-31-exception-vs-if-else.md
  40. +1 −4 {_posts → _sources/posts}/2008-08-31-mouse-support-for-vim-in-screen.md
  41. +1 −4 {_posts → _sources/posts}/2008-08-31-vimxmms2-vims-xmms2-client.md
  42. +1 −4 {_posts → _sources/posts}/2008-09-01-vimxmms2-0.3-released.md
  43. +1 −4 {_posts → _sources/posts}/2008-09-02-book-think-python.md
  44. +1 −4 {_posts → _sources/posts}/2008-09-04-vimmp-0.1.1-released.md
  45. +1 −4 {_posts → _sources/posts}/2008-09-18-nethack-and-cygwin.md
  46. +1 −4 {_posts → _sources/posts}/2008-09-21-learning-python-__str__-and-__repr__.md
  47. +1 −4 {_posts → _sources/posts}/2008-09-28-usage-of-rcsid.md
  48. +1 −4 {_posts → _sources/posts}/2008-09-29-man-in-vim.md
  49. +1 −4 {_posts → _sources/posts}/2008-10-04-disable-the-orange-highlight-in-netbsd-terminal.md
  50. +1 −4 {_posts → _sources/posts}/2008-10-07-abnormal-sound-of-the-disk-when-shutdown-netbsd.md
  51. +1 −4 {_posts → _sources/posts}/2008-10-07-netbsd-resources.md
  52. +1 −4 {_posts → _sources/posts}/2008-10-16-keyword-register.md
  53. +1 −4 {_posts → _sources/posts}/2008-11-18-netbsd-5.0-beta.md
  54. +1 −4 {_posts → _sources/posts}/2008-12-01-scim-and-vim.md
  55. +1 −4 {_posts → _sources/posts}/2009-03-24-lightweight-chm-reader-in-linux.md
  56. +1 −4 {_posts → _sources/posts}/2009-05-14-find-info-about-errno.md
  57. +1 −4 {_posts → _sources/posts}/2009-05-14-when-to-use-typedef.md
  58. +1 −4 {_posts → _sources/posts}/2009-05-24-sub-pixel-in-squeak.md
  59. +1 −4 {_posts → _sources/posts}/2009-05-25-new-vs-initialize.md
  60. +1 −4 {_posts → _sources/posts}/2009-06-01-__mptr-in-container_of.md
  61. +1 −4 {_posts → _sources/posts}/2009-06-05-linked-lisk-queue-h.md
  62. +1 −4 {_posts → _sources/posts}/2009-06-06-inttypes-h-and-stdint-h.md
  63. +1 −4 {_posts → _sources/posts}/2009-06-07-zsh-vi-mode-indicator.md
  64. +1 −4 {_posts → _sources/posts}/2009-09-23-bouncingatomsmorph-in-pharocore.md
  65. +1 −4 {_posts → _sources/posts}/2009-09-23-start-to-learn-pharo.md
  66. +1 −4 {_posts → _sources/posts}/2009-09-24-thread-mechanism-in-squeak-ui.md
  67. +1 −4 {_posts → _sources/posts}/2009-09-26-closure-in-pharo-and-squeak.md
  68. +1 −4 {_posts → _sources/posts}/2009-09-26-startup-process-of-the-world-in-pharo.md
  69. +1 −4 {_posts → _sources/posts}/2009-10-01-find-messages-in-squeak.md
  70. +1 −4 {_posts → _sources/posts}/2009-10-02-atommorph-example.md
  71. +1 −4 {_posts → _sources/posts}/2009-10-02-atommorph-new-openinworld.md
  72. +1 −4 {_posts → _sources/posts}/2009-10-02-window-switch-in-pharo.md
  73. +1 −4 {_posts → _sources/posts}/2010-03-25-see-r-at-in-gforth.md
  74. +1 −4 {_posts → _sources/posts}/2010-04-21-dpc-storm.md
  75. +1 −4 {_posts → _sources/posts}/2010-08-03-path-in-daemon.md
  76. +1 −4 {_posts → _sources/posts}/2010-08-05-file-lock-in-shell.md
  77. +1 −4 {_posts → _sources/posts}/2010-08-14-flock-in-linux.md
  78. +1 −4 {_posts → _sources/posts}/2010-08-14-pidfile-in-daemon.md
  79. +1 −4 {_posts → _sources/posts}/2010-08-15-modify-file-in-script-language.md
  80. +1 −4 {_posts → _sources/posts}/2010-08-15-tmpfile-in-c.md
  81. +1 −4 {_posts → _sources/posts}/2010-08-16-pipeline-in-shell.md
  82. +1 −4 {_posts → _sources/posts}/2010-09-18-single-list-in-c.md
  83. +1 −4 {_posts → _sources/posts}/2010-09-23-recursion-and-iteration.md
  84. +1 −4 {_posts → _sources/posts}/2010-12-10-sigterm-in-parent-and-child-process.md
  85. +1 −5 {_posts → _sources/posts}/2011-03-09-export-chinese-pdf-from-asciidoc.md
  86. +1 −4 {_posts → _sources/posts}/2011-05-28-discovery-learning-in-etoys.md
  87. +1 −4 {_posts → _sources/posts}/2011-06-04-why-children-love-games.md
  88. +1 −4 {_posts → _sources/posts}/2011-06-06-etoys-a-logical-world.md
  89. +1 −4 {_posts → _sources/posts}/2011-07-16-an-example-project-in-etoys-tangram.md
  90. +1 −4 {_posts → _sources/posts}/2011-09-25-to-be-a-raindrop.md
  91. +1 −4 {_posts → _sources/posts}/2011-10-02-the-night-of-wild-chrysanthemum.md
  92. +1 −4 {_posts → _sources/posts}/2011-10-02-wind-please-let-me-fly.md
  93. +1 −4 {_posts → _sources/posts}/2011-10-04-growing-toward-the-sun.md
  94. +1 −4 {_posts → _sources/posts}/2011-10-05-a-squirrels-long-journey.md
  95. +1 −4 {_posts → _sources/posts}/2011-10-05-night-angel.md
  96. +1 −4 {_posts → _sources/posts}/2011-10-06-a-frogs-life.md
  97. +1 −4 {_posts → _sources/posts}/2012-02-03-logo-sketchpad-released.md
  98. +1 −4 {_posts → _sources/posts}/2012-02-16-common-lisp-scripting.md
  99. +1 −4 {_posts → _sources/posts}/2012-05-18-animation-and-childrens-education.md
  100. +11 −0 _sources/theme/templates/archive.html
  101. +9 −9 _layouts/post.html → _sources/theme/templates/article.html
  102. +6 −6 _layouts/blog.html → _sources/theme/templates/base.html
  103. +33 −0 _sources/theme/templates/home.html
  104. +25 −0 _sources/theme/templates/index.html
  105. +7 −0 _sources/theme/templates/page.html
  106. +2 −2 {_layouts → _sources/theme/templates}/tutorial.html
  107. +63 −0 blog/2007/10/30/notes-on-c-traps-and-pitfalls-ch1.html
  108. +104 −0 blog/2007/11/11/notes-on-c-traps-and-pitfalls-ch2.html
  109. +146 −0 blog/2007/11/15/notes-on-netbsd.html
  110. +126 −0 blog/2007/11/17/notes-on-c-traps-and-pitfalls-ch3.html
  111. +87 −0 blog/2007/11/24/notes-on-c-traps-and-pitfalls-ch4.html
  112. +104 −0 blog/2007/12/07/continuation-passing-style.html
  113. +76 −0 blog/2007/12/07/foldr-and-foldl.html
  114. +79 −0 blog/2007/12/07/more-general-form-of-case-in-haskell.html
  115. +107 −0 blog/2007/12/07/string-manipulation-in-haskell.html
  116. +57 −0 blog/2008/04/03/evince-and-dbus.html
  117. +92 −0 blog/2008/04/06/vim-and-lisp-and-screen.html
  118. +69 −0 blog/2008/04/19/quack-mode-settings.html
  119. +57 −0 blog/2008/05/06/chicken-setup-in-win.html
  120. +59 −0 blog/2008/05/10/compile-chicken-in-win.html
  121. +57 −0 blog/2008/05/20/web-archive.html
  122. +77 −0 blog/2008/05/27/chicken-or-scheme-or-lisp-environment-in-vim.html
  123. +73 −0 blog/2008/06/12/drive-of-logitech-v320-in-slackware.html
  124. +55 −0 blog/2008/06/21/a-vim-color-scheme.html
  125. +66 −0 blog/2008/08/05/vim-tip-toggle-two-recent-buffers.html
  126. +78 −0 blog/2008/08/07/256-color-support-in-urxvt.html
  127. +74 −0 blog/2008/08/29/learning-python-defaultdict.html
  128. +57 −0 blog/2008/08/30/learning-python-dict.iterkeys-vs-dict.keys.html
  129. +67 −0 blog/2008/08/30/learning-python-enumerate.html
  130. +89 −0 blog/2008/08/31/exception-vs-if-else.html
  131. +60 −0 blog/2008/08/31/mouse-support-for-vim-in-screen.html
  132. +56 −0 blog/2008/08/31/vimxmms2-vims-xmms2-client.html
  133. +58 −0 blog/2008/09/01/vimxmms2-0.3-released.html
  134. +56 −0 blog/2008/09/02/book-think-python.html
  135. +60 −0 blog/2008/09/04/vimmp-0.1.1-released.html
  136. +88 −0 blog/2008/09/18/nethack-and-cygwin.html
  137. +91 −0 blog/2008/09/21/learning-python-__str__-and-__repr__.html
  138. +60 −0 blog/2008/09/28/usage-of-rcsid.html
  139. +56 −0 blog/2008/09/29/man-in-vim.html
  140. +58 −0 blog/2008/10/04/disable-the-orange-highlight-in-netbsd-terminal.html
  141. +59 −0 blog/2008/10/07/abnormal-sound-of-the-disk-when-shutdown-netbsd.html
  142. +115 −0 blog/2008/10/07/netbsd-resources.html
  143. +62 −0 blog/2008/10/16/keyword-register.html
  144. +63 −0 blog/2008/11/18/netbsd-5.0-beta.html
  145. +57 −0 blog/2008/12/01/scim-and-vim.html
  146. +68 −0 blog/2009/03/24/lightweight-chm-reader-in-linux.html
  147. +82 −0 blog/2009/05/14/find-info-about-errno.html
  148. +65 −0 blog/2009/05/14/when-to-use-typedef.html
  149. +57 −0 blog/2009/05/24/sub-pixel-in-squeak.html
  150. +57 −0 blog/2009/05/25/new-vs-initialize.html
  151. +58 −0 blog/2009/06/01/__mptr-in-container_of.html
  152. +57 −0 blog/2009/06/05/linked-lisk-queue-h.html
  153. +60 −0 blog/2009/06/06/inttypes-h-and-stdint-h.html
  154. +70 −0 blog/2009/06/07/zsh-vi-mode-indicator.html
  155. +55 −0 blog/2009/09/23/bouncingatomsmorph-in-pharocore.html
  156. +55 −0 blog/2009/09/23/start-to-learn-pharo.html
  157. +55 −0 blog/2009/09/24/thread-mechanism-in-squeak-ui.html
  158. +77 −0 blog/2009/09/26/closure-in-pharo-and-squeak.html
  159. +60 −0 blog/2009/09/26/startup-process-of-the-world-in-pharo.html
  160. +58 −0 blog/2009/10/01/find-messages-in-squeak.html
  161. +71 −0 blog/2009/10/02/atommorph-example.html
  162. +66 −0 blog/2009/10/02/atommorph-new-openinworld.html
  163. +55 −0 blog/2009/10/02/window-switch-in-pharo.html
  164. +120 −0 blog/2010/03/25/see-r-at-in-gforth.html
  165. +60 −0 blog/2010/04/21/dpc-storm.html
  166. +59 −0 blog/2010/08/03/path-in-daemon.html
  167. +66 −0 blog/2010/08/05/file-lock-in-shell.html
  168. +58 −0 blog/2010/08/14/flock-in-linux.html
  169. +76 −0 blog/2010/08/14/pidfile-in-daemon.html
  170. +59 −0 blog/2010/08/15/modify-file-in-script-language.html
  171. +61 −0 blog/2010/08/15/tmpfile-in-c.html
  172. +59 −0 blog/2010/08/16/pipeline-in-shell.html
  173. +60 −0 blog/2010/09/18/single-list-in-c.html
  174. +170 −0 blog/2010/09/23/recursion-and-iteration.html
  175. +57 −0 blog/2010/12/10/sigterm-in-parent-and-child-process.html
  176. +83 −0 blog/2011/03/09/export-chinese-pdf-from-asciidoc.html
  177. +74 −0 blog/2011/05/28/discovery-learning-in-etoys.html
  178. +104 −0 blog/2011/06/04/why-children-love-games.html
  179. +76 −0 blog/2011/06/06/etoys-a-logical-world.html
  180. +100 −0 blog/2011/07/16/an-example-project-in-etoys-tangram.html
  181. +86 −0 blog/2011/09/25/to-be-a-raindrop.html
  182. +73 −0 blog/2011/10/02/the-night-of-wild-chrysanthemum.html
  183. +75 −0 blog/2011/10/02/wind-please-let-me-fly.html
  184. +72 −0 blog/2011/10/04/growing-toward-the-sun.html
  185. +70 −0 blog/2011/10/05/a-squirrels-long-journey.html
  186. +69 −0 blog/2011/10/05/night-angel.html
  187. +72 −0 blog/2011/10/06/a-frogs-life.html
  188. +62 −0 blog/2012/02/03/logo-sketchpad-released.html
  189. +166 −0 blog/2012/02/16/common-lisp-scripting.html
  190. +81 −0 blog/2012/05/18/animation-and-childrens-education.html
  191. +37 −5 blog/about.html
  192. +208 −10 blog/archive.html
  193. +1,593 −27 blog/atom.xml
  194. +249 −5 blog/index.html
  195. +160 −0 blog/index10.html
  196. +157 −0 blog/index11.html
  197. +127 −0 blog/index12.html
  198. +136 −0 blog/index13.html
  199. +132 −0 blog/index14.html
  200. +138 −0 blog/index15.html
  201. +257 −0 blog/index16.html
  202. +290 −0 blog/index17.html
  203. +179 −0 blog/index2.html
  204. +241 −0 blog/index3.html
  205. +209 −0 blog/index4.html
  206. +124 −0 blog/index5.html
  207. +176 −0 blog/index6.html
  208. +109 −0 blog/index7.html
  209. +104 −0 blog/index8.html
  210. +133 −0 blog/index9.html
  211. +220 −13 index.html
  212. +48 −0 logo/index.html
  213. +50 −0 logo/tut-01.html
  214. +63 −0 logo/tut-02.html
  215. +70 −0 logo/tut-03.html
  216. +48 −0 logo/tut-04.html
  217. +49 −0 logo/tut-05.html
  218. +49 −0 logo/tut-06.html
  219. +46 −0 logo/tut-07.html
  220. +102 −0 pelicanconf.py
View
No changes.
View
@@ -1,9 +1,20 @@
# Makefile for Sphinx documentation
#
-.PHONY: help clean html
+default: pelican
-default:
+.PHONY: pelican sphinx serve clean
+
+pelican:
+ pelican -s pelicanconf.py
+ rm -r feeds archives.html categories.html tags.html
+ mv index*.html blog/
+ mv home.html index.html
+
+serve:
+ python -m SimpleHTTPServer
+
+sphinx:
sphinx-build -b html _notes notes
@echo
@echo "Build finished."
View
@@ -1,4 +0,0 @@
-paginate: 5
-markdown: rdiscount
-permalink: /blog/:year/:month/:day/:title.html
-include: [_static, _sources]
@@ -1,22 +0,0 @@
-{% for post in paginator.posts %}
- <article>
- <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
- <time>{{ post.date | date: "%B %d, %Y" }}</time>
- {{ post.content }}
- </article>
-{% endfor %}
-
-<p id="more">
-{% if paginator.next_page %}
- <a href="/page{{ paginator.next_page }}/">&larr; older posts</a>
-{% endif %}
-
-{% if paginator.previous_page %}
- <a href=
- "{% if paginator.previous_page == 1 %}
- /blog
- {% else %}
- /page{{ paginator.previous_page }}
- {% endif %}">newer posts &rarr;</a>
-{% endif %}
-</p>
@@ -0,0 +1,16 @@
+Title: About
+
+<div id="about">
+
+<h1>关于我</h1>
+
+<img id="avatar" src="http://www.gravatar.com/avatar/259212db9cf6e76c8bfffbb013bb0e23.png"></img>
+
+<p>我,</p>
+<p>王欣,</p>
+<p>八七年生人,</p>
+<p>家乡浙江台州温岭,</p>
+<p>浙江大学电子信息技术及仪器专业本科毕业,</p>
+<p>现居杭州,就职于网络应用安全公司,从事Linux软件开发工作。</p>
+<p class="email"><img src="/images/mail.png"></img></p>
+</div>
@@ -0,0 +1,2 @@
+Template: archive
+Title: Archive
@@ -0,0 +1,2 @@
+Template: home
+Title: dram.me
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: LOGO画板
----
+Title: LOGO画板
+Template: tutorial
LOGO画板是基于 [LOGO语言](http://zh.wikipedia.org/zh/Logo%E8%AF%AD%E8%A8%80) 设计的用于培养儿童逻辑思维能力的程序。儿童可以通过组合一些基本动作来控制画笔的移动,从而绘制各种图形。
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程一:安装及使用
----
+Title: 教程一:安装及使用
+Template: tutorial
## 安装
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程二:界面及功能介绍
----
+Title: 教程二:界面及功能介绍
+Template: tutorial
LOGO画板的界面如下图所示:
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程三:基本词汇说明
----
+Title: 教程三:基本词汇说明
+Template: tutorial
LOGO画板中的基本词汇包括:前进、右转、抬笔、下笔、重复、是否以及四则运算。四则运算不用多做介绍,`是否` 将在随后的教程中再做介绍,下面主要说明其它几个基本词汇的使用。
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程四:控制区说明
----
+Title: 教程四:控制区说明
+Template: tutorial
控制区初始状态如下图所示:
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程五:自定义词汇
----
+Title: 教程五:自定义词汇
+Template: tutorial
## 定义动作
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程六:辅助功能
----
+Title: 教程六:辅助功能
+Template: tutorial
下面介绍LOGO画板中的一些辅助功能。
@@ -1,7 +1,5 @@
----
-layout: tutorial
-title: 教程七:实例
----
+Title: 教程七:实例
+Template: tutorial
以下列举一些实例,供参考。
@@ -1,7 +1,4 @@
----
-layout: post
-title: 《C陷阱与缺陷》读书笔记(第一章)
----
+Title: 《C陷阱与缺陷》读书笔记(第一章)
从同学那里借到了这本书,以前在电子书上看了一些,现在想系统地看看。顺便也在这刚开的博客里做一下笔记吧。:)
@@ -1,7 +1,4 @@
----
-layout: post
-title: 《C陷阱与缺陷》读书笔记(第2章)
----
+Title: 《C陷阱与缺陷》读书笔记(第2章)
##2.1 理解函数声明
@@ -1,7 +1,4 @@
----
-layout: post
-title: NetBSD零碎笔记
----
+Title: NetBSD零碎笔记
\[2008/11/14更新\]
@@ -1,7 +1,4 @@
----
-layout: post
-title: 《C陷阱与缺陷》读书笔记(第3章)
----
+Title: 《C陷阱与缺陷》读书笔记(第3章)
## 3.1 指针与数组
@@ -1,7 +1,4 @@
----
-layout: post
-title: 《C陷阱与缺陷》读书笔记(第4章)
----
+Title: 《C陷阱与缺陷》读书笔记(第4章)
## 4.1 什么是连接器
@@ -1,7 +1,4 @@
----
-layout: post
-title: Continuation Passing Style
----
+Title: Continuation Passing Style
注:以前在其他地方写的笔记,现在重新开始学习 Haskell,所以先搬过来。
@@ -1,7 +1,4 @@
----
-layout: post
-title: foldr 与 foldl
----
+Title: foldr 与 foldl
注:以前在其他地方写的笔记,现在重新开始学习 Haskell,所以先搬过来。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Haskell 中 case 的更一般形式
----
+Title: Haskell 中 case 的更一般形式
注:以前在其他地方写的笔记,现在重新开始学习 Haskell,所以先搬过来。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Haskell 中的字符串处理
----
+Title: Haskell 中的字符串处理
注:以前在其他地方写的笔记,现在重新开始学习 Haskell,所以先搬过来。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Evince和dbus
----
+Title: Evince和dbus
很长一段时间都在用ArchLinux,但最近又重新拿起Lisp,学这玩意儿还是在Debian方便,所以又开始用它了。
@@ -1,7 +1,4 @@
----
-layout: post
-title: VIM & Lisp & Screen配合使用
----
+Title: VIM & Lisp & Screen配合使用
主要需要完成的功能就是在VIM中将代码(比如一个defun)通过screen传到另一窗口的程序(比如SBCL)中执行。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Quack-mode的一些设置
----
+Title: Quack-mode的一些设置
(setq quack-pltcollect-dirs '("/usr/lib/plt/collects" "/usr/share/plt"))
@@ -1,7 +1,4 @@
----
-layout: post
-title: win下使用chicken-setup
----
+Title: win下使用chicken-setup
首先当然是要安装好MinGW开发环境,chicken只是将Scheme源文件转成C,真正的编译还是要由gcc来做。而在安装各种egg时,大部分都需要用到编译。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Win下编译Chicken
----
+Title: Win下编译Chicken
由于想对Chicken的错误显示格式稍作调整,所以需要自己编译Chicken。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Web Archive
----
+Title: Web Archive
今天找一篇 Larry Clapp 写的 Lisp with Vim,但那网站已经 down 掉了,记得之前用 google cache 访问过的,但现在怎么也找不到。无意间发现了这个网站。
@@ -1,7 +1,4 @@
----
-layout: post
-title: VIM下搭建Chicken(Scheme, Lisp)开发环境
----
+Title: VIM下搭建Chicken(Scheme, Lisp)开发环境
首先到 http://vim-chicken.googlecode.com 下载相关文件:csi-srv.scm, csi.py, scheme-dict.scm, ReadMe.txt。
@@ -1,7 +1,4 @@
----
-layout: post
-title: Slackware下驱动罗技V320
----
+Title: Slackware下驱动罗技V320
V320的中键还有向左向右点击的功能,Windows下可以通过简单的安装SetPoint来设置,而在Linux则需要一些设置。
@@ -1,7 +1,4 @@
----
-layout: post
-title: 一个不错的VIM配色
----
+Title: 一个不错的VIM配色
发现一个不错的VIM配色,链接在[这里][1],是从TextMate port过来的。
@@ -1,7 +1,4 @@
----
-layout: post
-title: VIM TIP - 切换最近编辑的两个buffer
----
+Title: VIM TIP - 切换最近编辑的两个buffer
在两个最近编辑的文件间切换。
@@ -1,7 +1,4 @@
----
-layout: post
-title: 给URxvt加入256色支持
----
+Title: 给URxvt加入256色支持
以前一直不知道,原来默认URxvt只能支持88色,只有在打了patch之后才能支持256色。而那个patch其实已经随URxvt的源码一起发布了,藏在doc文件夹中。
@@ -1,7 +1,4 @@
----
-layout: post
-title: "学习Python: defaultdict"
----
+Title: "学习Python: defaultdict"
defaultdict是Python2.5新加入的一个容器,在collections模块中。至于这个有什么功用,可以看一下GvR最初的[Proposal][1]。那个Thread很长,看了几条回复就再没耐性看下去了,直接跳到GvR的阶段性[总结][2],其实大概也是最终版本了,因为我找不着GvR在后续邮件中再有长篇大论了。当然那只是Proposal,最终实现还是要看文档和代码。
@@ -1,7 +1,4 @@
----
-layout: post
-title: "学习Python: dict.iterkeys vs dict.keys"
----
+Title: "学习Python: dict.iterkeys vs dict.keys"
Python的字典容器有三个 `iter*` 的方法,除iterkeys外,还有iteritems, itervalues,之前我一直没注意到还有这些函数。从名字就可以看出来,它们和keys, items, values的区别,前者返回递代器,而后者返回列表。但既然有了 `iter*` 了,那返回列表的那些函数为什么还存在呢?不是`list(d.iterkeys())`转化一下就可以了吗?这不是Python的风格啊?
@@ -1,7 +1,4 @@
----
-layout: post
-title: "学习Python: enumerate"
----
+Title: "学习Python: enumerate"
以前为在遍历一个列表的同时得到索引号,我会这样做:
@@ -1,7 +1,4 @@
----
-layout: post
-title: 异常vs.判断
----
+Title: 异常vs.判断
这两天python-list上有条关于什么时候用异常的讨论线索,[在这][1]。
@@ -1,7 +1,4 @@
----
-layout: post
-title: screen下让vim支持鼠标
----
+Title: screen下让vim支持鼠标
只需在vim中进行如下设置即可:
@@ -1,7 +1,4 @@
----
-layout: post
-title: "vimxmms2: vim's xmms2 client"
----
+Title: "vimxmms2: vim's xmms2 client"
其实vimxmms2这个插件我很早就写了,也写过一篇[介绍][1],但由于当时xmms2还刚刚起步,并不稳定,而我也没怎么用xmms,所以一直没有传到vim.org上。
@@ -1,7 +1,4 @@
----
-layout: post
-title: vimxmms2 0.3 released
----
+Title: vimxmms2 0.3 released
可以[到这][1]下载和查看详细信息。
Oops, something went wrong. Retry.

0 comments on commit c5d8fc8

Please sign in to comment.