<?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>:: uisp :: dsin ::</title>
	<atom:link href="http://dsin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dsin.wordpress.com</link>
	<description>Just another dsin weblog</description>
	<lastBuildDate>Sun, 23 Oct 2011 08:15:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dsin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>:: uisp :: dsin ::</title>
		<link>http://dsin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dsin.wordpress.com/osd.xml" title=":: uisp :: dsin ::" />
	<atom:link rel='hub' href='http://dsin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>how to switch email google appengine appcfg</title>
		<link>http://dsin.wordpress.com/2011/10/23/how-to-switch-email-google-appengine-appcfg/</link>
		<comments>http://dsin.wordpress.com/2011/10/23/how-to-switch-email-google-appengine-appcfg/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 08:15:49 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[email switching]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google-appengine]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=582</guid>
		<description><![CDATA[python appcfg.py &#8211;email your-email@gmail.com &#8211;no_cookies update your-app-id &#8211;no_cookies is very important na ja<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=582&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>python appcfg.py &#8211;email your-email@gmail.com  &#8211;no_cookies update your-app-id</p>
<p>&#8211;no_cookies is very important na ja</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=582&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2011/10/23/how-to-switch-email-google-appengine-appcfg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
		<item>
		<title>How to import existing Android project into Eclipse</title>
		<link>http://dsin.wordpress.com/2011/04/13/how-to-import-existing-android-project-into-eclipse/</link>
		<comments>http://dsin.wordpress.com/2011/04/13/how-to-import-existing-android-project-into-eclipse/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 06:13:00 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=576</guid>
		<description><![CDATA[1. import &#62; Existing Project into workspace 2. Properties &#62; Android Checked ! &#8221; Project Build Target : Android 3.0 &#8220; Apply Very Important !! You have to apply first before going to next step. 3. Properties &#62; Java Build &#8230; <a href="http://dsin.wordpress.com/2011/04/13/how-to-import-existing-android-project-into-eclipse/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=576&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. import &gt; Existing Project into workspace<br />
2. Properties &gt; Android<br />
    Checked ! &#8221; Project Build Target : Android 3.0 &#8220;<br />
    Apply<br />
    Very Important !! You have to apply first before going to next step.<br />
3. Properties &gt; Java Build Path<br />
    Libraries<br />
    Add Library<br />
    &gt; Android Classpath Container</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/576/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=576&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2011/04/13/how-to-import-existing-android-project-into-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
		<item>
		<title>Better Javascript</title>
		<link>http://dsin.wordpress.com/2011/03/01/better-javascript/</link>
		<comments>http://dsin.wordpress.com/2011/03/01/better-javascript/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 05:10:12 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[pattern]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=566</guid>
		<description><![CDATA[Loop 1. 2. Count down to 0, is usually faster it’s more efficient to compare to 0 than to the length of the array or to anything other than 0 For loop While loop For in / hasOwnProperty Adding method &#8230; <a href="http://dsin.wordpress.com/2011/03/01/better-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=566&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Loop</strong><br />
1.<br />
<pre class="brush: jscript;">for (i = 0, max = myarray.length; i &amp;lt; max; i++) { </pre></p>
<p>2.</p>
<p>Count down to 0, is usually faster<br />
it’s more efficient to compare to 0 than to the length of the array or to anything other than 0</p>
<p>For loop<br />
<pre class="brush: jscript;">for (i = myarray.length; i--;) {  </pre><br />
While loop<br />
<pre class="brush: jscript;">    i = myarray.length;  
while (i--) {  </pre></p>
<p><strong>For in / hasOwnProperty</strong></p>
<p>Adding method to all objs<br />
<pre class="brush: jscript;">// somewhere else in the code  
// a method was added to all objects  
if (typeof Object.prototype.clone === &quot;undefined&quot;) {  
   Object.prototype.clone = function () {};  
}  
</pre><br />
Filter hasOwnProperty<br />
<pre class="brush: jscript;">// 1.  
// for-in loop  
for (var i in man) {  
   if (man.hasOwnProperty(i)) { // filter  
      console.log(i, &quot;:&quot;, man[i]);  
   }  
}  
/* result in the console 
hands : 2 
legs : 2 
heads : 1 
*/  
// 2.  
// antipattern:  
// for-in loop without checking hasOwnProperty()  
for (var i in man) {  
   console.log(i, &quot;:&quot;, man[i]);  
}  
/* 
result in the console 
hands : 2 
legs : 2 
heads : 1 
clone: function() 
*/  </pre></p>
<p>Another pattern to filter<br />
<pre class="brush: jscript;">for (var i in man) {  
   if (Object.prototype.hasOwnProperty.call(man, i)) { // filter  
      console.log(i, &quot;:&quot;, man[i]);  
   }  
} </pre></p>
<p>Or<br />
1.<br />
	<pre class="brush: jscript;">var i, hasOwn = Object.prototype.hasOwnProperty;  
for (i in man) {  
    if (hasOwn.call(man, i)) { // filter  
        console.log(i, &quot;:&quot;, man[i]);  
    }  
}  </pre></p>
<p>2.<br />
<pre class="brush: jscript;">// Warning: doesn't pass JSLint  
var i, hasOwn = Object.prototype.hasOwnProperty;  
for (i in man) if (hasOwn.call(man, i)) { // filter  
    console.log(i, &quot;:&quot;, man[i]);  
} </pre></p>
<p><strong>eval()</strong><br />
<pre class="brush: jscript;">// antipattern  
var property = &quot;name&quot;;  
alert(eval(&quot;obj.&quot; + property));  
  
// preferred  
var property = &quot;name&quot;;  
alert(obj[property]);  </pre><br />
same as setTimeOut(), setInterval()<br />
<pre class="brush: jscript;">// antipatterns  
setTimeout(&quot;myFunc()&quot;, 1000);  
setTimeout(&quot;myFunc(1, 2, 3)&quot;, 1000);  
  
// preferred  
setTimeout(myFunc, 1000);  
setTimeout(function () {  
   myFunc(1, 2, 3);  
}, 1000);  </pre></p>
<p>Here only un remains as a global variable polluting the namespace<br />
<pre class="brush: jscript;">console.log(typeof un); // &quot;undefined&quot;  
console.log(typeof deux); // &quot;undefined&quot;  
console.log(typeof trois); // &quot;undefined&quot;  
  
var jsstring = &quot;var un = 1; console.log(un);&quot;;  
eval(jsstring); // logs &quot;1&quot;  
  
jsstring = &quot;var deux = 2; console.log(deux);&quot;;  
new Function(jsstring)(); // logs &quot;2&quot;  
  
jsstring = &quot;var trois = 3; console.log(trois);&quot;;  
(function () {  
   eval(jsstring);  
}()); // logs &quot;3&quot;  
  
console.log(typeof un); // number  
console.log(typeof deux); // undefined  
console.log(typeof trois); // undefined  </pre></p>
<p>eval() can access and modify a variable in its outer scope, whereas Function cannot<br />
<pre class="brush: jscript;">(function () {  
   var local = 1;  
   eval(&quot;local = 3; console.log(local)&quot;); // logs 3  
   console.log(local); // logs 3  
}());  
  
(function () {  
   var local = 1;  
   Function(&quot;console.log(typeof local);&quot;)(); // logs undefined  
}());  </pre></p>
<p><strong>string to number</strong><br />
Prevent octal confusion<br />
<pre class="brush: jscript;">var month = &quot;06&quot;,  
    year = &quot;09&quot;;  
month = parseInt(month, 10);  
</pre><br />
Alternate string to number<br />
<pre class="brush: jscript;">+&quot;08&quot; // result is 8  
Number(&quot;08&quot;) // 8  </pre></p>
<p><strong>Code convention</strong><br />
Naming globals with all caps can reinforce the practice of minimizing their number and can make them easily distinguishable.<br />
<pre class="brush: jscript;">// precious constants, please don't touch  
var PI = 3.14,  
    MAX_WIDTH = 800; </pre></p>
<p>private with _<br />
<pre class="brush: jscript;">var person = {  
    getName: function () {  
        return this._getFirst() + ' ' + this._getLast();  
    },  
  
    _getFirst: function () {  
        // ...  
    },  
    _getLast: function () {  
        // ...  
    }  
};  </pre></p>
<p>Other conventions :</p>
<ul>
<li>private_ : name_, getElements_()</li>
<li>_protected properties, __private properties</li>
<li>In Firefox some internal properties not technically part of the language are available, and they are named with a two underscores prefix and a two underscore suffix, such as __proto__ and __parent__
</li>
</ul>
<p>ref : <a href="http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/">tutsplus</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/566/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=566&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2011/03/01/better-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
		<item>
		<title>K3B burn DVD from iso</title>
		<link>http://dsin.wordpress.com/2010/12/29/k3b-burn-dvd-from-iso/</link>
		<comments>http://dsin.wordpress.com/2010/12/29/k3b-burn-dvd-from-iso/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 16:29:31 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[k3b]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/2010/12/29/k3b-burn-dvd-from-iso/</guid>
		<description><![CDATA[Tools &#62; Burn DVD ISO Image<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=554&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tools &gt; Burn DVD ISO Image</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/554/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=554&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/12/29/k3b-burn-dvd-from-iso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
		<item>
		<title>Appengine : &#8216;ascii&#8217; codec can&#8217;t decode byte 0xe0 in position 5: ordinal not in range(128)</title>
		<link>http://dsin.wordpress.com/2010/12/29/appengine-ascii-codec-cant-decode-byte-0xe0-in-position-5-ordinal-not-in-range128/</link>
		<comments>http://dsin.wordpress.com/2010/12/29/appengine-ascii-codec-cant-decode-byte-0xe0-in-position-5-ordinal-not-in-range128/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 13:56:18 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=551</guid>
		<description><![CDATA['ascii' codec can't decode byte 0xe0 in position 5: ordinal not in range(128) Solution : Execute setdefaultencoding in Interactive Console at http://localhost:8080/_ah/admin/interactive import sys reload(sys); sys.setdefaultencoding('utf-8') ref : hrstc, gae<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=551&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>'ascii' codec can't decode byte 0xe0 in position 5: ordinal not in range(128)</code></p>
<p>Solution :</p>
<p>Execute setdefaultencoding in Interactive Console at http://localhost:8080/_ah/admin/interactive </p>
<p><code>import sys<br />
reload(sys); sys.setdefaultencoding('utf-8')</code></p>
<p>ref : <a href="http://www.hrstc.org/node/38">hrstc</a>, <a href="http://code.google.com/p/googleappengine/issues/detail?id=629">gae</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=551&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/12/29/appengine-ascii-codec-cant-decode-byte-0xe0-in-position-5-ordinal-not-in-range128/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
		<item>
		<title>Scale Space Pyramid</title>
		<link>http://dsin.wordpress.com/2010/11/30/scale-space-pyramid/</link>
		<comments>http://dsin.wordpress.com/2010/11/30/scale-space-pyramid/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 10:12:49 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=540</guid>
		<description><![CDATA[scale invarient : correspondences often requires their comparison where they are seen at different scale DoG : Different of Gaussian Integral image can be used to up-scale at constant cost as seen in the right side of picture below. ref &#8230; <a href="http://dsin.wordpress.com/2010/11/30/scale-space-pyramid/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=540&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>scale invarient : correspondences often requires their comparison where they are seen at different scale</p>
<p>DoG : Different of Gaussian</p>
<p><a href="http://dsin.files.wordpress.com/2010/11/scale_invarient_feature.png"><img src="http://dsin.files.wordpress.com/2010/11/scale_invarient_feature.png?w=640" alt="" title="scale_invarient_feature"   class="aligncenter size-full wp-image-541" /></a></p>
<p><a href="http://dsin.wordpress.com/2010/11/30/internal-images-basic-concept">Integral image</a> can be used to up-scale at constant cost as seen in the right side of picture below.<br />
<a href="http://dsin.files.wordpress.com/2010/11/intergral_image_for_scaling.png"><img src="http://dsin.files.wordpress.com/2010/11/intergral_image_for_scaling.png?w=640" alt="" title="intergral_image_for_scaling"   class="aligncenter size-full wp-image-546" /></a></p>
<p>ref :  <a href="http://www.cs.cornell.edu/courses/cs664/2005fa/Lectures/lecture21.pdf">cornell</a>, <a href="http://www.vision.ee.ethz.ch/~surf/papers.html">surf paper</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/540/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=540&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/11/30/scale-space-pyramid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/scale_invarient_feature.png" medium="image">
			<media:title type="html">scale_invarient_feature</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/intergral_image_for_scaling.png" medium="image">
			<media:title type="html">intergral_image_for_scaling</media:title>
		</media:content>
	</item>
		<item>
		<title>Convolution basic example</title>
		<link>http://dsin.wordpress.com/2010/11/30/convolution-basic-example/</link>
		<comments>http://dsin.wordpress.com/2010/11/30/convolution-basic-example/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 09:49:39 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=520</guid>
		<description><![CDATA[Definition Discreate form Properties 1. 2. In image processing : two dimensions convolution h is called convolution kernel or mask Sliding kernel throughout the image. If image is like in kernel, we will have peak value of y(m, n). &#8211;&#62; &#8230; <a href="http://dsin.wordpress.com/2010/11/30/convolution-basic-example/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=520&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Definition</strong></p>
<p><img src='http://s0.wp.com/latex.php?latex=y%28t%29+%3D+h%28t%29%2Ax%28t%29+%3D+%5Cint_%7B-%5Cinf%7D%5E%7B%5Cinf%7D+x%28%5Ctau%29h%28t-%5Ctau%29d%5Ctau+%3D+%5Cint_%7B-%5Cinf%7D%5E%7B%5Cinf%7D+h%28%5Ctau%29x%28t-%5Ctau%29d%5Ctau+%3D+x%28t%29%2Ah%28t%29+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y(t) = h(t)*x(t) = &#92;int_{-&#92;inf}^{&#92;inf} x(&#92;tau)h(t-&#92;tau)d&#92;tau = &#92;int_{-&#92;inf}^{&#92;inf} h(&#92;tau)x(t-&#92;tau)d&#92;tau = x(t)*h(t) ' title='y(t) = h(t)*x(t) = &#92;int_{-&#92;inf}^{&#92;inf} x(&#92;tau)h(t-&#92;tau)d&#92;tau = &#92;int_{-&#92;inf}^{&#92;inf} h(&#92;tau)x(t-&#92;tau)d&#92;tau = x(t)*h(t) ' class='latex' /></p>
<p>Discreate form </p>
<p><img src='http://s0.wp.com/latex.php?latex=y%28n%29+%3D+%5Csum_%7Bm%3D-%5Cinf%7D%5E%7B%5Cinf%7Dx%28n-m%29h%28m%29+%3D+%5Csum_%7Bm%3D-%5Cinf%7D%5E%7B%5Cinf%7Dh%28n-m%29x%28m%29+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y(n) = &#92;sum_{m=-&#92;inf}^{&#92;inf}x(n-m)h(m) = &#92;sum_{m=-&#92;inf}^{&#92;inf}h(n-m)x(m) ' title='y(n) = &#92;sum_{m=-&#92;inf}^{&#92;inf}x(n-m)h(m) = &#92;sum_{m=-&#92;inf}^{&#92;inf}h(n-m)x(m) ' class='latex' /></p>
<p><strong>Properties</strong><br />
1. <img src='http://s0.wp.com/latex.php?latex=h%28t%29%2Ax%28t%29+%3D+x%28t%29%2Ah%28t%29+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h(t)*x(t) = x(t)*h(t) ' title='h(t)*x(t) = x(t)*h(t) ' class='latex' /><br />
2. <img src='http://s0.wp.com/latex.php?latex=h%2A%28g%2Ax%29+%3D+%28h%2Ag%29%2Ax+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h*(g*x) = (h*g)*x ' title='h*(g*x) = (h*g)*x ' class='latex' /></p>
<p>In image processing : two dimensions convolution<br />
h is called convolution kernel or mask</p>
<p><img src='http://s0.wp.com/latex.php?latex=y%28m%2C+n%29+%3D+%5Csum_%7Bi%3D-k%7D%5E%7Bk%7D%5Csum_%7Bj%3D-k%7D%5E%7Bk%7Dx%28m%2Bi%2C+n%2Bj%29h%28i%2Cj%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y(m, n) = &#92;sum_{i=-k}^{k}&#92;sum_{j=-k}^{k}x(m+i, n+j)h(i,j)' title='y(m, n) = &#92;sum_{i=-k}^{k}&#92;sum_{j=-k}^{k}x(m+i, n+j)h(i,j)' class='latex' /><br />
<a href="http://dsin.files.wordpress.com/2010/11/digital_convolution_2d.gif"><img src="http://dsin.files.wordpress.com/2010/11/digital_convolution_2d.gif?w=640" alt="" title="digital_convolution_2D"   class="aligncenter size-full wp-image-525" /></a></p>
<p>Sliding kernel throughout the image. If image is like in kernel, we will have peak value of y(m, n). &#8211;&gt; roughly use to detect same image ??<br />
The pictures below is a good visualization from <a href="http://en.wikipedia.org/wiki/Convolution">Wiki</a>.</p>
<p><a href="http://dsin.files.wordpress.com/2010/11/convolution_of_box_signal_with_itself2.gif"><img src="http://dsin.files.wordpress.com/2010/11/convolution_of_box_signal_with_itself2.gif?w=640" alt="" title="Convolution_of_box_signal_with_itself2"   class="aligncenter size-full wp-image-531" /></a></p>
<p><a href="http://dsin.files.wordpress.com/2010/11/convolution_of_spiky_function_with_box2.gif"><img src="http://dsin.files.wordpress.com/2010/11/convolution_of_spiky_function_with_box2.gif?w=640" alt="" title="Convolution_of_spiky_function_with_box2"   class="aligncenter size-full wp-image-534" /></a></p>
<p>ref : <a href="http://fourier.eng.hmc.edu/e161/lectures/convolution/index.html">hmc</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=520&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/11/30/convolution-basic-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/digital_convolution_2d.gif" medium="image">
			<media:title type="html">digital_convolution_2D</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/convolution_of_box_signal_with_itself2.gif" medium="image">
			<media:title type="html">Convolution_of_box_signal_with_itself2</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/convolution_of_spiky_function_with_box2.gif" medium="image">
			<media:title type="html">Convolution_of_spiky_function_with_box2</media:title>
		</media:content>
	</item>
		<item>
		<title>Internal Images Basic Concept</title>
		<link>http://dsin.wordpress.com/2010/11/30/internal-images-basic-concept/</link>
		<comments>http://dsin.wordpress.com/2010/11/30/internal-images-basic-concept/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 09:03:10 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=507</guid>
		<description><![CDATA[&#160; At each pixel (x,y), calculate sum of the rectangle [(0, 0), (x, y)]  by using the following formulas &#160; Integral Image at location &#160; &#160; Suppose we want to find sum in D in the picture D = (A+B+C+D) &#8230; <a href="http://dsin.wordpress.com/2010/11/30/internal-images-basic-concept/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=507&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dsin.files.wordpress.com/2010/11/integral_image_for_feature_detection.png"><img class="aligncenter size-full wp-image-508" title="integral_image_for_feature_detection" src="http://dsin.files.wordpress.com/2010/11/integral_image_for_feature_detection.png?w=640" alt=""   /></a></p>
<p>&nbsp;</p>
<p>At <strong>each pixel</strong> (x,y), calculate sum of the rectangle [(0, 0), (x, y)]  by using the following formulas</p>
<p>&nbsp;</p>
<p>Integral Image <img src='http://s0.wp.com/latex.php?latex=I_%7B%5CSigma%7D%28X%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='I_{&#92;Sigma}(X)' title='I_{&#92;Sigma}(X)' class='latex' /> at location <img src='http://s0.wp.com/latex.php?latex=X%3D%28x%2Cy%29%5ET&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=(x,y)^T' title='X=(x,y)^T' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=I_%7B%5CSigma%7D%28X%29+%3D+%5Csum_%7Bi%3D0%7D%5E%7Bi+%3C%3D+x%7D%5Csum_%7Bj%3D0%7D%5E%7Bj+%3C%3D+y%7D+I%28i%2C+j%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='I_{&#92;Sigma}(X) = &#92;sum_{i=0}^{i &lt;= x}&#92;sum_{j=0}^{j &lt;= y} I(i, j)' title='I_{&#92;Sigma}(X) = &#92;sum_{i=0}^{i &lt;= x}&#92;sum_{j=0}^{j &lt;= y} I(i, j)' class='latex' /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Suppose we want to find sum in D in the picture</p>
<p>D = (A+B+C+D) &#8211; (A+C) &#8211; (A+B) &#8211; A</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>ref : <a href="http://www.cs.cornell.edu/courses/cs664/2005fa/Lectures/lecture21.pdf">cornell</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/507/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/507/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/507/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=507&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/11/30/internal-images-basic-concept/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/11/integral_image_for_feature_detection.png" medium="image">
			<media:title type="html">integral_image_for_feature_detection</media:title>
		</media:content>
	</item>
		<item>
		<title>simpson rules อินทิกรัล จำกัดเขต ของกำลังสอง สมบูรณ์</title>
		<link>http://dsin.wordpress.com/2010/11/10/smpson-rules/</link>
		<comments>http://dsin.wordpress.com/2010/11/10/smpson-rules/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 04:00:32 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=445</guid>
		<description><![CDATA[การอินทิเกรท ก็คือ การหา พื้นที่ใต้กราฟ ซึ่งคิดว่า เคยทำกันมาแล้ว ซึ่ง คุณ มณฑล สุกใส อธิบาย พร้อม พิสูจน์ ได้ดีมากๆ ที่เวป thaifoodscience ซึ่งคำอธิบายในรูปที่ว่า &#8221; ถ้าคิดไม่ออก ก็ทำเป็นสี่เหลี่ยมคางหมูซะเลย &#8221;  ทำให้ระลึกชาติ ได้ดีทีเดียว ผมจดมาแค่ทฤษฎีนะครับ รูปและสมการเอามาจาก initmath สังเกตว่า ตัวแรกกับตัวท้าย ค่าสัมประสิทธิ์เป็น 1 นอกนั้น 4 กับ 2 สลับกัน ส่วนวิธีเลือกค่า ให้เลือกตาม วิธีด้านล่าง โดยการ diff &#8230; <a href="http://dsin.wordpress.com/2010/11/10/smpson-rules/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=445&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>การอินทิเกรท ก็คือ การหา พื้นที่ใต้กราฟ ซึ่งคิดว่า เคยทำกันมาแล้ว</p>
<p>ซึ่ง คุณ มณฑล สุกใส อธิบาย พร้อม พิสูจน์ ได้ดีมากๆ ที่เวป <a href="http://www.thaifoodscience.com/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AB%E0%B8%B2%E0%B8%84%E0%B9%88%E0%B8%B2-f-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%97%E0%B8%B2%E0%B8%87%E0%B8%81%E0%B8%A3%E0%B8%B2%E0%B8%9F.html" target="_blank">thaifoodscience</a> ซึ่งคำอธิบายในรูปที่ว่า &#8221; ถ้าคิดไม่ออก ก็ทำเป็นสี่เหลี่ยมคางหมูซะเลย &#8221;  ทำให้ระลึกชาติ ได้ดีทีเดียว</p>
<p>ผมจดมาแค่ทฤษฎีนะครับ</p>
<p><a href="http://dsin.files.wordpress.com/2010/09/simpson_rules.gif"><img class="aligncenter size-medium wp-image-456" title="simpson rule" src="http://dsin.files.wordpress.com/2010/09/si2.gif?w=300&#038;h=159" alt="Simpson integral rule" width="300" height="159" /></a></p>
<p style="text-align:center;">รูปและสมการเอามาจาก <a href="http://www.intmath.com/Integration/6_Simpsons-rule.php" target="_blank">initmath</a></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cint_%7Ba%7D%5E%7Bb%7D+f%28x%29+%5C%2C+dx+%5Capprox+%5Cfrac%7B%5CDelta+x%7D%7B3%7D%5Cleft%5By_%7B0%7D+%2B+4+y_%7B1%7D+%2B+2+y_%7B2%7D+%2B+4+y_%7B3%7D+%2B+2+y_%7B4%7D+%2B+..+%2B+4+y_%7Bn-1%7D+%2B+y_%7Bn%7D+%5Cright%5D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;int_{a}^{b} f(x) &#92;, dx &#92;approx &#92;frac{&#92;Delta x}{3}&#92;left[y_{0} + 4 y_{1} + 2 y_{2} + 4 y_{3} + 2 y_{4} + .. + 4 y_{n-1} + y_{n} &#92;right] ' title='&#92;int_{a}^{b} f(x) &#92;, dx &#92;approx &#92;frac{&#92;Delta x}{3}&#92;left[y_{0} + 4 y_{1} + 2 y_{2} + 4 y_{3} + 2 y_{4} + .. + 4 y_{n-1} + y_{n} &#92;right] ' class='latex' /></p>
<p>สังเกตว่า ตัวแรกกับตัวท้าย ค่าสัมประสิทธิ์เป็น 1</p>
<p>นอกนั้น 4 กับ 2 สลับกัน</p>
<p>ส่วนวิธีเลือกค่า <img src='http://s0.wp.com/latex.php?latex=%5CDelta+x+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Delta x ' title='&#92;Delta x ' class='latex' /> ให้เลือกตาม วิธีด้านล่าง โดยการ diff f(x) ไป 4 ที</p>
<p>If <img src='http://s0.wp.com/latex.php?latex=%7Cf%5E%7B4%7D%28x%29%7C+%3C%3D+M+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='|f^{4}(x)| &lt;= M ' title='|f^{4}(x)| &lt;= M ' class='latex' /> for all x in interval a &lt;= x &lt;= b,<br />
and h = (b-a)/n  then</p>
<p>Error &lt;= M * h^4*(b-a)/180</p>
<p>where n is the number of subintervals</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/445/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=445&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/11/10/smpson-rules/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>

		<media:content url="http://dsin.files.wordpress.com/2010/09/si2.gif?w=300" medium="image">
			<media:title type="html">simpson rule</media:title>
		</media:content>
	</item>
		<item>
		<title>Linear Regression using Matrix</title>
		<link>http://dsin.wordpress.com/2010/10/19/linear-regression-using-matrix/</link>
		<comments>http://dsin.wordpress.com/2010/10/19/linear-regression-using-matrix/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 09:16:37 +0000</pubDate>
		<dc:creator>dsin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dsin.wordpress.com/?p=496</guid>
		<description><![CDATA[ถ้าเรามี เมื่อ error จะได้ว่า เมื่อ &#8216; คือ transpose นะ เดาเอา และ เมื่อ hat คือ ค่าประมาณ n = จำนวนข้อมูลที่นำมาคิด k = จำนวน params ที่ประมาณ ในที่นี้ มี กับ ดังนั้น k = 2 ถ้าไม่รู้เรื่อง ไปใช้ gnuplot แก้เอาก็ได้ ดูตัวอย่าง ที่นี่<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=496&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ถ้าเรามี <img src='http://s0.wp.com/latex.php?latex=Y+%3D+%5Cbeta_%7B0%7D+%2B+%5Cbeta_%7B1%7D+X+%2B+%5Cepsilon+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y = &#92;beta_{0} + &#92;beta_{1} X + &#92;epsilon ' title='Y = &#92;beta_{0} + &#92;beta_{1} X + &#92;epsilon ' class='latex' /></p>
<p>เมื่อ error <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon+%3D+N%280%2C+%5Csigma%5E%7B2%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;epsilon = N(0, &#92;sigma^{2})' title='&#92;epsilon = N(0, &#92;sigma^{2})' class='latex' /></p>
<p>จะได้ว่า <img src='http://s0.wp.com/latex.php?latex=%5Chat%7B%5Cbeta%7D+%3D+%28x%27x%29%5E%7B-1%7Dx%27Y+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;hat{&#92;beta} = (x&#039;x)^{-1}x&#039;Y ' title='&#92;hat{&#92;beta} = (x&#039;x)^{-1}x&#039;Y ' class='latex' /> เมื่อ &#8216; คือ transpose นะ เดาเอา</p>
<p>และ <img src='http://s0.wp.com/latex.php?latex=s%5E%7B2+%7D+%3D+%5Cfrac%7B1%7D%7Bn-k%7D%28Y-%5Chat%7BY%7D%29%27%28Y-%5Chat%7BY%7D%29+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='s^{2 } = &#92;frac{1}{n-k}(Y-&#92;hat{Y})&#039;(Y-&#92;hat{Y}) ' title='s^{2 } = &#92;frac{1}{n-k}(Y-&#92;hat{Y})&#039;(Y-&#92;hat{Y}) ' class='latex' /> เมื่อ hat คือ ค่าประมาณ<br />
n = จำนวนข้อมูลที่นำมาคิด<br />
k = จำนวน params ที่ประมาณ ในที่นี้ มี <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_%7B0%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_{0} ' title='&#92;beta_{0} ' class='latex' /> กับ <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_%7B1%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_{1} ' title='&#92;beta_{1} ' class='latex' /> ดังนั้น k = 2</p>
<p>ถ้าไม่รู้เรื่อง ไปใช้ gnuplot แก้เอาก็ได้ ดูตัวอย่าง <a href="http://dsin.blogspot.com/2010/08/gnuplot-regression-log.html">ที่นี่</a> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dsin.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dsin.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dsin.wordpress.com/496/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dsin.wordpress.com&amp;blog=1232016&amp;post=496&amp;subd=dsin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dsin.wordpress.com/2010/10/19/linear-regression-using-matrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/082d898d239ca769b1a43daa913c3b7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
