<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gong-Yi&#039;s SandBox@WordPress &#187; Emacs</title>
	<atom:link href="http://gongyiliao.wordpress.com/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://gongyiliao.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 22 Dec 2010 02:51:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gongyiliao.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gong-Yi&#039;s SandBox@WordPress &#187; Emacs</title>
		<link>http://gongyiliao.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gongyiliao.wordpress.com/osd.xml" title="Gong-Yi&#039;s SandBox@WordPress" />
	<atom:link rel='hub' href='http://gongyiliao.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Emacs Lisp for R users &#8211; 2010 Oct 06 (1)</title>
		<link>http://gongyiliao.wordpress.com/2010/10/06/emacs-lisp-for-r-users-2010-oct-06-1/</link>
		<comments>http://gongyiliao.wordpress.com/2010/10/06/emacs-lisp-for-r-users-2010-oct-06-1/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 10:36:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[thinking]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/10/06/emacs-lisp-for-r-users-2010-oct-06-1</guid>
		<description><![CDATA[For R users, emacs&#8216;s corresponding syntax to do (i in ...) is (dolist (i '(1..n)) (print i) )<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=426&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>
For <code>R</code> users, <code>emacs</code>&#8216;s  corresponding syntax to <code>do (i in ...)</code> is
</p>
<pre class="prettyprint">
(dolist (i '(1..n))
   (print i)
)
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/426/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/426/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=426&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/10/06/emacs-lisp-for-r-users-2010-oct-06-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>Conjugate distribution note 2010 Sep 19-1</title>
		<link>http://gongyiliao.wordpress.com/2010/09/19/conjugate-distribution-note-2010-sep-19-1/</link>
		<comments>http://gongyiliao.wordpress.com/2010/09/19/conjugate-distribution-note-2010-sep-19-1/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 23:27:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[TEX]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/09/19/conjugate-distribution-note-2010-sep-19-1</guid>
		<description><![CDATA[Consider the result: For the conjugate prior scenairo, if $X&#124;\mu\sim\mathcal N(\mu, \sigma^2)$ and $\mu\sim\mathcal N(\theta, \xi^2)$ where $\sigma^2, \theta$ and $\xi^2$ are all known, then \[ f(\mu&#124;x) \propto exp\left[-\frac{1}{2}\left(\frac{1}{\sigma^2}+\frac{1}{\xi^2}\right)\left(\mu - \frac{\xi^2y+\sigma^2\theta}{\sigma^2+\xi^2}\right)^2\right] \]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=422&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Consider the result:<br />
For the conjugate prior scenairo, if $X|\mu\sim\mathcal N(\mu,<br />
\sigma^2)$ and $\mu\sim\mathcal N(\theta, \xi^2)$ where $\sigma^2,<br />
\theta$ and $\xi^2$ are all known, then<br />
\[<br />
f(\mu|x) \propto<br />
exp\left[-\frac{1}{2}\left(\frac{1}{\sigma^2}+\frac{1}{\xi^2}\right)\left(\mu<br />
  - \frac{\xi^2y+\sigma^2\theta}{\sigma^2+\xi^2}\right)^2\right]<br />
\]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=422&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/09/19/conjugate-distribution-note-2010-sep-19-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>Typical ESS setting for REvolution R</title>
		<link>http://gongyiliao.wordpress.com/2010/06/27/typical-ess-setting-for-revolution-r/</link>
		<comments>http://gongyiliao.wordpress.com/2010/06/27/typical-ess-setting-for-revolution-r/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 02:30:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/06/27/typical-ess-setting-for-revolution-r</guid>
		<description><![CDATA[(add-to-list 'load-path (expand-file-name "~/.emacs.d/ess/lisp")) (setq inferior-R-program-name "c:\\REvolution\\Revo-3.2\\Revo32\\R-2.10.1\\bin\\Rterm.exe") (require 'ess-site)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=392&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint">
(add-to-list 'load-path (expand-file-name "~/.emacs.d/ess/lisp"))
(setq inferior-R-program-name "c:\\REvolution\\Revo-3.2\\Revo32\\R-2.10.1\\bin\\Rterm.exe")
(require 'ess-site)

</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=392&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/06/27/typical-ess-setting-for-revolution-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>如果你的R鎖住了</title>
		<link>http://gongyiliao.wordpress.com/2010/03/11/%e5%a6%82%e6%9e%9c%e4%bd%a0%e7%9a%84r%e9%8e%96%e4%bd%8f%e4%ba%86/</link>
		<comments>http://gongyiliao.wordpress.com/2010/03/11/%e5%a6%82%e6%9e%9c%e4%bd%a0%e7%9a%84r%e9%8e%96%e4%bd%8f%e4%ba%86/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 19:38:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/03/11/%e5%a6%82%e6%9e%9c%e4%bd%a0%e7%9a%84r%e9%8e%96%e4%bd%8f%e4%ba%86</guid>
		<description><![CDATA[相信有些人有這樣的經驗, C-c C-r或C-c C-b後, emacs就被鎖住直到 程式跑完, 要解決這樣的麻煩, 很簡單, 用C-g就可以把程式轉到背景去執行了<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=360&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>
相信有些人有這樣的經驗, <code>C-c C-r</code>或<code>C-c C-b</code>後, <code>emacs</code>就被鎖住直到<br />
程式跑完, 要解決這樣的麻煩, 很簡單, 用<code>C-g</code>就可以把程式轉到背景去執行了</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=360&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/03/11/%e5%a6%82%e6%9e%9c%e4%bd%a0%e7%9a%84r%e9%8e%96%e4%bd%8f%e4%ba%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs Setup for AUCTEX + XELATEX + PREVIEW-LATEX</title>
		<link>http://gongyiliao.wordpress.com/2010/01/21/emacs-setup-for-auctex-xelatex-preview-latex/</link>
		<comments>http://gongyiliao.wordpress.com/2010/01/21/emacs-setup-for-auctex-xelatex-preview-latex/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 03:49:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/01/21/emacs-setup-for-auctex-xelatex-preview-latex</guid>
		<description><![CDATA[(add-hook 'LaTeX-mode-hook (lambda() (setq TeX-auto-save t) (setq LaTeX-command-style (quote (("\\`fontspec\\'" "xelatex ") ("" "%(PDF)%(latex) %S%(PDFout)")))) (custom-set-variables '(preview-fast-dvips-command "pdftops -origpagesizes %s.pdf %m/preview.ps")) (setq TeX-save-query nil) (setq TeX-parse-self t) (setq-default TeX-master nil) (setq TeX-output-view-style (cons '("^pdf$" "." "evince %o ") TeX-output-view-style)) (set-default 'preview-default-document-pt 12) (set-default 'preview-scale-function 1.2) (setq preview-required-option-list (quote ("active" "tightpage" "auctex" "pdftex" (preview-preserve-counters "counters")))) (setq [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=350&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint">
(add-hook 'LaTeX-mode-hook 
   (lambda()
     (setq TeX-auto-save t)
     (setq LaTeX-command-style 
    (quote (("\\`fontspec\\'" "xelatex ") 
     ("" "%(PDF)%(latex) %S%(PDFout)"))))
     (custom-set-variables
      '(preview-fast-dvips-command "pdftops -origpagesizes %s.pdf %m/preview.ps"))
     (setq TeX-save-query nil)
     (setq TeX-parse-self t)
     (setq-default TeX-master nil)
     (setq TeX-output-view-style
    (cons '("^pdf$" "." "evince  %o ") TeX-output-view-style))
     (set-default 'preview-default-document-pt 12)
     (set-default 'preview-scale-function 1.2)
     (setq preview-required-option-list 
    (quote ("active" "tightpage" "auctex" "pdftex" (preview-preserve-counters "counters"))))
     (setq preview-default-option-list 
    (quote ("displaymath" "floats" "graphics" "textmath" "showlabels" "sections" )))
     (TeX-global-PDF-mode t)))
</pre>
<p>with this <a href="http://gongyi.liao.googlepages.com/preview.sty">updated preview.sty</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=350&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/01/21/emacs-setup-for-auctex-xelatex-preview-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>ad hoc setting for AUCTEX/XeLaTeX</title>
		<link>http://gongyiliao.wordpress.com/2010/01/15/ad-hoc-setting-for-auctexxelatex/</link>
		<comments>http://gongyiliao.wordpress.com/2010/01/15/ad-hoc-setting-for-auctexxelatex/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 14:12:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/01/15/ad-hoc-setting-for-auctexxelatex</guid>
		<description><![CDATA[Prevent using Fontspec to specify math font can make your life easier. Fontspec does not process Math fonts well at this moment (TexLive! 2009) (add-hook 'LaTeX-mode-hook (lambda() (setq TeX-auto-save t) (add-to-list 'TeX-command-list '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t)) (setq TeX-command-default "XeLaTeX") (setq TeX-save-query nil) (setq TeX-output-view-style (cons '("^pdf$" "." "evince %o ") TeX-output-view-style)) (TeX-global-PDF-mode t) [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=346&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>
Prevent using <code>Fontspec</code> to specify math font can make your life easier.<br />
<code>Fontspec</code> does not process Math fonts well at this moment (<code>TexLive! 2009</code>)
</p>
<pre class="prettyprint">

(add-hook 'LaTeX-mode-hook 
   (lambda()
     (setq TeX-auto-save t)
     (add-to-list 'TeX-command-list '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t))
     (setq TeX-command-default "XeLaTeX")
     (setq TeX-save-query nil)
     (setq TeX-output-view-style
    (cons '("^pdf$" "." "evince  %o ") TeX-output-view-style))
     (TeX-global-PDF-mode t)
     (set-default 'preview-default-document-pt 12)
     (set-default 'preview-scale-function 1.2)
     (setq preview-image-creators 
    (quote ((png 
      (open preview-gs-open) 
      (place preview-gs-place) 
      (close preview-gs-close)))))
     (setq preview-default-option-list 
    (quote ("displaymath" "floats" "graphics" "textmath" "showlabels")))))

</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/346/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=346&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/01/15/ad-hoc-setting-for-auctexxelatex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs function name highlight</title>
		<link>http://gongyiliao.wordpress.com/2010/01/03/emacs-function-name-highlight/</link>
		<comments>http://gongyiliao.wordpress.com/2010/01/03/emacs-function-name-highlight/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 03:05:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/01/03/emacs-function-name-highlight</guid>
		<description><![CDATA[;; General function keywords highlight (defface font-lock-my-functions-face '((((class color) (min-colors 88) (background light)) (:foreground "RoyalBlue4" ))) "Font Lock mode face used to highlight function names." :group 'font-lock-faces) (defvar font-lock-my-functions-face 'font-lock-my-functions-face "Face name to use for functions.") (defvar my-functions-name-regexp "\\s\"?\\(\\(\\sw\\&#124;\\s_\\)+\\(&#60;-\\)?\\)\\s\&#34;?*\\s-*(&#34; &#34;Regexp for function names&#34;) (defvar my-functions-color (list (cons my-functions-name-regexp &#39;(1 font-lock-my-functions-face keep))) &#34;Defines highlighting pattern for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=337&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<pre class="prettyprint">
;; General function keywords highlight
(defface font-lock-my-functions-face
   '((((class color) (min-colors 88) (background light)) (:foreground "RoyalBlue4"  )))
   "Font Lock mode face used to highlight function names."
   :group 'font-lock-faces)

(defvar font-lock-my-functions-face 'font-lock-my-functions-face
   "Face name to use for functions.")

(defvar my-functions-name-regexp
  "\\s\"?\\(\\(\\sw\\|\\s_\\)+\\(&lt;-\\)?\\)\\s\&quot;?*\\s-*(&quot; 
   &quot;Regexp for function names&quot;)

(defvar my-functions-color  
   (list
    (cons my-functions-name-regexp &#39;(1 font-lock-my-functions-face keep)))
   &quot;Defines highlighting pattern for functions&quot;)

(font-lock-add-keywords &#39;c-mode
   &#39;((&quot;\\s\&quot;?\\(\\(\\sw\\|\\s_\\)+\\(&lt;-\\)?\\)\\s\&quot;?*\\s-*(&quot; . font-lock-my-functions-face)))
(font-lock-add-keywords &#39;python-mode
   &#39;((&quot;\\s\&quot;?\\(\\(\\sw\\|\\s_\\)+\\(&lt;-\\)?\\)\\s\&quot;?*\\s-*(&quot; . font-lock-my-functions-face)))

(setq ess-R-mode-font-lock-keywords
       (append  ess-R-mode-font-lock-keywords    my-functions-color))
(setq inferior-ess-R-font-lock-keywords
       (append inferior-ess-R-font-lock-keywords my-functions-color)) 
Emacs
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=337&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/01/03/emacs-function-name-highlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic system approach and statistical approach : an ODE example</title>
		<link>http://gongyiliao.wordpress.com/2010/01/03/dynamic-system-approach-and-statistical-approach-an-ode-example/</link>
		<comments>http://gongyiliao.wordpress.com/2010/01/03/dynamic-system-approach-and-statistical-approach-an-ode-example/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 01:54:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Chemical Engineering]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Fortran]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[thinking]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/01/03/dynamic-system-approach-and-statistical-approach-an-ode-example</guid>
		<description><![CDATA[The linear ODE system to describe prey-predator relationship : \[ \frac{dx}{dt} = -x(\alpha - \beta y) \] \[ \frac{dy}{dt} = -y(\gamma - \delta x) \] Using the cookbook example from scipy.org: Another approach is statistical approach: \[ y_t = F(x_t) + \epsilon_t\] What is the problem? The problem is statistical approach is static. Note that [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=336&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div class="LaTeX">
<p>
The linear ODE system to describe prey-predator relationship :<br />
\[ \frac{dx}{dt} = -x(\alpha - \beta y) \]<br />
\[ \frac{dy}{dt} = -y(\gamma - \delta x) \]<br />
Using the cookbook example from <code>scipy.org</code>:
</p>
</div>
<p><a href="http://gongyiliao.files.wordpress.com/2010/01/rabbits_and_foxes_1.png"><img border="0" src="http://gongyiliao.files.wordpress.com/2010/01/rabbits_and_foxes_1.png?w=300" alt="" /></a><br />
<br />
<a href="http://gongyiliao.files.wordpress.com/2010/01/1.jpg"><img border="0" src="http://gongyiliao.files.wordpress.com/2010/01/1.jpg?w=300" alt="" /></a></p>
<div class="LaTeX">
<p>
Another approach is statistical approach:<br />
\[ y_t = F(x_t) + \epsilon_t\]<br />
What is the problem? The problem is statistical approach is <em>static</em>.</p>
<p>Note that the statistical approach is just using some simple function:<br />
\[ y_t = \beta_0 + \beta_1 x_t + \beta_2 x_t^2 + \cdots + \beta_k x_t^k + \epsilon_t \]<br />
this leads to a problem: this model assume that <em> $y$ can not explain $x$</em>.
</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/336/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=336&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/01/03/dynamic-system-approach-and-statistical-approach-an-ode-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>

		<media:content url="http://gongyiliao.files.wordpress.com/2010/01/rabbits_and_foxes_1.png?w=300" medium="image" />

		<media:content url="http://gongyiliao.files.wordpress.com/2010/01/1.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>搞死我的CEDET 1.0pre6</title>
		<link>http://gongyiliao.wordpress.com/2010/01/02/%e6%90%9e%e6%ad%bb%e6%88%91%e7%9a%84cedet-1-0pre6/</link>
		<comments>http://gongyiliao.wordpress.com/2010/01/02/%e6%90%9e%e6%ad%bb%e6%88%91%e7%9a%84cedet-1-0pre6/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 15:34:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2010/01/02/%e6%90%9e%e6%ad%bb%e6%88%91%e7%9a%84cedet-1-0pre6</guid>
		<description><![CDATA[裝了cedet 1.0pre6,C程式沒變得好寫很多, python倒是出了問題 sigh&#8230;&#8230;&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=334&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>
裝了cedet 1.0pre6,C程式沒變得好寫很多, python倒是出了問題 sigh&#8230;&#8230;&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/334/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=334&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2010/01/02/%e6%90%9e%e6%ad%bb%e6%88%91%e7%9a%84cedet-1-0pre6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>
	</item>
		<item>
		<title>用Emacs 上批踢踢</title>
		<link>http://gongyiliao.wordpress.com/2009/12/31/%e7%94%a8emacs-%e4%b8%8a%e6%89%b9%e8%b8%a2%e8%b8%a2/</link>
		<comments>http://gongyiliao.wordpress.com/2009/12/31/%e7%94%a8emacs-%e4%b8%8a%e6%89%b9%e8%b8%a2%e8%b8%a2/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 21:19:00 +0000</pubDate>
		<dc:creator>gongyiliao</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://gongyiliao.wordpress.com/2009/12/31/%e7%94%a8emacs-%e4%b8%8a%e6%89%b9%e8%b8%a2%e8%b8%a2</guid>
		<description><![CDATA[其實很簡單。 在emacs下執行 M-x ansi-term 然後在新開的ansi-term的shell下執行 luit -encoding big5 telnet bbs.ptt.cc 完畢。 示範圖如下:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=330&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>其實很簡單。</p>
<p>在emacs下執行</p>
<pre class="prettyprint">
M-x ansi-term
</pre>
<p>然後在新開的<code>ansi-term</code>的shell下執行</p>
<pre class="prettyprint">
luit -encoding big5 telnet bbs.ptt.cc
</pre>
<p>完畢。</p>
<p>示範圖如下:</p>
<p><a href="http://gongyiliao.files.wordpress.com/2009/12/screenshot-emacsansi-term.png"><img border="0" src="http://gongyiliao.files.wordpress.com/2009/12/screenshot-emacsansi-term.png?w=300" alt="" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gongyiliao.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gongyiliao.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gongyiliao.wordpress.com&#038;blog=8873814&#038;post=330&#038;subd=gongyiliao&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gongyiliao.wordpress.com/2009/12/31/%e7%94%a8emacs-%e4%b8%8a%e6%89%b9%e8%b8%a2%e8%b8%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/24a70cc156a107485b4638c810b31374?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gongyiliao</media:title>
		</media:content>

		<media:content url="http://gongyiliao.files.wordpress.com/2009/12/screenshot-emacsansi-term.png?w=300" medium="image" />
	</item>
	</channel>
</rss>
