<?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>Yang Feng&#039;s Blog</title>
	<atom:link href="http://yangfeng.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yangfeng.wordpress.com</link>
	<description>A blog about R, Latex and many other stuff.</description>
	<lastBuildDate>Sat, 21 Jan 2012 16:08:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yangfeng.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yang Feng&#039;s Blog</title>
		<link>http://yangfeng.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yangfeng.wordpress.com/osd.xml" title="Yang Feng&#039;s Blog" />
	<atom:link rel='hub' href='http://yangfeng.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Auto-Removing Fields from Final Bibtex-File using jabref (ZZ)</title>
		<link>http://yangfeng.wordpress.com/2011/10/23/auto-removing-fields-from-final-bibtex-file-using-jabref-zz/</link>
		<comments>http://yangfeng.wordpress.com/2011/10/23/auto-removing-fields-from-final-bibtex-file-using-jabref-zz/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 21:12:31 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Latex Tips]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=103</guid>
		<description><![CDATA[Credit to Original post at http://sourceforge.net/projects/jabref/forums/forum/318825/topic/2573629 1. Add a new field in Options-&#38;gt;&#8217;Set up general fields&#8217; and add e.g. url_jabref to the &#8216;General&#8217; line. 2. Now go to the Tools-&#38;gt;&#8217;Set/Clear/Rename Fields&#8217; and rename url to url_jabref. 3. Now there is no url in the bibliography of the article but the url to the article is still [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=103&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Credit to Original post at <a href="http://sourceforge.net/projects/jabref/forums/forum/318825/topic/2573629">http://sourceforge.net/projects/jabref/forums/forum/318825/topic/2573629<br />
</a></p>
<p>1. Add a new field in Options-&amp;gt;&#8217;Set up general fields&#8217; and add e.g. url_jabref to the &#8216;General&#8217; line.</p>
<p>2. Now go to the Tools-&amp;gt;&#8217;Set/Clear/Rename Fields&#8217; and rename url to url_jabref.</p>
<p>3. Now there is no url in the bibliography of the article but the url to the article is still in your database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=103&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2011/10/23/auto-removing-fields-from-final-bibtex-file-using-jabref-zz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>Manage a local .bib file system (Simplify other tutorials)</title>
		<link>http://yangfeng.wordpress.com/2011/10/20/manage-a-local-bib-file-system-simplify-other-tutorials/</link>
		<comments>http://yangfeng.wordpress.com/2011/10/20/manage-a-local-bib-file-system-simplify-other-tutorials/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 18:12:11 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Latex Tips]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=99</guid>
		<description><![CDATA[create the following folder structure under  a specific folder (e.g., called &#8220;my local tex system&#8221;): 1.bibtex 1.1 bib under bib folder, you can put the .bib file inside it 1.2 bst 2. tex 2.1 latex &#160; &#160; When finishing, open the miktex Maintenance-&#62;Settings-&#62;Roots-&#62;Add-&#62;Choose the directory  &#8221;my local tex system&#8221;. You are all set to go! &#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=99&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>create the following folder structure under  a specific folder (e.g., called &#8220;my local tex system&#8221;):</p>
<p>1.bibtex</p>
<p>1.1 bib</p>
<p>under bib folder, you can put the .bib file inside it</p>
<p>1.2 bst</p>
<p>2. tex</p>
<p>2.1 latex</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>When finishing, open the miktex Maintenance-&gt;Settings-&gt;Roots-&gt;Add-&gt;Choose the directory  &#8221;my local tex system&#8221;. You are all set to go!</p>
<p>&nbsp;</p>
<p>In the future, you can just use \bibliography{***.bib} inside any document on the computer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=99&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2011/10/20/manage-a-local-bib-file-system-simplify-other-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>winedt 6 \cite auto popup with typing \cite{}</title>
		<link>http://yangfeng.wordpress.com/2011/10/20/winedt-6-cite-auto-popup-with-typing-cite/</link>
		<comments>http://yangfeng.wordpress.com/2011/10/20/winedt-6-cite-auto-popup-with-typing-cite/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 18:05:46 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Latex Tips]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=97</guid>
		<description><![CDATA[It seems when using my own .bib file as the reference database, it will not automatically popup the list of references when typing \cite{}. A solution is to open the .bib file, and then under the menu-&#62;View-&#62;Tree, then click the first button &#8220;Build Tree&#8221;. And go back to the .tex file and you are ready [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=97&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It seems when using my own .bib file as the reference database, it will not automatically popup the list of references when typing \cite{}. A solution is to open the .bib file, and then under the menu-&gt;View-&gt;Tree, then click the first button &#8220;Build Tree&#8221;. And go back to the .tex file and you are ready to go!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=97&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2011/10/20/winedt-6-cite-auto-popup-with-typing-cite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>Best Latex Combination in Windows (Winedt 6 + SumatraPDF)</title>
		<link>http://yangfeng.wordpress.com/2011/03/03/best-latex-combination-in-windows-winedt-6-sumatrapdf/</link>
		<comments>http://yangfeng.wordpress.com/2011/03/03/best-latex-combination-in-windows-winedt-6-sumatrapdf/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 16:56:08 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Latex Tips]]></category>
		<category><![CDATA[SumatraPDF]]></category>
		<category><![CDATA[Winedt]]></category>
		<category><![CDATA[Wrapping]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=68</guid>
		<description><![CDATA[Winedt 6 + SumatraPDF 1. Install Winedt 6, sumatra pdf, miktex 2. Settings in winedt 6, Options-&#62;Executive modes-&#62;PDF viewer-&#62;Change the path to SumatraPDF. Tick the box for sync tex. 3. If you had winedt 5.5 before, there maybe associated problem. First uninstall winedt 5.5, then Options-&#62;Configuration Wizard-&#62;Filetype Assoications Select the file type you would like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=68&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Winedt 6 + SumatraPDF<br />
1. Install Winedt 6, sumatra pdf, miktex<br />
2. Settings in winedt 6,<br />
Options-&gt;Executive modes-&gt;PDF viewer-&gt;Change the path to SumatraPDF.<br />
Tick the box for sync tex.<br />
3. If you had winedt 5.5 before, there maybe associated problem. First uninstall winedt 5.5, then<br />
Options-&gt;Configuration Wizard-&gt;Filetype Assoications<br />
Select the file type you would like winedt 6 to associated with.<br />
4. Wrapping in winedt 6. Here is my configuration: (It will automatically autowrap when resizing your window which I found very convenient to use).<br />
Options-&gt;Options Interface-&gt;Formatting:Wrapping&#8230;-&gt;Wrapping-&gt;Change the corresponding paragraph to the following:</p>
<p>ENABLE_WRAPPING=1<br />
WRAPPING_FILTER=&#8221;TeX;HTML;ANSI;ASCII|DTX;INS;STY;TOC;EDT;INI&#8221;</p>
<p>// If you don&#8217;t want TeX Documents to be treated in Soft Mode remove TeX; from the filter!<br />
// Soft Wrapping (like Notepad):<br />
SOFT_WRAPPING=1<br />
SOFT_WRAPPING_FILTER=&#8221;TeX;HTML;ANSI;Soft|DTX;INS;STY;TOC;Hard&#8221;<br />
//SOFT_WRAPPING_FILTER=&#8221;HTML;ANSI;Soft|DTX;INS;STY;TOC;Hard&#8221;</p>
<p>// For those that know how to use it&#8230;<br />
SEMISOFT_WRAPPING=0<br />
SEMISOFT_WRAPPING_FILTER=&#8221;XS|UNIX;PC&#8221;</p>
<p>// Fixed Right Margin<br />
RIGHT_MARGIN=50</p>
<p>// Soft Wrapping Options<br />
// Change to FIXED_RIGHT_MARGIN=0 if you want to use the<br />
// size of the Window to determine Right Margin<br />
// (resizing can be annoying!)&#8230;<br />
FIXED_RIGHT_MARGIN=1<br />
WRAP_AND_UNWRAP=1<br />
REFORMAT_ON_RESIZE=1 // Ignored for Fixed Right Margin!</p>
<p>INDENTED_SOFT_WRAPPING=1 // Indent the whole Paragraph?<br />
SHOW_LINE_BREAKS=0<br />
SHOW_LINE_BREAKS_UNWRAPPED=0</p>
<p>// Wrap Comments in Soft Mode?<br />
WRAP_SOFT_COMMENTS=1</p>
<p>// Break Lines even if Wrapping is turned off?<br />
PERSISTENT_LINE_WRAPPING=0</p>
<p>// Undo information:<br />
GROUP_UNDO=0<br />
GROUP_UNDO_SOFT=1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=68&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2011/03/03/best-latex-combination-in-windows-winedt-6-sumatrapdf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>Using SSH without password</title>
		<link>http://yangfeng.wordpress.com/2010/09/21/using-ssh-without-password/</link>
		<comments>http://yangfeng.wordpress.com/2010/09/21/using-ssh-without-password/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 19:30:32 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[without password]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=66</guid>
		<description><![CDATA[Take the SSH Secure Shell Software as an example To be more clear, three steps 1. First connect to the desired SSH server 2. Edit-&#62;Settings-&#62;Global Settings-&#62;User Authentication-&#62;Keys-&#62;Generate New-&#62;Next-&#62;RSA-&#62;Enter filename without entering comments and passphrase (Suppose the name is my_pub_key.pub) -&#62;Click Upload Public Key-&#62;Select Destination Folder: .ssh 3. In linux server run the command ssh-keygen -X -f [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=66&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Take the SSH Secure Shell Software as an example</p>
<p>To be more clear, three steps</p>
<p>1. First connect to the desired SSH server<br />
2. Edit-&gt;Settings-&gt;Global Settings-&gt;User Authentication-&gt;Keys-&gt;Generate New-&gt;Next-&gt;RSA-&gt;Enter filename without entering comments and passphrase (Suppose the name is my_pub_key.pub)</p>
<p>-&gt;Click Upload Public Key-&gt;Select Destination Folder: .ssh</p>
<p>3. In linux server run the command<br />
ssh-keygen -X -f ~/.ssh/my_pub_key.pub &gt; ~/.ssh/authorized_keys</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=66&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/09/21/using-ssh-without-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>The rsync Tool In Windows</title>
		<link>http://yangfeng.wordpress.com/2010/09/21/the-rsync-tool-in-windows/</link>
		<comments>http://yangfeng.wordpress.com/2010/09/21/the-rsync-tool-in-windows/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 19:29:25 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backup tool]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=64</guid>
		<description><![CDATA[Here is a reference: http://blog.myownserver.info/2010/04/how-to-install-cwrsync-for-windows-vista7-tutorial/#home_directory To be more clear 0. Download the SSH-Client.exe and put it under C:\\Program Files (x86)\\ 1. Download cwrsync here: http://sourceforge.net/projects/sereds/files/ 2. When install cwrsync, install it under the folder of C:\cwRsync, after installing, add &#8220;c:\cwRsync\bin&#8221; to the system PATH variable so that rsync can be called from any location. 3. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=64&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a reference: http://blog.myownserver.info/2010/04/how-to-install-cwrsync-for-windows-vista7-tutorial/#home_directory</p>
<p>To be more clear</p>
<p>0. Download the SSH-Client.exe and put it under C:\\Program Files (x86)\\<br />
1. Download cwrsync here: http://sourceforge.net/projects/sereds/files/<br />
2. When install cwrsync, install it under the folder of C:\cwRsync,<br />
after installing, add &#8220;c:\cwRsync\bin&#8221; to the system PATH variable so<br />
that rsync can be called from any location.<br />
3. Under the C:\cwRsync Create folder &#8220;\home\yangfeng&#8221;<br />
4.<br />
On PC using cmd, run</p>
<p>$ ssh-keygen -t rsa</p>
<p>This will prompt for a passphrase. Just press the enter key.<br />
It&#8217;ll then generate an identification (private key) and a public key.<br />
Do not ever share the private key with anyone! ssh-keygen shows where<br />
it saved the public key. This is by default ~/.ssh/id_rsa.pub:</p>
<p>Your public key has been saved in //home/yangfeng/.ssh/id_rsa.pub. If it is not there, copy it to the folder.</p>
<p>5.</p>
<p>Transfer the id_rsa.pub file to host_dest by either ftp, scp,<br />
rsync or any other method. ( SSH Client)</p>
<p>6.</p>
<p>On host_dest ( SSH Client), login as the remote user which you plan to use<br />
when you run scp, ssh or rsync on host_src.<br />
7.</p>
<p>Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys</p>
<p>$ cat id_rsa.pub &gt;&gt;~/.ssh/authorized_keys<br />
$ chmod 700 ~/.ssh/authorized_keys</p>
<p>If this file does not exists, then the above command will create<br />
it. Make sure you remove permission for others to read this file. If<br />
its a public key, why prevent others from reading this file? Probably,<br />
the owner of the key has distributed it to a few trusted users and has<br />
not placed any additional security measures to check if its really a<br />
trusted user.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=64&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/09/21/the-rsync-tool-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropbox- a must tool for sharing files</title>
		<link>http://yangfeng.wordpress.com/2010/05/19/dropbox-a-must-tool-for-sharing-files/</link>
		<comments>http://yangfeng.wordpress.com/2010/05/19/dropbox-a-must-tool-for-sharing-files/#comments</comments>
		<pubDate>Wed, 19 May 2010 18:46:16 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=61</guid>
		<description><![CDATA[Register HERE: https://www.dropbox.com/referrals/NTI5MDY3MDI5 File Sync Dropbox allows you to sync your files online and across your computers automatically. 2GB of online storage for free, with up to 100GB available to paying customers. Sync files of any size or type. Sync Windows, Mac and Linux computers. Automatically syncs when new files or changes are detected. Work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=61&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Register HERE:</p>
<p><a href="https://www.dropbox.com/referrals/NTI5MDY3MDI5">https://www.dropbox.com/referrals/NTI5MDY3MDI5</a></p>
<h2 id="sync">File Sync</h2>
<p>Dropbox allows you to sync your files online and across your computers automatically.</p>
<ul>
<li>2GB of online storage for free, with up to 100GB available to paying customers.</li>
<li>Sync files of any size or type.</li>
<li>Sync Windows, Mac and Linux computers.</li>
<li>Automatically syncs when new files or changes are detected.</li>
<li>Work on files in your Dropbox even if you&#8217;re offline. Your changes sync once your computer has an Internet connection again.</li>
<li>Dropbox transfers will correctly resume where they left off if the connection drops.</li>
<li>Efficient sync &#8211; only the pieces of a file that changed (not the whole file) are synced. This saves you time.</li>
<li>Doesn&#8217;t hog your Internet connection. You can manually set bandwidth limits.</li>
</ul>
<h2 id="sharing"><img src="https://www.dropbox.com/static/images/icons/icon_spacer.gif" alt="" />File Sharing</h2>
<p>Sharing files is simple and can be done with only a few clicks.</p>
<ul>
<li>Shared folders allow several people to collaborate on a set of files.</li>
<li>You can see other people&#8217;s changes instantly.</li>
<li>A &#8220;Public&#8221; folder that lets you link directly to files in your Dropbox.</li>
<li>Control who is able to access shared folders (including ability to kick people out and remove the shared files from their computers).</li>
<li>Automatically create shareable online photo galleries from folders of photos in your Dropbox.</li>
</ul>
<h2 id="backup"><img src="https://www.dropbox.com/static/images/icons/icon_spacer.gif" alt="" />Online Backup</h2>
<p>Dropbox backs up your files online without you having to think about it.</p>
<ul>
<li>Automatic backup of your files.</li>
<li>Undelete files and folders.</li>
<li>Restore previous versions of your files.</li>
<li>30 days of undo history, with unlimited undo available as a paid option.</li>
</ul>
<h2 id="web"><img src="https://www.dropbox.com/static/images/icons/icon_spacer.gif" alt="" />Web Access</h2>
<p>A copy of your files are stored on Dropbox&#8217;s secure servers.  This lets you access them from any computer or mobile device.</p>
<ul>
<li>Manipulate files as you would on your desktop &#8211; add, edit, delete, rename etc.</li>
<li>Search your entire Dropbox for files.</li>
<li>A &#8220;Recent Events&#8221; feed that shows you a summary of activity in your Dropbox.</li>
<li>Create shared folders and invite people to them.</li>
<li>Recover previous versions of any file or undelete deleted files.</li>
<li>View photo galleries created automatically from photos in your Dropbox.</li>
</ul>
<h2 id="security"><img src="https://www.dropbox.com/static/images/icons/icon_spacer.gif" alt="" />Security &amp; Privacy</h2>
<p>Dropbox takes the security and privacy of your files very seriously.</p>
<ul>
<li>Shared folders are viewable only by people you invite.</li>
<li>All transmission of file data and metadata occurs over an encrypted channel (SSL).</li>
<li>All files stored on Dropbox servers are encrypted (AES-256) and are inaccessible without your account password.</li>
<li>Dropbox website and client software have been hardened against attacks from hackers.</li>
<li>Dropbox employees are not able to view any user&#8217;s files.</li>
<li>Online access to your files requires your username and password.</li>
<li>Public files are only viewable by people who have a link to the file(s). Public folders are not browsable or searchable.</li>
</ul>
<h2 id="mobile"><img src="https://www.dropbox.com/static/images/icons/icon_spacer.gif" alt="" />Mobile Device Access</h2>
<p>The free Dropbox application for <a href="https://www.dropbox.com/iphoneapp">iPhone</a>, <a href="https://www.dropbox.com/ipad">iPad</a>, and <a href="https://www.dropbox.com/android">Android</a> lets you:</p>
<ul>
<li>Access your Dropbox on the go.</li>
<li>View files from within the application.</li>
<li>Download files for offline viewing.</li>
<li>Take photos and videos and sync them to your Dropbox.</li>
<li>Share links to files in your Dropbox.</li>
<li>Export your files to other applications.</li>
<li>Sync downloaded files so they&#8217;re up-to-date.</li>
</ul>
<p>A <a href="http://m.dropbox.com/">mobile-optimized version of the website</a> is also available for owners of Blackberry phones and other Internet-capable mobile devices.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=61&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/05/19/dropbox-a-must-tool-for-sharing-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>

		<media:content url="https://www.dropbox.com/static/images/icons/icon_spacer.gif" medium="image" />

		<media:content url="https://www.dropbox.com/static/images/icons/icon_spacer.gif" medium="image" />

		<media:content url="https://www.dropbox.com/static/images/icons/icon_spacer.gif" medium="image" />

		<media:content url="https://www.dropbox.com/static/images/icons/icon_spacer.gif" medium="image" />

		<media:content url="https://www.dropbox.com/static/images/icons/icon_spacer.gif" medium="image" />
	</item>
		<item>
		<title>Abbreviations of R Commands</title>
		<link>http://yangfeng.wordpress.com/2010/05/19/abbreviations-of-r-commands/</link>
		<comments>http://yangfeng.wordpress.com/2010/05/19/abbreviations-of-r-commands/#comments</comments>
		<pubDate>Wed, 19 May 2010 18:42:11 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[R Tips]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/2010/05/19/abbreviations-of-r-commands/</guid>
		<description><![CDATA[Abbreviations of R Commands Explained: 250+ R Abbreviations (From http://jeromyanglim.blogspot.com/2010/05/abbreviations-of-r-commands-explained.html) The R programming language includes many abbreviations. Abbreviations exist in function names, argument names, and allowed values for arguments. This post expands on over 150 R abbreviations with the aim of making it easier for users new to R who are trying to memorise R [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=59&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Abbreviations of R Commands Explained: 250+ R Abbreviations (From http://jeromyanglim.blogspot.com/2010/05/abbreviations-of-r-commands-explained.html)<br />
The R programming language includes many abbreviations. Abbreviations exist in function names, argument names, and allowed values for arguments. This post expands on over 150 R abbreviations with the aim of making it easier for users new to R who are trying to memorise R commands.<br />
Context<br />
Abbreviations save time when typing and can make for less cumbersome code. However, abbreviations often make it more difficult to remember a command. This is especially true when the user does not know what the abbreviation stands for.</p>
<p>R has been developed by a group of technical experts with backgrounds in Linux and Unix, mathematics, statistics, and statistical computing. With gaining popularity, R is now being used by people with little to none of this background. Abbreviations which are intuitive to the experts are not necessarily intuitive to this broader audience. The R help system does a reasonable job of explaining the abbreviations in R. However, I thought it would be useful to write a post listing some of the common abbreviations along with the expansion of the abbreviation. Whereas R sometimes errs on the side of assuming expertise, I thought I&#8217;d err on the side of assuming naivety. Thus, the table includes many abbreviations which are probably obvious to most readers.<br />
Table of R Commands<br />
R Command 	Abbreviation Expanded 	Comments<br />
ls	[L]i[S]t objects	common command in Unix-like operating systems<br />
rm	[R]e[M]ove objects	common command in Unix-like operating systems<br />
str	[STR]ucture of an object<br />
unz	[UNZ]ip<br />
getwd	[GET] [W]orking [D]irectory<br />
dir	[DIR]ectory<br />
sprintf	[S]tring [PRINT] [F]ormatted<br />
c	[C]ombine values<br />
regexpr	[REG]ular [EXPR]ession	Why &#8220;regular&#8221;? See regular sets, regular language<br />
diag	[DIAG]onal values of a matrix<br />
col	[COL]umn<br />
lapply	[L]ist [APPLY]	Apply function to each element and return a list<br />
sapply	[S]implify [APPLY ]	Apply function to each element and attempt to return a vector (i.e., a vector is &#8220;simpler&#8221; than a list)<br />
mapply	[M]ultivariate [APPLY]	Multivariate version of sapply<br />
tapply	[T]able [APPLY]	Apply function to sets of values as defined by an index<br />
apply	[APPLY] function to sets of values as defined by an index<br />
MARGIN = 1 or 2 in apply	rows [1] come before columns [2]	e.g., a 2 x 3 matrix has 2 rows and 3 columns (note: row count is stated first)<br />
rmvnorm	[R]andom number generator for [M]ulti[V]ariate [NORM]al data<br />
rle	[R]un [L]ength [E]ncoding<br />
ftable	[F]ormat [TABLE]<br />
xtabs	Cross (i.e., [X]) [TAB]ulation	[X] is the symbol of a cross; [X] is sometimes spoken as &#8220;by&#8221;. Cross-tabulating means to cross one variable with another<br />
xtable	[TABLE] of the object [X]<br />
formatC	[FORMAT] using [C] style formats	i.e., [C] the programming language<br />
Sweave	[S] [WEAVE]	The R Programming language is a dialect of S. Weaving involves combining code and documentation<br />
cor	[COR]relation<br />
ancova	[AN]alysis [O]f [COVA]riance<br />
manova	[M]ultivariate [AN]alysis [O]f [VA]riance<br />
aov	[A]nalysis [O]f [V]ariance<br />
TukeyHSD	[T]ukey&#8217;s [H]onestly [S]ignificant [D]ifference<br />
hclust	[H]ierarchical [CLUST]er analysis<br />
cmdscale	[C]lassical metric [M]ulti[D]imensional [SCAL]ing<br />
factanal	[FACT]or [ANAL]ysis<br />
princomp	[PRIN]cipal [COMP]onents analysis<br />
prcomp	[PR]incipal [COMP]onents analysis<br />
lme	[L]inear [M]ixed [E]ffects model<br />
resid	[RESID]uals<br />
ranef	[RAN]dom [EF]fects<br />
anova	[AN]alysis [O]f [VA]riance<br />
fixef	[FIX]ed [EF]ffects<br />
vcov	[V]ariance-[COV]ariance matrix<br />
logLik	[LOG] [LIK]elihood<br />
BIC	[B]ayesian [I]nformation [C]riteria<br />
mcmcsamp	[M]arkov [Chain] [Monte] [C]arlo [SAMP]ling<br />
eval	[EVAL]uate an R expression<br />
cat	con[CAT]enate	standard Unix command<br />
apropos	Search documentation for a purpose or on a topic (i.e., [APROPOS])	Unix command for search documentation;<br />
read.csv	[READ] a file in [C]omma [S]eperated [V]alues format	i.e., in each row of the data commas separate values for each variable<br />
read.fwf	[READ] a file in [F]ixed [W]idth [F]ormat<br />
seq	Generate [SEQ]uence<br />
rep	[REP]licate values of x	perhaps also [REP]eat<br />
dim	[DIM]ension of an object	Typically, number of rows and columns in a matrix<br />
gl	[G]enerate factor [L]evels<br />
rbind	[R]ows [BIND]<br />
cbind	[C]olumns [BIND]<br />
is.na	[IS] [N]ot [A]vailable<br />
nrow	[N]umber of [ROW]s<br />
ncol	[N]umber of [COL]umns<br />
attr	[ATTR]ibute<br />
rev	[REV]erse<br />
diff	[DIFF]erence between x and a lag of x<br />
prod	[PROD]uct<br />
var	[VAR]iance<br />
sd	[S]tandard [D]eviation<br />
cumsum	[CUM]ulative [SUM]<br />
cumprod	[CUM]ulative [PROD]uct<br />
setdiff	[SET] [DIFF]erence<br />
intersect	[INTERSECT]ion<br />
Re	[RE]al part of a number<br />
Im	[IM]aginary part of a number<br />
Mod	[MOD]ulo opertion	remainder of division of one number by another<br />
t	[T]ranspose of a vector or matrix<br />
substr	[SUBSTR]ing<br />
strsplit	[STR]ing [SPLIT]<br />
grep	[G]lobal / [R]egular [E]xpression / [P]rint	Etymology based on text editor instructions in programs such as ed<br />
sub	[SUB]stitute identified pattern found in string<br />
gsub	[G]lobal [SUB]stitute identified pattern found in string<br />
pmatch	[P]artial string [MATCH]ing<br />
nchar	[N]umber of [CHAR]acters in a string<br />
ps.options	[P]ost-[S]cript [OPTIONS]<br />
win.metafile	[WIN]dows [METAFILE] graphic<br />
dev.off	[DEV]ice [OFF]<br />
dev.cur	[CUR]rent [DEV]ice<br />
dev.set	[SET] the current [DEV]ice<br />
hist	[HIST]ogram<br />
pie	[PIE] Chart<br />
coplot	[CO]nditioning [PLOT]<br />
matplot	[PLOT] colums of [MAT]rices<br />
assocplot	[ASSOC]iation [PLOT]<br />
plot.ts	[PLOT] [T]ime [S]eries<br />
qqnorm	[Q]uantile-[Q]uantile [P]lot based on normal distribution<br />
persp	[PERSP]ective [P]lot<br />
xlim	[LIM]it of the [X] axis<br />
ylim	[LIM]it of the [Y] axis<br />
xlab	[LAB]el for the [X] axis<br />
ylab	[LAB]el for the [Y] axis<br />
main	[MAIN] title for the plot<br />
sub	[SUB] title for the plot<br />
mtext	[M]argin [TEXT]<br />
abline	[LINE] on plot often of the form y = [A] + [B] x<br />
h argument in abline	[H]orizontal line<br />
v argument in abline	[V]ertical line<br />
par	Graphics [PAR]ameter<br />
adj as par	[ADJ]ust text [J]ustification<br />
bg as par	[B]ack[G]round colour<br />
bty as par	[B]ox [TY]pe<br />
cex as par	[C]haracter [EX]tension or [EX]pansion of plotting objects<br />
cex.sub as par	[C]haracter [EX]tension or [EX]pansion of [SUB]title<br />
cex.axis as par	[C]haracter [EX]tension or [EX]pansion of [AXIS] annotation<br />
cex.lab as par	[C]haracter [EX]tension or [EX]pansion X and Y [LAB]els<br />
cex.main as par	[C]haracter [EX]tension or [EX]pansion of [MAIN] title<br />
col as par	Default plotting [COL]our<br />
las as par	[L]abel of [A]xis [S]tyle<br />
lty as par	[L]ine [TY]pe<br />
lwd as par	[L]ine [W]i[D]th<br />
mar as par	[MAR]gin width in lines<br />
mfg as par	Next [G]raph for [M]atrix of [F]igures<br />
mfcol as par	[M]atrix of [F]igures entered [COL]umn-wise<br />
mfrow as par	[M]atrix of [F]igures entered [ROW]-wise<br />
pch as par	[P]lotting [CH]aracter<br />
ps as par	[P]oint [S]ize of text	Point is a printing measurement<br />
pty as par	[P]lot region [TY]pe<br />
tck as par	[T]i[CK] mark length<br />
tcl as par	[T]i[C]k mark [L]ength<br />
xaxs as par	[X] [AX]is [S]tyle<br />
yaxs as par	[Y] [AX]is [S]tyle<br />
xaxt as par	[X] [AX]is [T]ype<br />
yaxt as par	[Y] [AX]is [T]ype<br />
asp as par	[ASP]ect ratio<br />
xlog as par	[X] axis as [LOG]arithm scale<br />
ylog as par	[Y] axis as [LOG]arithm scale<br />
omi as par	[O]uter [M]argin width in [I]nches<br />
mai as par	[MA]rgin width in [I]nches<br />
pin as par	[P]lot size in [IN]ches<br />
xpd as par		Perhaps: [X = Cut] [P]lot ? Perhaps D for device<br />
xyplot	[X] [Y] [PLOT]	[X] for horizontal axis; [Y] for vertical axis<br />
bwplot	[B]ox and [W]hisker plot<br />
qq	[Q]uantile-[Quantile] plot&#8217;<br />
splom	[S]catter[PLO]t [M]atrix<br />
optim	[OPTIM]isation<br />
lm	[L]inear [M]odel<br />
glm	[G]eneralised [L]inear [M]odel<br />
nls	[N]onlinear [L]east [S]quare parameter esetimation<br />
loess	[LO]cally [E]stimated [S]catterplot [S]moothing<br />
prop.test	[TEST] null hypothesis that [PROP]ortions in several gropus are the same<br />
rnorm	[R]andom number drawn from [NORM]al distribution<br />
dnorm	[D]ensity of a given quantile in a [NORM]al distribution<br />
pnorm	[D]istribution function for [NORM]al distribution returning cumulaive [P]robability<br />
qnorm	[Q]uantile function based on [NORM]al distribution<br />
rexp	[R]andom number generation from [EXP]onential distribution<br />
rgamma	[R]andom number generation from [GAMMA] distribution<br />
rpois	[R]andom number generation from [POIS]on distribution<br />
rweibull	[R]andom number generation from [WEIBULL] distribution<br />
rcauchy	[R]andom number generation from [CAUCHY] distribution<br />
rbeta	[R]andom number generation from [BETA] distribution<br />
rt	[R]andom number generation from [t] distribution<br />
rf	[R]andom number generation from [F] distribution	F for Ronald [F]isher<br />
rchisq	[R]andom number generation from [CHI] [SQ]uare distribution<br />
rbinom	[R]andom number generation from [BINOM]ial distribution<br />
rgeom	[R]andom number generation from [EXP]onential distribution<br />
rhyper	[R]andom number generation from [HYPER]geometric distribution<br />
rlogis	[R]andom number generation from [LOGIS]tic distribution<br />
rlnorm	[R]andom number generation from [L]og [NOR]mal distribution<br />
rnbinom	[R]andom number generation from [N]egative [BINOM]ial distribution<br />
runif	[R]andom number generation from [UNIF]orm distribution<br />
rwilcox	[R]andom number generation from [WILCOX]on distribution<br />
ggplot in ggplot2	[G]rammar of [G]raphics [PLOT]	See Leland Wilkinson (1999)<br />
aes in ggplot2	[AES]thetic mapping<br />
geom_ in ggplot2	[GEOM]etric object<br />
stat_ in ggplot2	[STAT]istical summary<br />
coord_ in ggplot2	[COORD]inate system<br />
qplot in ggplot2	[Q]uick [PLOT]<br />
x as argument	[X] is common letter for unknown variable in math<br />
FUN as argument	[FUN]ction<br />
pos as argument	[POS]ition<br />
lib.loc in library	[LIB]rary folder [LOC]ation<br />
sep as argument	[SEP]erator character<br />
comment.char in read.table	[COMMENT] [CHAR]acter(s)<br />
I	[I]nhibit [I]nterpretation or [I]nsulate<br />
T value	[T]rue<br />
F value	[F]alse<br />
na.rm as argument	[N]ot [A]vailable [R]e[M]oved<br />
fivenum	[FIVE] [NUM]ber summary<br />
IQR	[I]nter [Q]uartile [R]ange<br />
coef	Model [COEF]ficients<br />
dist	[DIST]ance matrix<br />
df as argument	[D]egrees of [F]reedom<br />
mad	[M]edian [A]bsolute [D]eviation<br />
sink		Divert R output to a connection (i.e., like connecting a pipe to a [SINK])<br />
eol in write.table	[End] [O]f [L]ine character(s)<br />
R as software	[R]oss Ihaka and [R]obert Gentleman or [R] is letter before S<br />
CRAN as word	[C]omprehensive [R] [A]rchive [N]etwork	As I understand it: Inpsired by CTAN (Comprehensive TeX Archive Network); pronunciation of CRAN rhymes with CTAN (i.e., &#8220;See&#8221; ran as in Iran; &#8220;See tan&#8221;)<br />
Sexpr	[S] [EXPR]ession<br />
ls.str	Show [STR]ucture of [L]i[S]ted objects<br />
browseEnv	[BROWSE] [ENV]ironment<br />
envir as argument	[ENVIR]onment<br />
q	[Q]uit<br />
cancor	[CAN]onical [COR]relation<br />
ave	[AVE]rage<br />
min	[MIN]imum<br />
max	[MAX]imum<br />
sqrt	[SQ]uare [R]oo[T]<br />
%o%	[O]uter product<br />
&amp;		&amp; is ampersand meaning [AND]<br />
|		| often used to represent OR in computing (http://en.wikipedia.org /wiki /Logical_disjunction)<br />
:		sequence generator; aslo used in MATLAB<br />
nlevels	[N]umber of [LEVELS] in a factor<br />
det	[DET]erminant of a matrix<br />
crossprod	Matrix [CROSSPROD]uct<br />
gls	[G]eneralised [L]east [S]quares<br />
dwtest in lmtest	[D]urbin-[W]atson Test<br />
sem in sem	[S]tructural [E]quation [M]odel<br />
betareg in betareg	[BETA] [REG]ression<br />
log	Natural [LOG]arithm	Default base is e consistent with most mathematics (http://en.wikipedia.org /wiki /Logarithm#Implicit_bases)<br />
log10	[LOG]arithm base 10<br />
fft	[F]ast [F]ourier [T]ransform<br />
exp	[EXP]onential function	i.e., e^x<br />
df.residual	[D]egrees of [F]reedom of the [R]esidual<br />
sin	[SIN]e function<br />
cos	[COS]ine function<br />
tan	[TAN]gent function<br />
asin	[A]rc[SIN]e function<br />
acos	[A]rc[COS]ine function<br />
atan	[A]rc[TAN]gent function<br />
deriv	[DERIV]ative<br />
chol	[Choleski] decomposition<br />
chol2inv	[CHOL]eski [2=TO] [INV]erse<br />
svd	[S]ingular [V]alue [D]ecomposition<br />
eigen	[EIGEN]value or [EIGEN]vector<br />
lower.tri	[LOWER] [TRI]angle of a matrix<br />
upper.tri	[UPPER] [TRI]angle of a matrix<br />
acf	[A]uto [C]orrelation or [C]ovariance [F]unction<br />
pacf	[P]artial A]uto [C]orrelation or [C]ovariance [F]unction<br />
ccf	[C]ross [C]orrelation or [C]ovariance [F]unction<br />
Rattle as software	[R] [A]nalytical [T]ool [T]o [L]earn [E]asily	Perhaps, easy like a baby&#8217;s rattle<br />
StatET as software		Anyone know? Statistics Eclipse?<br />
JGR as software	[J]ava [G]UI for [R]	pronounced &#8220;Jaguar&#8221; like the cat<br />
ESS as software	[E]macs [S]peaks [S]tatistics<br />
Rcmdr package	[R] [C]o[m]man[d]e[r] GUI<br />
prettyNum	[PRETTY] [NUM]ber<br />
Inf value	[Inf]inite<br />
NaN value	[N]ot [A] [N]umber<br />
is.nan	[IS] [N]ot [A] [N]umber<br />
S3		R is a dialect of [S]; 3 is the version number<br />
S4		R is a dialect of [S]; 4 is the version number<br />
Rterm as program	[R] [TERM]inal<br />
R CMD as program		I think: [R] [C]o[m]man[D] prompt<br />
repos as option	[REPOS]itory locations<br />
bin folder	[BIN]aries	Common Unix folder for &#8220;essential command binaries&#8221;<br />
etc folder	[et cetera]	Common Unix folder for &#8220;host-specific system-wide configuration files<br />
src folder	[S]ou[RC]e [C]ode	Common Unix folder<br />
doc folder	[DOC]umentation<br />
RGUI program	[R] [G]rapical [U]ser [I]nterface<br />
.site file extension	[SITE] specific file	e.g., RProfile.site<br />
Hmisc package	Frank [HARRELL]&#8216;s package of [MISC]elaneous functions<br />
n in debug	[N]ext step<br />
c in debug	[C]ontinue<br />
Q in debug	[Q]uit<br />
MASS package	[M]odern [A]pplied [S]tatistics with [S]	Based on book of same name by Venables and Ripley<br />
plyr package	PL[Y=ie][R]	Double play on words: (1) package manipulates data like pliers manipulate materials; (2) last letter is R as in the program<br />
aaply	input [A]rray output [A]rray using [PLY]r package<br />
daply	input [D]ata frame output [A]rray using [PLY]r package<br />
laply	input [L]ist output [A]rray using [PLY]r package<br />
adply	input [A]rray output [D]ata frame using [PLY]r package<br />
alply	input [A]rray output [L]ist using [PLY]r package<br />
a_ply	input [A]rray output Discarded (i.e., _ is blank) using [PLY]r package<br />
RODBC package	[R] [O]bject [D]ata[B]ase [C]onnectivity<br />
psych package	[PSYCH]ology related functions<br />
zelig package		&#8220;Zelig is named after a Woody Allen movie about a man who had the strange ability to become the physical and psychological reflection of anyone he met and thus to fit perfectly in any situation.&#8221; &#8211; http://gking. harvard.edu/ zelig/<br />
strucchange package	[STRUC]tural [CHANGE]<br />
relaimpo package	[RELA]tive [IMPO]rtance<br />
car package	[C]ompanion to [A]pplied [R]egression	Named after book by John Fox<br />
OpenMx packge	[OPEN] Source [M]atri[X] algebra interpreter	Need confirmation that [Mx] means matrix<br />
df in write.foreign	[D]ata [F]rame<br />
GNU S word	[GNU] is [N]ot [U]nix [S]<br />
R FAQ word	R [F]requently [A]sked [Q]uestions<br />
DVI format	[D]e[V]ice [I]ndependent file format<br />
devel word	[DEVEL]opment	as in code under development<br />
GPL word	[G]eneral [P]ublic [L]icense<br />
utils package	[UTIL]itie[S]<br />
mle	[M]aximum [L]ikelihood [E]stimation<br />
rpart package	[R]ecursive [PART]itioning<br />
sna package	[S]ocial [N]etwork [A]nalysis<br />
ergm package	[E]xponential [R]andom [G]raph [M]odels<br />
rbugs package	[R] interface to program [B]ayesian inference [Using] [G]ibbs [S]ampling</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=59&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/05/19/abbreviations-of-r-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>Matlab input parameters using linux command</title>
		<link>http://yangfeng.wordpress.com/2010/04/03/matlab-input-parameters-using-linux-command/</link>
		<comments>http://yangfeng.wordpress.com/2010/04/03/matlab-input-parameters-using-linux-command/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 16:33:19 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=57</guid>
		<description><![CDATA[nohup matlab -nodisplay -nojvm -nosplash -r &#8220;randSeed=72;rho=0;s0=40;&#8221;  &#60;input.m&#62;  output.o&#38;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=57&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>nohup matlab -nodisplay -nojvm -nosplash -r &#8220;randSeed=72;rho=0;s0=40;&#8221;  &lt;input.m&gt;  output.o&amp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=57&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/04/03/matlab-input-parameters-using-linux-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>
	</item>
		<item>
		<title>EPS figures and PDF conversion (Credit to Gary)</title>
		<link>http://yangfeng.wordpress.com/2010/03/28/eps-figures-and-pdf-conversion-credit-to-gary/</link>
		<comments>http://yangfeng.wordpress.com/2010/03/28/eps-figures-and-pdf-conversion-credit-to-gary/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 04:35:17 +0000</pubDate>
		<dc:creator>yangfeng</dc:creator>
				<category><![CDATA[Latex Tips]]></category>

		<guid isPermaLink="false">http://yangfeng.wordpress.com/?p=54</guid>
		<description><![CDATA[Original Post: http://electron.mit.edu/~gsteele/pdf/ Background When submitting papers to journals or online archives, one of the common submission methods is to write your paper in LaTeX and submit the figures as EPS files. LaTeX was originally designed to produce an &#8220;Device-Independent&#8221; .dvi file that could then be converted to postscript file for printing using another program, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=54&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Original Post: http://electron.mit.edu/~gsteele/pdf/</h2>
<h2>Background</h2>
<p>When submitting papers to journals or online archives, one of the  common submission methods is to write your paper in LaTeX and submit the figures as EPS files.</p>
<p>LaTeX was originally designed to produce an &#8220;Device-Independent&#8221; .dvi file that could then be converted to postscript file for printing using another program, such as dvips. In the old days, the standard way to exchange a paper was to send it as postscript (or gzipped postscript), as this contained the actual layout with embedded figures.</p>
<p>Recently, postscript has been eclipsed by the PDF standard, which has many more features built in, such as text compression and image compression. In order to convert a LaTeX .dvi file to PDF, many useful tools are available. In particular, I find that <a href="http://gaspra.kettering.edu/dvipdfm/">dvipdfm</a> is the most effective, as it automatically includes the fonts as vector outlines instead of bitmaps, a problem that plagued the dvips/ps2pdf conversion option. It also supports many latex extensions that take advantage of PDFs advanced features, such as hyperlinking and <a href="http://darkwing.uoregon.edu/%7Enoeckel/PDFmovie.html">embedding movies</a>.</p>
<p>Natively, PDF supports many different different options for compressing images in order to reduce file size. Two of the common ones are:</p>
<ul>
<li> <strong>DCTEncode</strong>This is a lossy compression technique similar to that used in JPEG files. A Discrete-Cosine transformation of the data is taken and small coefficients are discarded. The number of coefficients to discard, and hence the file size and image quality, are controlled by the quality (or &#8220;quantization&#8221;) factor. While this produces small file sizes, it also can significantly degrade the image quality if the &#8220;quality factor&#8221; is too low. Usually, this results in &#8220;ringing&#8221; around sharp lines: it is particularly obvious around black lines or letters, where it produces fuzzyness and &#8220;speckles&#8221;.
<p>This setting producess &#8220;lossy&#8221; compression, and may be necessary for high resolution photographic images, where it produces acceptable quality. It is particularly poorly suited for things like graphs that include only solid lines on a white background.</li>
<li> <strong>FlateEncode</strong>This is a non-lossy ZLIB compression that is similar to &#8220;zipping&#8221; the image using software like gzip. It is equivalent to the compression that is used in PNG images. This is ideal for figures that include a small number of colors, such as plots with colored lines and symbols, as it will compress well and exactly reproduces the image you started with.</li>
</ul>
<p>To show what the difference between these two looks like, compare the following two images:</p>
<p>Lossless (FlateEncode/Zlib) Compression (470 bytes):</p>
<p><img src="http://electron.mit.edu/%7Egsteele/pdf/text.png" alt="" width="261" height="111" /></p>
<p>Lossy (DCTEncode/jpeg) compresssion with low quality factor (919 bytes):</p>
<p><img src="http://electron.mit.edu/%7Egsteele/pdf/text.jpg" alt="" width="261" height="111" /></p>
<p>The DCT compressed image is fuzzier, and shows &#8220;ringing&#8221; noise around the edges of the text. Note also that for images such as these that have only a few colors, DCTEncoding actually produces a larger file than FlateEncoding.</p>
<p>For more details about these and other image compression setting included in the PDF standard, I would reccommend reading the &#8220;Using the Image Settings&#8221; section of the Adobe <a href="http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/PDFCreationSettings.pdf"> PDF Creation Settings</a> manual available from Adobe&#8217;s <a href="http://partners.adobe.com/public/developer/acrobat/sdk/index_doc.html"> Acrobat SDK Documentation</a> developer&#8217;s resource page. The Adobe <a href="http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/DistillerParameters.pdf"> Distiller Parameters</a> manual is also quite useful.</p>
<p>One of the problems with pdf conversion is that most pdf converters (&#8220;distillers&#8221;) are configured by default to <em>always</em> use DCTEncoding for color and grayscale images. For a scientific paper, this produces very poor results.</p>
<p>Note that even such reputed publishers as <a href="http://www.sciencemag.org/">Science</a> and <a href="http://www.nature.com/nature/">Nature</a> suffer from these problems: if you zoom in on a figure from an online PDF from one of these publishers, the figures clearly show the signs of DCT compression with a low quality factor.</p>
<h2>Raterizing Figures</h2>
<p>This all becomes even more relevant when submitting figures to an online archive server, such as the <a href="http://lanl.arxiv.org/">arXiv</a> preprint server. The arXiv server limits the size of submissions to 1MB, which can make including high quality figures difficult. In particular, postscript figures of plots with a lot of points or lines can easily vastly exceed this limit.</p>
<p>The best solution is to take your vector postscript figures and &#8220;rasterize&#8221; them at a fixed resolution by converting them to either PNG image files or JPEG image files with a high quality setting.</p>
<p>A good way to do this is using ghostscript:</p>
<pre>$ gs -r300 -dEPSCrop -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=fig.png -dBATCH -dNOPAUSE fig.eps</pre>
<p>You can set the image resolution in pixels per inch using the -r flag. Make sure to include the -dEPSCrop option to crop the output to the size of the bounding box. The -dTextAlphaBits=4 option will anti-alias fonts in the EPS file so they have smooth looking edges. In general, printers are capable of at least 300 dpi, although I find you can go down to 150 dpi before it becomes really noticeable to the eye. Changing the resolution is by far the biggest way to impact the file size.</p>
<p>Once the figures are rasterized, the raster image can be encapsulated into an EPS file using programs like <a href="http://www.imagemagick.org/">ImageMagick</a> or <a href="http://imgtops.sourceforge.net/">imgtops</a>.  The imgtops webpage has an <a href="http://imgtops.sourceforge.net/bakeoff/">excellent discussion</a> of the subtleties of this step. Imagemagick is included in <a href="http://www.cygwin.com/">cygwin</a>, making it easy to use on a windows computer.</p>
<p>An important consideration is what postscript compatibility level you can use. As discussed in the imgtops page linked above, newer postscript versions support much better internal image formats. Level 1 uses only ascii-coded RGB values, and is very wasteful, producing very large files. Level 2 includes support for JPEG encoded images, which produces much smaller files. Level 3 includes support for Zlib compression, making it well suited for making EPS files from png files.</p>
<p>In general, level 3 will produce the smallest files. Level 2 provides the best compatibility, and works well with jpeg images.</p>
<p>If you decide to use level 2 postscript, I recommend converting first to a jpg file. The &#8220;convert&#8221; program included Imagemagick uses a quality factor in &#8220;percent&#8221; that ranges from 0 to 100:</p>
<pre>$ convert -quality 80 fig.png fig.jpg</pre>
<p>I find a quality factor of 80 on high resolution images gives good compresssion without too much loss in quality. You can then to convert the image to eps using &#8220;convert&#8221; with the eps2 settings:</p>
<pre>$ convert fig.jpg eps2:fig.eps</pre>
<p>If you can use level 3 postscript, you can convert directly from png to eps:</p>
<pre>$ convert fig.png eps3:fig.eps</pre>
<p>Using level 3 postscript from a png image file for scientific figures will often produce a very small eps file. Ghostscript is compatible with these level 3 eps files, so this is often a good way to go.</p>
<p>By adjusting a combination of the jpeg quality factor and the image resolution at the rasterization step, you can tweak the images to get an EPS file exactly the size you need while maintaining the highest possible quality and level of detail.</p>
<p>More information about this rasterization process is available from the arXiv <a href="http://lanl.arxiv.org/help/bitmap">Bitmapping Figures</a> page.</p>
<p>In general, I have found that is easy to produce relatively high quality raterized images this way that are small enough to squeeze inside the arXiv 1MB submisssion size limit.</p>
<p>However, this is not the end of the story&#8230;</p>
<h2>PDF Conversion</h2>
<p>This is where the real problem is. As I mentioned above, the default settings for most PDF distillers is to always compress color images using DCTEncoding, and the default quality factor is usually quite low.</p>
<p>This means that even though we have gone to all the trouble of tweaking our image resolution and quality factors to get the best quality images possible for our 1MB file limit, the images will be <em>recompresssed</em> by the PDF conversion software when somebody downloads a pdf of our paper. Furthermore, this recompression at the PDF conversion stage will involve a low quality factor, and the figures that will be in the PDF file will be of remarkably poor quality.</p>
<p>Fortunately, there is a way around this. The Adobe specification also defines a special set of Postscript commands that can be used inside of a postscript file to control the settings that the postscript to pdf conversion software uses. By manually editing your EPS files to include these special postscript commands, you can tell the PDF distiller exactly which types of image compression to use. This will work for any distiller that is compatible with the Adobe specifications, which fortunately includes the PDF conversion abilities of <a href="http://www.cs.wisc.edu/%7Eghost/">ghostscript</a>.</p>
<p>In order to get high quality figures in the converted PDF, you can either tell the PDF distiller to use FlateEncode or to use DCTEncode with a high quality factor. Here are the postscript snippets that allow you to do this:</p>
<ul>
<li> <strong>Use DCTEncode with a high quality factor:</strong> this involves setting a parameter called &#8220;/Qfactor&#8221; to a small number. The /Qfactor parameter actually refers to &#8220;Quantization factor&#8221;. Setting this to 0.15 uses the same settings as &#8220;Maximum Quality&#8221; mode for Acrobat distiller.
<pre>systemdict /setdistillerparams known {
&lt;&lt; /ColorACSImageDict &lt;&lt; /QFactor 0.15 /Blend 1 /ColorTransform 1 /HSamples [1 1 1 1] /VSamples [1 1 1 1] &gt;&gt;
    &gt;&gt; setdistillerparams
} if
</pre>
</li>
<li> <strong>Use FlateEncode:</strong> this way, the images that you see in the converted pdf file will be exactly identical to the EPS images you submit.
<pre>systemdict /setdistillerparams known {
&lt;&lt; /AutoFilterColorImages false /ColorImageFilter /FlateEncode &gt;&gt; setdistillerparams
} if
</pre>
</li>
</ul>
<p>To use these, simply open up your .eps file in a text editor such as emacs and insert the text after the end of the &#8220;%&#8221; commented area at the beginning of the file. This should automatically work with dvipdfm conversion as well as the pdf conversion software used on the arXiv server.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yangfeng.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yangfeng.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yangfeng.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yangfeng.wordpress.com&amp;blog=9302619&amp;post=54&amp;subd=yangfeng&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yangfeng.wordpress.com/2010/03/28/eps-figures-and-pdf-conversion-credit-to-gary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0cf9fe6f9356d65e7d5f809072653799?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yangfeng</media:title>
		</media:content>

		<media:content url="http://electron.mit.edu/%7Egsteele/pdf/text.png" medium="image" />

		<media:content url="http://electron.mit.edu/%7Egsteele/pdf/text.jpg" medium="image" />
	</item>
	</channel>
</rss>
