<?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>ProgrameR</title>
	<atom:link href="http://emeryyi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://emeryyi.wordpress.com</link>
	<description>work (it) out in R</description>
	<lastBuildDate>Sat, 22 May 2010 20:46:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='emeryyi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ProgrameR</title>
		<link>http://emeryyi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://emeryyi.wordpress.com/osd.xml" title="ProgrameR" />
	<atom:link rel='hub' href='http://emeryyi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Outer product of two vectors in Fortran</title>
		<link>http://emeryyi.wordpress.com/2010/05/22/outer-product-of-two-vectors-in-fortran/</link>
		<comments>http://emeryyi.wordpress.com/2010/05/22/outer-product-of-two-vectors-in-fortran/#comments</comments>
		<pubDate>Sat, 22 May 2010 05:49:03 +0000</pubDate>
		<dc:creator>emeryyi</dc:creator>
				<category><![CDATA[Mathmatics]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Fortran]]></category>

		<guid isPermaLink="false">http://emeryyi.wordpress.com/?p=31</guid>
		<description><![CDATA[Unfortunately, no outer product intrinsic function available in Fortran. Outer product return a matrix from two user-provided vector a and b, where we have to implement our own function by spread(a(1:n),dim=2,ncopies=n)*spread(b(1:n),dim=1,ncopies= p)) Here is some more detail about spread() function SPREAD(SOURCE, DIM, NCOPIES) ! A is the array (/ -4.7, 6.1, 0.3 /)      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=31&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, no <strong>outer product</strong> intrinsic function available in Fortran. <strong>Outer product</strong> return a matrix from two user-provided vector a and b,</p>
<p><a href="http://emeryyi.files.wordpress.com/2010/05/latex-image-2.png"><img class="alignnone size-full wp-image-39" title="latex-image-2" src="http://emeryyi.files.wordpress.com/2010/05/latex-image-2.png?w=720" alt=""   /></a></p>
<p>where</p>
<p><span id="more-31"></span></p>
<p><a href="http://emeryyi.files.wordpress.com/2010/05/untitled.png"><img class="alignnone size-full wp-image-34" title="Untitled" src="http://emeryyi.files.wordpress.com/2010/05/untitled.png?w=720" alt=""   /></a></p>
<p>we have to implement our own function by</p>
<blockquote>
<pre>spread(a(1:n),dim=2,ncopies=n)*spread(b(1:n),dim=1,ncopies= p))</pre>
</blockquote>
<pre><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;white-space:normal;font-size:13px;">Here is some more detail about <strong><em>spread()</em></strong> function</span>
<blockquote>
<div>SPREAD(SOURCE, DIM, NCOPIES)</div>
<div id="_mcePaste">! A is the array (/ -4.7, 6.1, 0.3 /)</div>
<div id="_mcePaste">       RES = SPREAD( A, DIM = 1, NCOPIES = 3 )</div>
<div id="_mcePaste">! The result is   | -4.7 6.1 0.3 |</div>
<div id="_mcePaste">!                 | -4.7 6.1 0.3 |</div>
<div id="_mcePaste">!                 | -4.7 6.1 0.3 |</div>
<div id="_mcePaste">! DIM=1 extends each column.  Each element in RES(:,1)</div>
<div id="_mcePaste">! becomes a copy of A(1), each element in RES(:,2) becomes</div>
<div id="_mcePaste">! a copy of A(2), and so on.</div>
<div id="_mcePaste">       RES = SPREAD( A, DIM = 2, NCOPIES = 3 )</div>
<div id="_mcePaste">! The result is   | -4.7 -4.7 -4.7 |</div>
<div id="_mcePaste">!                 |  6.1  6.1  6.1 |</div>
<div id="_mcePaste">!                 |  0.3  0.3  0.3 |</div>
<div id="_mcePaste">! DIM=2 extends each row.  Each element in RES(1,:)</div>
<div id="_mcePaste">! becomes a copy of A(1), each element in RES(2,:)</div>
<div id="_mcePaste">! becomes a copy of A(2), and so on.</div>
</blockquote>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emeryyi.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emeryyi.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emeryyi.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=31&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://emeryyi.wordpress.com/2010/05/22/outer-product-of-two-vectors-in-fortran/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa50a1866bbafd8b88465e1e597d13c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emeryyi</media:title>
		</media:content>

		<media:content url="http://emeryyi.files.wordpress.com/2010/05/latex-image-2.png" medium="image">
			<media:title type="html">latex-image-2</media:title>
		</media:content>

		<media:content url="http://emeryyi.files.wordpress.com/2010/05/untitled.png" medium="image">
			<media:title type="html">Untitled</media:title>
		</media:content>
	</item>
		<item>
		<title>Fortran Intrinsic Function for Lasso thresholding rule</title>
		<link>http://emeryyi.wordpress.com/2010/05/22/fortran-intrinsic-function-for-lasso-thresholding-rule/</link>
		<comments>http://emeryyi.wordpress.com/2010/05/22/fortran-intrinsic-function-for-lasso-thresholding-rule/#comments</comments>
		<pubDate>Sat, 22 May 2010 04:59:24 +0000</pubDate>
		<dc:creator>emeryyi</dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Fortran]]></category>

		<guid isPermaLink="false">http://emeryyi.wordpress.com/?p=23</guid>
		<description><![CDATA[In Lasso solution, the thresholding rule is Which can be achieved in Fortran by sign(dim(abs(a),b),a) as easy as original function. DIM(X, Y) If X &#62; Y, the value of the result is X &#8211; Y. If X &#60;= Y, the value of the result is zero. SIGN(A, B) The result is sgn*&#124;A&#124;, where: sgn = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=23&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Lasso solution, the thresholding rule is</p>
<p><a href="http://emeryyi.files.wordpress.com/2010/05/dsd1.jpg"><img class="alignnone size-full wp-image-28" title="dsd" src="http://emeryyi.files.wordpress.com/2010/05/dsd1.jpg?w=720" alt=""   /></a></p>
<p style="text-align:left;">Which can be achieved in Fortran by</p>
<blockquote>
<pre>sign(dim(abs(a),b),a)</pre>
</blockquote>
<p style="text-align:left;"><span id="more-23"></span>as easy as original function.</p>
<p><strong>DIM(X, Y)</strong></p>
<ol>
<li>If X &gt; Y, the value of the result is X &#8211; Y.</li>
<li>If X &lt;= Y, the value of the result is zero.</li>
</ol>
<p><strong>SIGN(A, B)</strong></p>
<p>The result is sgn*|A|, where:</p>
<ol>
<li> sgn = -1, if either of the following is true:
<ol>
<li>B &lt; 0</li>
<li>B is a REAL(4) or REAL(8) number with a value of negative 0, and you have specified the -qxlf90=signedzero option</li>
</ol>
</li>
<li> sgn = 1, otherwise.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emeryyi.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emeryyi.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emeryyi.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=23&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://emeryyi.wordpress.com/2010/05/22/fortran-intrinsic-function-for-lasso-thresholding-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa50a1866bbafd8b88465e1e597d13c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emeryyi</media:title>
		</media:content>

		<media:content url="http://emeryyi.files.wordpress.com/2010/05/dsd1.jpg" medium="image">
			<media:title type="html">dsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Indenting lines in gedit under Linux 10.04 lucid-lynx</title>
		<link>http://emeryyi.wordpress.com/2010/05/21/indenting-lines-in-gedit-under-linux-10-04-lucid-lynx/</link>
		<comments>http://emeryyi.wordpress.com/2010/05/21/indenting-lines-in-gedit-under-linux-10-04-lucid-lynx/#comments</comments>
		<pubDate>Fri, 21 May 2010 06:59:31 +0000</pubDate>
		<dc:creator>emeryyi</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://emeryyi.wordpress.com/?p=17</guid>
		<description><![CDATA[In Linux 10.04 gedit lines indent plugin no longer exists, indention shortcuts now are replace by shortcut &#8220;Tab&#8221; and &#8220;shift+Tab&#8221; instead. No extra plugin is needed anymore.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=17&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Linux 10.04 <strong>gedit</strong> <span style="text-decoration:underline;">lines indent</span> plugin no longer exists, indention shortcuts now are replace by shortcut &#8220;Tab&#8221; and &#8220;shift+Tab&#8221; instead. No extra plugin is needed anymore.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emeryyi.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emeryyi.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emeryyi.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=17&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://emeryyi.wordpress.com/2010/05/21/indenting-lines-in-gedit-under-linux-10-04-lucid-lynx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa50a1866bbafd8b88465e1e597d13c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emeryyi</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable Aero Snap effect under Metacity in Linux</title>
		<link>http://emeryyi.wordpress.com/2010/05/21/enable-aero-snap-effect-under-metacity-in-linux/</link>
		<comments>http://emeryyi.wordpress.com/2010/05/21/enable-aero-snap-effect-under-metacity-in-linux/#comments</comments>
		<pubDate>Fri, 21 May 2010 02:57:46 +0000</pubDate>
		<dc:creator>emeryyi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://emeryyi.wordpress.com/?p=5</guid>
		<description><![CDATA[Waffleshop’s blog http://www.thewaffleshop.net/2010/03/08/aero-snap-effect-for-metacity/ gives some terminal command which enables Linux to have Aero snap feature like windows 7. This is much faster and resource efficient than its counterpart run under Compiz. You must have Metacity and wmctrl installed. To use it shortcut is WIN+&#60;- and WIN+-&#62; Snap Left: 1. gconftool-2 −type string &#8211;set /apps/metacity/global_keybindings/run_command_1 &#8220;&#60;Super&#62;Left&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=5&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>Waffleshop’s blog <a href="http://">http://www.thewaffleshop.net/2010/03/08/aero-snap-effect-for-metacity/</a> gives some terminal command which enables Linux to have Aero snap feature like windows 7. This is much faster and resource efficient than its counterpart run under Compiz. You must have Metacity and wmctrl  installed. To use it shortcut is WIN+&lt;- and WIN+-&gt;</p>
<p><span id="more-5"></span></p>
<p>Snap Left:</p>
<blockquote><p>1. gconftool-2 −type string &#8211;set /apps/metacity/global_keybindings/run_command_1 &#8220;&lt;Super&gt;Left&#8221;</p>
<p>2. gconftool-2 &#8211;type string &#8211;set /apps/metacity/keybinding_commands/command_1 &#8220;wmctrl -r :ACTIVE: -e 0,0,0,`xwininfo -root | grep Width | awk &#8216;{ print (($2/2)-6)}&#8217;`,`xwininfo -root | grep Height | awk &#8216;{ print $2 }&#8217;`&#8221;</p></blockquote>
<p>Snap right:</p>
<blockquote><p>1. gconftool-2 &#8211;type string &#8211;set /apps/metacity/global_keybindings/run_command_2 &#8220;&lt;Super&gt;Right&#8221;</p>
<p>2. gconftool-2 &#8211;type string &#8211;set /apps/metacity/keybinding_commands/command_2 &#8220;wmctrl -r :ACTIVE: -e 0,`xwininfo -root | grep Width | awk &#8216;{ print (($2/2)+5) &#8220;,0,&#8221; (($2/2)-6) }&#8217;`,`xwininfo -root | grep Height | awk &#8216;{ print $2 }&#8217;`&#8221;</p></blockquote>
<p>Maximize:</p>
<blockquote><p>1. gconftool-2 &#8211;type string &#8211;set /apps/metacity/window_keybindings/toggle_maximized &#8220;&lt;Super&gt;Up&#8221;</p></blockquote>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/emeryyi.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/emeryyi.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/emeryyi.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=emeryyi.wordpress.com&amp;blog=13776472&amp;post=5&amp;subd=emeryyi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://emeryyi.wordpress.com/2010/05/21/enable-aero-snap-effect-under-metacity-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa50a1866bbafd8b88465e1e597d13c3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">emeryyi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
