<?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>Jason Yu-Tseh Chi's Notes</title>
	<atom:link href="http://chi3x10.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chi3x10.wordpress.com</link>
	<description>季育澤的記事本</description>
	<lastBuildDate>Tue, 24 Jan 2012 11:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chi3x10.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jason Yu-Tseh Chi's Notes</title>
		<link>http://chi3x10.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chi3x10.wordpress.com/osd.xml" title="Jason Yu-Tseh Chi&#039;s Notes" />
	<atom:link rel='hub' href='http://chi3x10.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Sort blobs generated by cvBlobsLib by areas.</title>
		<link>http://chi3x10.wordpress.com/2011/05/18/sort-blobs-generated-by-cvblobslib-by-areas/</link>
		<comments>http://chi3x10.wordpress.com/2011/05/18/sort-blobs-generated-by-cvblobslib-by-areas/#comments</comments>
		<pubDate>Wed, 18 May 2011 18:19:57 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[computer vision]]></category>
		<category><![CDATA[OpenCV]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=210</guid>
		<description><![CDATA[cvBlobsLib is an useful OpenCV 3rd party library to do blob analysis. However the blobs extracted are sorted based on their y coordinates and the author provided no interface to sort the blobs by other criteria such as area. To do so, you need to make some internal change. Add the following member function that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=210&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://opencv.willowgarage.com/wiki/cvBlobsLib">cvBlobsLib</a> is an useful OpenCV 3rd party library to do blob analysis. However the blobs extracted are sorted based on their y coordinates and the author provided no interface to sort the blobs by other criteria such as area. To do so, you need to make some internal change. Add the following member function that sort the blobs based on their areas to the class CBlobResult.</p>
<p><pre class="brush: cpp;">
    // sort blobs
    void SortBlobs()
    {
        struct myclass {
            bool operator() (CBlob* b1,CBlob* b2)
            {
                return (b1-&gt;GetArea() &lt; b2-&gt;GetArea());
            }
        } blobComp;

        std::sort(m_blobs.begin(),m_blobs.end(),blobComp);
    }
</pre></p>
<p>If you want to sort the blobs based on their x coordinates, change the 7th line of above code to</p>
<p><pre class="brush: cpp;">
return (b1-&gt;GetBoundingBox().x &lt; b2-&gt;GetBoundingBox().x);
</pre></p>
<p>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=210&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2011/05/18/sort-blobs-generated-by-cvblobslib-by-areas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>Read LiDar/LAS file in matlab.</title>
		<link>http://chi3x10.wordpress.com/2010/01/11/read-lidarlas-file-in-matlab/</link>
		<comments>http://chi3x10.wordpress.com/2010/01/11/read-lidarlas-file-in-matlab/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 20:53:38 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[LAS]]></category>
		<category><![CDATA[LIDAR]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[mex]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=197</guid>
		<description><![CDATA[Below is the c code for reading LiDar/LAS file into matlab. To compile the code, simply use mex LASReader.cpp The code reads the points coordinates only. Please see the code for details. For details of LiDar file format, please visit this link.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=197&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is the c code for reading LiDar/LAS file into matlab. To compile the code, simply use<br />
mex LASReader.cpp</p>
<p>The code reads the points coordinates only. Please see the code for details.</p>
<p>For details of LiDar file format, please visit <a href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;ved=0CAsQFjAA&amp;url=http%3A%2F%2Fliblas.org%2Fraw-attachment%2Fwiki%2FWikiStart%2Fasprs_las_format_v10.pdf&amp;ei=PZBLS4HtAsaWtgeQq-XkDQ&amp;usg=AFQjCNEJVt3GkXoj9Zawd4vr81ErJNvFpg&amp;sig2=t_hboiRfxQTPX5spla3KLw"> this link.</a></p>
<p><span id="more-197"></span></p>
<p><pre class="brush: cpp;">
#include &quot;mex.h&quot;
//#include &lt;math.h&gt;
#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;

/* This is a simple code to read LiDar file in matlab. It only reads only point coordinates now.
 * Syntax : points = LASReader('filename.las');
 *     points is a matrix of size 3 x numOfPoints.
 *
 *
 * Please email me at ychi@cise.ufl.edu if you have any questions.
 * Jason Yu-Tseh Chi
 **/

using namespace std;

void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
    if(nrhs != 1)
    {
        mexErrMsgTxt(&quot;Error: Syntax: reader(filename);\n&quot;);
    }

    //mexPrintf(&quot;begin reader\n&quot;);
    int sLength;
    // size of file header
    int headerSize = 227;
    mxArray *lData;
    char *fname;
    unsigned char header[227];
    unsigned int nPoints;
    //double xScale, yScale, zScale, xOffset, yOffset, zOffset;
    double scales[3],offsets[3], mins[3], maxs[3];

    int pRecLength, offset2Data;

    // read filename
    // get the length
    sLength = mxGetN(prhs[0])+1;
    fname = new char[sLength];
    // copy the filename
    mxGetString(prhs[0], fname, sLength);
    mexPrintf(&quot;The file to be opened is %s\n\n&quot;, fname);

    // open the LiDar file
    ifstream ifs(fname, ios::in|ios::binary);
    if(!ifs.good())
    {   mexErrMsgTxt(&quot;Error! File open error!&quot;);
        return;
    }

    // go to the end of the file to get the fileSize
    ifs.seekg(0, ios::end);
    int fileSize = ifs.tellg();
    ifs.seekg(0, ios::beg);

    // read the file header first;
    ifs.read((char*)header, headerSize);

    // read file signature. It has to be LASF otherwise it's not a valid LAS file.
    char four[5];
    memcpy(four,header,4);
    four[4] = '&#92;&#48;';
    mexPrintf(&quot;======= File INFO ======\n&quot;);
    mexPrintf(&quot;File Signature:\t\t %s (If it's not LASF, this file is not a valid LIDar file.)\n&quot;,four);

    // header size
    unsigned short temp;
    memcpy((unsigned char*)&amp;temp,header+94,2);
    mexPrintf(&quot;Header Size: \t\t %d\n&quot;, (int)temp);

    // Offset to Data. Will use this value later when reading points data.
    unsigned long temp1;
    memcpy((unsigned char*)&amp;temp1, header+94+2, 4);
    offset2Data = (int)temp1;
    mexPrintf(&quot;Offset to Data: \t %d\n&quot;, (int)offset2Data);

    // FOrmat ID.
    unsigned char t1;
    memcpy(&amp;t1,header+94+2+4+4,1);
    mexPrintf(&quot;Point Data Format ID:\t %d\n&quot;, (int)t1);

    // Point record length. Will use this value later when reading points data.
    memcpy((unsigned char*)&amp;temp,header+94+2+4+4+1,2);
    pRecLength = (int)temp;
    mexPrintf(&quot;Point Record Length: \t %d\n&quot;, pRecLength);

    // Number of points. Will use this value later when reading points data.
    memcpy((unsigned char*)&amp;temp1,header+94+2+4+4+2+1,4);
    nPoints = temp1;
    mexPrintf(&quot;Number of Points: \t %d\n&quot;, (int)nPoints);

    // Scales and offsets.
    double temp2;
    memcpy((unsigned char*)&amp;temp2,header+131,8);
    scales[0] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+131+8,8);
    scales[1] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+131+16,8);
    scales[2] = temp2;
    mexPrintf(&quot;Scales: \t\t (%.5f, %.5f, %.5f)\n&quot;, scales[0], scales[1], scales[2]);

    memcpy((unsigned char*)&amp;temp2,header+155,8);
    offsets[0] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+155+8,8);
    offsets[1] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+155+16,8);
    offsets[2] = temp2;
    mexPrintf(&quot;Offsets: \t\t (%.5f, %.5f, %.5f)\n&quot;, offsets[0], offsets[1], offsets[2]);

    // max's and min's in X, Y, and Z direction
    memcpy((unsigned char*)&amp;temp2,header+179,8);
    maxs[0] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+179+8,8);
    mins[0] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+179+16,8);
    maxs[1] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+179+24,8);
    mins[1] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+179+32,8);
    maxs[2] = temp2;
    memcpy((unsigned char*)&amp;temp2,header+179+30,8);
    mins[2] = temp2;

    mexPrintf(&quot;MaxXYZ: \t\t (%.5f, %.5f, %.5f)\n&quot;, maxs[0], maxs[1], maxs[2]);
    mexPrintf(&quot;MinXYZ: \t\t (%.5f, %.5f, %.5f)\n&quot;, mins[0], mins[1], mins[2]);

    mexPrintf(&quot;==========================================\n&quot;);

    // temp for reading one point
    long coor[3];
    // pointer to
    double *x;

    // will return a size of 3 x NumberOfPoints matrix back to matlab.
    plhs[0] = mxCreateDoubleMatrix(3, nPoints,mxREAL);
    x =mxGetPr(plhs[0]);

    // move to the data section of the file.
    ifs.seekg(offset2Data,ios::beg);
    // read point by point
    for(int i=0;i&lt;nPoints;i++)
    {
        ifs.seekg(offset2Data+i*pRecLength,ios::beg);
        ifs.read((char*)coor,12);

        // consider the offsets and scales.
        x[i*3] = (double)coor[0]*scales[0] + offsets[0];
        x[i*3+1] = (double)coor[1]*scales[1] + offsets[1];
        x[i*3+2] = (double)coor[2]*scales[2] + offsets[2];
        //mexPrintf(&quot;(%.4f,%.4f,%.4f)\n&quot;,x[3*i],x[3*i+1],x[3*i+2]);
    }

    delete [] fname;
    return;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=197&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2010/01/11/read-lidarlas-file-in-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>De Boor&#8217;s Algorithm in C++</title>
		<link>http://chi3x10.wordpress.com/2009/10/18/de-boor-algorithm-in-c/</link>
		<comments>http://chi3x10.wordpress.com/2009/10/18/de-boor-algorithm-in-c/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 09:48:31 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[B-Spline]]></category>
		<category><![CDATA[B-Spline Curve]]></category>
		<category><![CDATA[de Boor]]></category>
		<category><![CDATA[deBoor]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=167</guid>
		<description><![CDATA[Here is the c++ code for the De Boor algorithm. It calculates a point C(x) on a B-Spline curve of any degree. The Point class is defined as the follow:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=167&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is the c++ code for the De Boor algorithm. It calculates a point C(x) on a B-Spline curve of any degree.</p>
<p><pre class="brush: cpp;">
Point deBoor(int k,int degree, int i, double x, double* knots, Point *ctrlPoints)
{   // Please see wikipedia page for detail
	// note that the algorithm here kind of traverses in reverse order
	// comapred to that in the wikipedia page
	if( k == 0)
		return ctrlPoints[i];
	else
	{   
		double alpha = (x-knots[i])/(knots[i+degree+1-k]-knots[i]);
		return (deBoor(k-1,degree, i-1, x, knots, ctrlPoints)*(1-alpha )+deBoor(k-1,degree, i, x, knots, ctrlPoints)*alpha );
	}
}
</pre></p>
<p>The Point class is defined as the follow:</p>
<p><pre class="brush: cpp;">
class Point
{
public:
	Point(){x=0.;y=0.;z=0.;};
	// copy operator
	Point operator=(const Point pt) ;
	Point operator+(const Point pt) const;
	//Point operator-(const Point pt) const;
	Point operator*(double m) const;
	Point operator/(double m) const;
	double x,y,z;
};

Point Point::operator=(const Point pt)
{
	x = pt.x;
	y = pt.y;
	z = pt.z;
	return *this;
}
Point Point::operator+(const Point pt) const
{
	Point temp;
	temp.x = x + pt.x;
	temp.y = y + pt.y;
	temp.z = z + pt.z;
	return temp;
}
Point Point::operator*(double m) const
{
	Point temp;
	temp.x = x*m;
	temp.y = y*m;
	temp.z = z*m;
	return temp;
}
Point Point::operator/(double m) const
{
	Point temp;
	temp.x = x/m;
	temp.y = y/m;
	temp.z = z/m;
	return temp;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=167&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/10/18/de-boor-algorithm-in-c/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>Include EPS graphics in pdflatex</title>
		<link>http://chi3x10.wordpress.com/2009/06/18/eps-and-pdflatex-no-more-converting-eps-to-pdf/</link>
		<comments>http://chi3x10.wordpress.com/2009/06/18/eps-and-pdflatex-no-more-converting-eps-to-pdf/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:57:21 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[latex]]></category>
		<category><![CDATA[eps]]></category>
		<category><![CDATA[epstopdf]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdflatex]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=179</guid>
		<description><![CDATA[It&#8217;s a shame that pdflatex supports jpg, png, pdf&#8230; graphic type but not EPS while latex supports EPS but not the others. From my previous post, there is an easy way to convert EPS to pdf.  But it is just annoying that every time you want to include an eps graphic you have to do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=179&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a shame that <em><strong>pdflatex</strong></em> supports jpg, png, pdf&#8230; graphic type but not EPS while <em><strong>latex</strong></em> supports EPS but not the others. From my previous post, there is an easy way to convert EPS to pdf.  But it is just annoying that every time you want to include an eps graphic you have to do the conversion manually. After googling, I found out that there is a way to let <em><strong>pdflatex</strong></em> do the conversion for you. Here is how.<span id="more-179"></span></p>
<p>1. Install <em>texlive-extra-utils</em> which contains <em><strong>epstopdf</strong></em>.</p>
<pre><span style="color:#0000ff;"><strong>sudo apt-get install texlive-extra-utils</strong></span></pre>
<p>2. Insert the following code in in the preamble of your    document.</p>
<pre><strong><span style="color:#0000ff;"><span style="font-family:courier new;">\newif\ifpdf</span>
<span style="font-family:courier new;">\ifx\pdfoutput\undefined</span>
<span style="font-family:courier new;">   \pdffalse</span>
<span style="font-family:courier new;">\else</span>
<span style="font-family:courier new;">   \pdfoutput=1</span>
<span style="font-family:courier new;">   \pdftrue</span>
<span style="font-family:courier new;">\fi</span>
<span style="font-family:courier new;">\ifpdf</span>
<span style="font-family:courier new;">   \usepackage{graphicx}</span>
<span style="font-family:courier new;">   \usepackage{epstopdf}</span>
<span style="font-family:courier new;">   \DeclareGraphicsRule{.eps}{pdf}{.pdf}{`epstopdf #1}</span>
<span style="font-family:courier new;">   \pdfcompresslevel=9</span>
<span style="font-family:courier new;">\else</span>
<span style="font-family:courier new;">   \usepackage{graphicx}</span>
<span style="font-family:courier new;">\fi</span></span></strong></pre>
<p>3. Include eps graphics like usual</p>
<pre><span style="color:#0000ff;"><strong>\includegraphics[width=7in]{result_1.eps}</strong></span></pre>
<p>4. Compile the tex file with -<em>shell-escape</em> option</p>
<pre><span style="color:#0000ff;"><strong> pdflatex -shell-escape texWithEPSYAY.tex</strong></span></pre>
<p>During the compiling<em><strong> pdflatex</strong></em> converts the included <em>eps graphic</em> <em>files</em> into <em>pdf files</em> on the fly using <em><strong>epstopdf</strong></em>. After compiling, <em><strong>esptopdf</strong></em> generates a lot of <em>pdf files</em> (conversion from <em>eps files</em>). You will find the compile (is compile a noun?) a little bit slow. That is because it takes some time for <em><strong>epstopdf </strong></em>to convert <em>eps files</em> to <em>pdf files</em>. As one can imagine, it will become REALLY slow as the number of <em>eps graphics</em> included in a document increases. One way to fix this problem is that when inserting an<em> eps graphic</em> in a document, <em>LEAVE THE <span style="text-decoration:underline;">FILE EXTENSION</span> OFF</em>. For example, instead of</p>
<pre><span style="color:#0000ff;"><strong>\includegraphics[width=7in]{result_1.eps}</strong></span></pre>
<p>use</p>
<pre><span style="color:#0000ff;"><strong>\includegraphics[width=7in]{result_1}.</strong></span></pre>
<p>By this way, <em><strong>pdflatex </strong></em>first checks if <em>result_1.pdf</em> exists. If not, it locates <em>result_1.eps</em> and converts it to a <em>pdf file</em>. When <em>result_1.pdf</em> does exist, it simply inserts <em>result_1.pdf </em>in the document. Therefore, <em><strong>pdflatex</strong></em> only does the conversion when the corresponding <em>pdf file</em> does not exist. If you do NOT leave the file extension off, pdflatex would convert the <em>eps graphics</em> in the document to <em>pdf files</em> every time you compile.</p>
<p>Hope this helps.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=179&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/06/18/eps-and-pdflatex-no-more-converting-eps-to-pdf/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>Convert EPS to PDF: problem of bounding box</title>
		<link>http://chi3x10.wordpress.com/2009/06/17/convert-eps-to-pdf-problem-of-bounding-box/</link>
		<comments>http://chi3x10.wordpress.com/2009/06/17/convert-eps-to-pdf-problem-of-bounding-box/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 07:46:29 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[latex]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bounding box]]></category>
		<category><![CDATA[bounding box eps]]></category>
		<category><![CDATA[eps]]></category>
		<category><![CDATA[eps to pdf]]></category>
		<category><![CDATA[epstool]]></category>
		<category><![CDATA[epstopdf]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[matlab figure]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdflatex]]></category>
		<category><![CDATA[subplot figure eps]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=168</guid>
		<description><![CDATA[When you save a multiple plots/subfigures figure as an eps file in matlab, the bounding box might not be properly defined. People who use pdflatex need to convert EPS to PDF. The undefined bounding box will cause problems if you use epstopdf to convert EPS to PDF. This problem is shown in the first row [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=168&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you save a multiple plots/subfigures figure as an eps file in matlab, the bounding box might not be properly defined. People who use pdflatex need to convert EPS to PDF. The undefined bounding box will cause problems if you use <em><strong>epstopdf </strong></em>to convert EPS to PDF. This problem is shown in the first row in the picture below. The top-left figure is the eps file without properly defined bounding box. Because of this, <em><strong>epstopdf</strong></em> simply printed a letter size pdf file that only contains part of the figure as shown in the top-right figure. You can try to use the option &#8211;exact</p>
<pre><strong><span style="color:#000080;">epstopdf --exact bad.eps</span></strong></pre>
<p>It will probably generate an warning msg like &#8220;Warning: BoundingBox not found!&#8221; and the resulting pdf is still wrong. One way to fix this problem is to use <em><strong>epstool</strong></em></p>
<pre><span style="color:#000080;"><strong>epstool --copy --bbox bad.eps --output good.eps</strong></span></pre>
<p>The <strong>&#8211;<em>bbox</em></strong> option tells epstool to generate a (correct) bounding box for the eps file. With a correctly defined bounding box, you can easily convert an eps file to a pdf file.</p>
<pre><strong><span style="color:#000080;">epstopdf --exact good.eps</span></strong></pre>
<p>The results are shown in the 2nd row of the picture below. <em><strong>epstopdf</strong></em> generated an pdf file in the same size as the eps file.<br />
<img class="alignnone size-full wp-image-170" title="pic" src="http://chi3x10.files.wordpress.com/2009/06/screenshot-results-file-browser1.png?w=450&#038;h=352" alt="pic" width="450" height="352" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=168&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/06/17/convert-eps-to-pdf-problem-of-bounding-box/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>

		<media:content url="http://chi3x10.files.wordpress.com/2009/06/screenshot-results-file-browser1.png" medium="image">
			<media:title type="html">pic</media:title>
		</media:content>
	</item>
		<item>
		<title>Create iPhone ringtone for FREE using iTune 8</title>
		<link>http://chi3x10.wordpress.com/2009/02/21/create-iphone-ringtone-for-free-using-itune-8/</link>
		<comments>http://chi3x10.wordpress.com/2009/02/21/create-iphone-ringtone-for-free-using-itune-8/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 07:54:14 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[free iphone ringtone]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ringtone]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=150</guid>
		<description><![CDATA[iTune allow users to create their own ringtone from the music file downloaded via iTune store. It&#8217;s very convenient for users to create ringtones from their favorite songs  but it&#8217;s not free. This guide will show you how to convert mp3/acc files to iPhone for FREE simply using iTune 8. Launch itune and select a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=150&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>iTune allow users to create their own ringtone from the music file downloaded via iTune store. It&#8217;s very convenient for users to create ringtones from their favorite songs  but it&#8217;s not free. This guide will show you how to convert mp3/acc files to iPhone for FREE simply using iTune 8.<span id="more-150"></span></p>
<ol>
<li> Launch itune and select a song you want to convert. The mp3/ACC files must be imported to iTune already.</li>
<li>Right click on the song and select <strong>Get Info</strong> from the pop-up menu.</li>
<li>Select <strong>Options </strong>tab from the <strong>Info </strong>window as shown in the figure.<br />
<img class="alignnone size-full wp-image-151" title="Info" src="http://chi3x10.files.wordpress.com/2009/02/untitled-2.jpg?w=450" alt="Info"   /></li>
<li>Check <strong>Start Time </strong>and <strong>Stop Time</strong> as shown in the figure above. Set the time interval. Make sure it does not exceed 30 seconds.</li>
<li>Click OK.</li>
<li>Now you are back to iTune main window. Right click on the same song you just selected. Select <strong>Create AAC version</strong> from the pop-up menu.<img class="alignnone size-full wp-image-152" title="mmm" src="http://chi3x10.files.wordpress.com/2009/02/untitled-3.jpg?w=450" alt="mmm"   /></li>
<li>itune will generate an AAC version of the song you just selected. This AAC format song will appear in itune with the same file name but shorter.<img class="alignnone size-full wp-image-154" title="untitled-41" src="http://chi3x10.files.wordpress.com/2009/02/untitled-41.jpg?w=450" alt="untitled-41"   /></li>
<li>Right click the newly generated one and select <strong>Copy </strong>from the pop-up menu.</li>
<li>Paste this file on Desktop (or whatever folder you want).</li>
<li>Change the file extension from <strong>m4a</strong> to <strong>m4r</strong> (r as in ringtone <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).<br />
<img class="alignnone size-full wp-image-156" title="untitled-51" src="http://chi3x10.files.wordpress.com/2009/02/untitled-51.jpg?w=450" alt="untitled-51"   /></li>
<li> Import this .m4r file to iTune. You should be able to see it under <strong>Ringtones </strong>in iTune. Plug your iPhone in and sync it. You got your free ringtones!!!! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=150&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/02/21/create-iphone-ringtone-for-free-using-itune-8/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>

		<media:content url="http://chi3x10.files.wordpress.com/2009/02/untitled-2.jpg" medium="image">
			<media:title type="html">Info</media:title>
		</media:content>

		<media:content url="http://chi3x10.files.wordpress.com/2009/02/untitled-3.jpg" medium="image">
			<media:title type="html">mmm</media:title>
		</media:content>

		<media:content url="http://chi3x10.files.wordpress.com/2009/02/untitled-41.jpg" medium="image">
			<media:title type="html">untitled-41</media:title>
		</media:content>

		<media:content url="http://chi3x10.files.wordpress.com/2009/02/untitled-51.jpg" medium="image">
			<media:title type="html">untitled-51</media:title>
		</media:content>
	</item>
		<item>
		<title>Install flash player for firefox in ubuntu 8.04</title>
		<link>http://chi3x10.wordpress.com/2009/02/01/install-flash-player-for-firefox-in-ubuntu-804/</link>
		<comments>http://chi3x10.wordpress.com/2009/02/01/install-flash-player-for-firefox-in-ubuntu-804/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:26:39 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[flash problem]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=139</guid>
		<description><![CDATA[1. Open firefox. Go to youtube.com and select any video. If you havn&#8217;t install flah, a message of &#8220;Hello, you either have JavaScript turned off or an ol version of Adobe&#8217;s Flash Player. Get the lastest Flash player.&#8221;. Click on the link and you will be redirected to adobe website to download it. Select .deb [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=139&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Open firefox. Go to youtube.com and select any video. If you havn&#8217;t install flah, a message of &#8220;Hello, you either have JavaScript turned off or an ol version of Adobe&#8217;s Flash Player. Get the lastest Flash player.&#8221;. Click on the link and you will be redirected to adobe website to download it. Select .deb for Ubuntu x.xx.</p>
<p>2. Let the Package installer software install it. Restart firefox and it should be working.</p>
<p>If it&#8217;s still not working, follow the following steps.</p>
<p>3. Open Terminal and input<br />
$&gt; <strong>firefox &amp;<br />
</strong>to execute firefox.</p>
<p>4. Go to youtube.com and click on any video. It will be just like step 1 but this time you can see the error message from the Terminal. For me, the error messages say<br />
<span style="color:#ff0000;"> LoadPlugin: failed to initialize shared library /usr/lib/adobe-flashplugin/libflashplayer.so [<strong>libnss3</strong>.so: cannot open shared object file: No such file or directory]<br />
<span style="color:#000000;">The problem is not in flash player but because of a dependency lib of flash player mssing . </span></span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">5. Open <span style="text-decoration:underline;">Synaptic package manager</span> (System &gt;&gt; Administration &gt;&gt; Synaptic package manager) and install the missing lib (libnss3). Restart firefox and the flash should work fine.<br />
</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=139&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/02/01/install-flash-player-for-firefox-in-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>WebDAV client with encrypted SSL connection in ubuntu</title>
		<link>http://chi3x10.wordpress.com/2009/01/27/installation-guide-of-webdav-client-in-ubuntu/</link>
		<comments>http://chi3x10.wordpress.com/2009/01/27/installation-guide-of-webdav-client-in-ubuntu/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 05:19:39 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[webdav ubuntu]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=132</guid>
		<description><![CDATA[WebDAV is a set of extensions to the HTTP protocol that allow users to edit and manage files on remote www servers. Here is the installation guide. 1. #&#62; sudo apt-get install davfs2 2. create a folder mkdir /media/webdav 3. Mount remote webdav server by sudo mount -t davfs https://ip_address:port /media/webdav<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=132&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WebDAV is a set of extensions to the HTTP protocol that allow users to edit and manage files on remote www servers. Here is the installation guide.</p>
<p><strong>1. #&gt; sudo apt-get install davfs2</strong></p>
<p>2. create a folder<strong><br />
mkdir /media/webdav</strong></p>
<p>3. Mount remote webdav server by<br />
sudo mount -t davfs https://ip_address:<span style="color:#000080;">port</span> /media/webdav</p>
<p><strong></strong></p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=132&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2009/01/27/installation-guide-of-webdav-client-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>The index of the largest element in a 2D array in matlab</title>
		<link>http://chi3x10.wordpress.com/2008/11/12/the-index-of-the-largest-element-in-a-2d-matrix-in-matlab/</link>
		<comments>http://chi3x10.wordpress.com/2008/11/12/the-index-of-the-largest-element-in-a-2d-matrix-in-matlab/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 22:08:49 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[matlab]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[max]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=123</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=123&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span><span><span><span style="color:#005500;"> <pre class="brush: cpp;">
[v,ind]=max(X);
[v1,ind1]=max(max(X));
disp(['The largest element in X is' num2str(v1) ' at (' num2str(ind(ind1)) ',' num2str(ind1) ')']);
</pre></p>
<p></span></span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=123&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2008/11/12/the-index-of-the-largest-element-in-a-2d-matrix-in-matlab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
		<item>
		<title>Converting images to avi file in matlab</title>
		<link>http://chi3x10.wordpress.com/2008/10/21/converting-images-to-avi-file-in-matlab/</link>
		<comments>http://chi3x10.wordpress.com/2008/10/21/converting-images-to-avi-file-in-matlab/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 22:07:26 +0000</pubDate>
		<dc:creator>chi3x10</dc:creator>
				<category><![CDATA[matlab]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[matlab convert image video file]]></category>

		<guid isPermaLink="false">http://chi3x10.wordpress.com/?p=106</guid>
		<description><![CDATA[Here is the matlab code to convert a collection of images to a video file. Click here for detail instruction on addframe function. Keywords: convert images jpb bmp to video avi compressed codec<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=106&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>Here is the matlab code to convert a collection of images to a video file.</p>
<p><pre class="brush: cpp;">

%// Will open an avi file name test.avi in local folder
aviobj = avifile('test.avi');
%// the quality of this video file
aviobj.Quality = 80;
%// compression method. See matlab manual for details.
aviobj.COMPRESSION ='None';%%color image

for i =1:numOfFrames
    %// apply image processing algorithms to the image here. 
    %// image must be in size width x height x 3
    %//  in other words, color image. 
    ..........
    ..........
    %// add image to the end of the avi file
    aviobj = addframe(aviobj,image);
end
%// close the file handle.
aviobj = close(aviobj);
</pre></p>
<p>Click <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/addframe.html&amp;http://www.google.com/search?q=addframe+matlab&amp;sourceid=navclient-ff&amp;ie=UTF-8&amp;rlz=1B3GGGL_enUS272US272" target="_blank">here</a> for detail instruction on addframe function.</p>
<h6><span style="color:#ffffff;">Keywords: convert images jpb bmp to video avi compressed codec</span></h6>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chi3x10.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chi3x10.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chi3x10.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chi3x10.wordpress.com&amp;blog=2905952&amp;post=106&amp;subd=chi3x10&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chi3x10.wordpress.com/2008/10/21/converting-images-to-avi-file-in-matlab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70e8cf85a97cb456c80b304b308c1a5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">chi3x10</media:title>
		</media:content>
	</item>
	</channel>
</rss>
