<?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/"
	>

<channel>
	<title>Bread &#38; Cup &#187; General</title>
	<atom:link href="http://blog.breadncup.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.breadncup.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 11:25:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Product Dimension: W for width, D for depth, H for height.</title>
		<link>http://blog.breadncup.com/2010/04/13/product-dimension-w-for-width-d-for-depth-h-for-height/</link>
		<comments>http://blog.breadncup.com/2010/04/13/product-dimension-w-for-width-d-for-depth-h-for-height/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 05:39:43 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[depth]]></category>
		<category><![CDATA[dimension]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[width]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=273</guid>
		<description><![CDATA[Easy to remember of width, depth, and height.]]></description>
			<content:encoded><![CDATA[<p>Whenever I read this kind of 10&#8243;(W)x5&#8243;(D)x8&#8243;(H) for a product dimension, I am confusing what it stands for and it is hard to imagine from time to time.</p>
<p>Here, for my record, I put this here:</p>
<p><img title="Dimension for width, depth, and height" src="http://farm5.static.flickr.com/4061/4519495977_9c6b0c4b1e_o.gif" alt="Dimension for width, depth, and height" width="319" height="173" /></p>
<p>That is basic geometry dimension. <img src='http://blog.breadncup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Easy if you know.</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=273" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2010/04/13/product-dimension-w-for-width-d-for-depth-h-for-height/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Way not to use Cache in Linux</title>
		<link>http://blog.breadncup.com/2009/12/04/way-not-to-use-cache-in-linux/</link>
		<comments>http://blog.breadncup.com/2009/12/04/way-not-to-use-cache-in-linux/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 17:21:17 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=217</guid>
		<description><![CDATA[Introducing the way not to use cache in linux programming.]]></description>
			<content:encoded><![CDATA[<p>Here is an information not to use cache in linux while reading the kernel newbie mailing list.</p>
<blockquote><p>Hi!<br />
On 19:29 Fri 04 Dec     , Lal wrote:<br />
&gt; Dear list members,<br />
&gt;<br />
&gt; I have a question about Linux page cache. I create a 10MB file using<br />
&gt; following application code:<br />
&gt;<br />
&gt; int fd=open(&#8220;foo.txt&#8221;, O_CREAT|O_RDWR|O_SYNC);<br />
&gt; char* content=(char *)malloc(1024*1024*10);<br />
&gt; write(fd, content, 1024*1024*10);<br />
&gt; free(content); close(fd);<br />
&gt;<br />
&gt; Immediately before and after this code execution, command &#8220;free -m&#8221;<br />
&gt; shows free memory decreased by 10M and cache incresed by 10M.<br />
&gt;<br />
&gt; If I delete foo.txt, then free memory increases by 10M and cache<br />
&gt; decreases by 10M.<br />
&gt;<br />
&gt; My question is why the cache is growing even after O_SYNC flag? Even<br />
&gt; fsync does not help. But deleting file freeing the cache.</p>
<p><span style="color: #ff0000;">O_SYNC</span> does not mean &#8220;do not cache&#8221;. It means &#8220;make sure the data is written<br />
to disk. The data is kept in memory even after writing to speed up subsequent<br />
reads. If you do not want this, you can pass the <span style="color: #ff0000;">O_DICECT</span> flag. But be aware<br />
that using this can easily slow you down.<br />
Either way, if you want to write zeros to the file, make sure the buffer is<br />
initialised after malloc, e.g. via memset or bzero. If you only want to<br />
allocate a file with zeros, you can also consider using fallocate or sparse<br />
files.</p>
<p>-Michi</p></blockquote>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=217" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2009/12/04/way-not-to-use-cache-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is RSS?</title>
		<link>http://blog.breadncup.com/2009/11/27/what-is-rss-2/</link>
		<comments>http://blog.breadncup.com/2009/11/27/what-is-rss-2/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 01:21:46 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[commoncraft]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[visual]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=183</guid>
		<description><![CDATA[Here is the nice visual explanation from commoncraft.com about RSS.]]></description>
			<content:encoded><![CDATA[<p>Here is the nice visual explanation from <a title="Commoncraft.com" href="http://www.commoncraft.com/" target="_blank">commoncraft.com</a> about RSS.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/0klgLsSxGsU&amp;rel=1" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/0klgLsSxGsU&amp;rel=1" wmode="transparent"></embed></object></p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=183" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2009/11/27/what-is-rss-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing mathtex.cgi</title>
		<link>http://blog.breadncup.com/2009/11/27/installing-mathtex-cgi/</link>
		<comments>http://blog.breadncup.com/2009/11/27/installing-mathtex-cgi/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 01:12:32 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[mathtex]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[texlive]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=175</guid>
		<description><![CDATA[This shows how I have make and install mathtex.cgi]]></description>
			<content:encoded><![CDATA[<p>In order to make and install mathtex.cgi, latex and dvipng are prerequisite. You need to <a title="Latex Install" href="http://blog.breadncup.com/2009/11/27/latex-install/">install latex </a>first and divpng will come along with it.</p>
<p>You can follow the instruction</p>
<ol>
<li><a title="Install Mathtex.cgi" href="http://www.forkosh.dreamhost.com/source_mathtex.html#install" target="_blank">http://www.forkosh.dreamhost.com/source_mathtex.html#install</a></li>
</ol>
<p>Following will show how I have done with it for example.</p>
<pre># wget http://www.forkosh.com/mathtex.zip
# mkdir mathtex
# cd mathtex
# unzip ../mathtex.zip
# cc mathtex.c –DLATEX=\\"$(which latex)\\" \\
–DDVIPNG=\\"$(which dvipng)\\" –o mathtex.cgi
# cp mathtex.cgi /public_html/xxx.../cgi-bin/</pre>
<p>For test of mathtex.cgi, in your web browser, you can do it by</p>
<pre>www.example.com/cgi-bin/mathtex.cgi?x^2+y^2</pre>
<p>It will give you the gif image showing equation by latex syntax.</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=175" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2009/11/27/installing-mathtex-cgi/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Installing Latex</title>
		<link>http://blog.breadncup.com/2009/11/27/latex-install/</link>
		<comments>http://blog.breadncup.com/2009/11/27/latex-install/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 01:02:46 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[texlive]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=168</guid>
		<description><![CDATA[It shows how I installed tex live.]]></description>
			<content:encoded><![CDATA[<p>The latex can be installed by following instruction:</p>
<ul>
<li> <a title="texlive acquire" href="http://www.tug.org/texlive/acquire.html" target="_blank">http://www.tug.org/texlive/acquire.html</a></li>
<li><a title="Texlive Quick Install" href="http://www.tug.org/texlive/quickinstall.html" target="_blank"> http://www.tug.org/texlive/quickinstall.html</a></li>
</ul>
<p>Followings are showing how I installed for example.</p>
<pre># wget http://carroll.aset.psu.edu/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
# tar -xvzf install-tl-unx.tar.gz
# cd install-tl-20091126
# ./install-tl</pre>
<p>While running &#8220;install-tl&#8221;, I used &#8216;D&#8217; option to change the directory to be installed, and &#8216;O&#8217; to select &#8216;use letter size instead of A4 by default&#8217; option.</p>
<p>It took around 1 hour to be installed. I have installed it in &#8220;~/texlive/&#8221; and latex and divpng are installed in &#8220;~/texlive/bin/x86_64-linux&#8221;</p>
<p>If you want to test the latex, please do</p>
<pre># latex small2e</pre>
<p>It will give small2e.dvi in your directory. Using dvipng tool, you can make it gif or png image file.</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=168" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2009/11/27/latex-install/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>7 Sins in the Bible.</title>
		<link>http://blog.breadncup.com/2007/12/31/7-sins-in-the-bible/</link>
		<comments>http://blog.breadncup.com/2007/12/31/7-sins-in-the-bible/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 18:05:47 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[Christianity]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[bible]]></category>
		<category><![CDATA[seven sins]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/2007/12/31/7-sins-in-the-bible/</guid>
		<description><![CDATA[7 Sins in bible.]]></description>
			<content:encoded><![CDATA[<ol>
<li>Pride: Pride will have a fall</li>
<li>Covetousness: Never covet wealth and power</li>
<li>Lust: When she (a wild camel) is in heat, who can control her? (Jeremiah 2:24)</li>
<li>Anger: A fit of anger is a nail in your coffin</li>
<li>Gluttony</li>
<li>Envy</li>
<li>Sloth: While the slothful man sleeps, poverty will attack him like an armed robber (Proverbs 6:11)</li>
</ol>
<p>I don&#8217;t know where I have gotten above though. (Of course, the Bible says about it, but I have not seen about 7 sins specifically. I guess somebody has summarized.)</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=29" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2007/12/31/7-sins-in-the-bible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reduce fat belly.</title>
		<link>http://blog.breadncup.com/2007/07/11/how-to-reduce-fat-belly/</link>
		<comments>http://blog.breadncup.com/2007/07/11/how-to-reduce-fat-belly/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 05:49:03 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[belly]]></category>
		<category><![CDATA[fat]]></category>
		<category><![CDATA[health]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/2007/07/11/how-to-reduce-fat-belly/</guid>
		<description><![CDATA[Introducing a study about how to reduce fat belly.]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm2.static.flickr.com/1328/782417867_27272e2370.jpg?v=0" alt="Captured from Woman's Health Free Brochure" /></p>
<blockquote><p>The university of Tennessee study found that if you eat three serving of yogurt per day, you could lose your weight comparing to the people does not eat.
</p></blockquote>
<p>Interesting. Could it be true? Not sure, but it could be worth to try, isn&#8217;t it?</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=13" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2007/07/11/how-to-reduce-fat-belly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Start to Blog</title>
		<link>http://blog.breadncup.com/2007/07/02/start-to-blog/</link>
		<comments>http://blog.breadncup.com/2007/07/02/start-to-blog/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 07:48:42 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[introduction]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/2007/07/02/start-to-blog/</guid>
		<description><![CDATA[Just a note to notify of starting blog.]]></description>
			<content:encoded><![CDATA[<p>
As of July 2nd, 2007, I am starting write English blog.</p>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2007/07/02/start-to-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

