<?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>c</title>
	<atom:link href="http://phannguyentuyettrinh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phannguyentuyettrinh.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 08 Dec 2010 23:44:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='phannguyentuyettrinh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>c</title>
		<link>http://phannguyentuyettrinh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://phannguyentuyettrinh.wordpress.com/osd.xml" title="c" />
	<atom:link rel='hub' href='http://phannguyentuyettrinh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>String vs StringBuffer Java</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2010/12/08/string-vs-stringbuffer-java/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2010/12/08/string-vs-stringbuffer-java/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 23:44:51 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=44</guid>
		<description><![CDATA[1. String vs StringBuffer: String class simply stores an array of characters that is immutable. StringBuffer class is used to represent characters that can be modified. The significant performance difference between these two classes is that StringBuffer is faster than String when performing simple concatenations. For example: Create 1 file Stringtest.java. public class Stringtest{public static [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=44&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. String vs StringBuffer:</p>
<ul>
<li>String class simply stores an array of characters that is immutable.</li>
</ul>
<ul>
<li>StringBuffer class is used to represent characters that can be modified.</li>
</ul>
<p>The significant performance difference between these two classes is that <code>StringBuffer</code> is faster than <code>String</code> when performing simple concatenations.</p>
<p>For example: Create 1 file Stringtest.java.</p>
<p>public class Stringtest<br />{<br />public static void main(String arg[])<br />{<br />String str = new String (&#8220;Stanford  &#8220;);<br /> str += &#8220;Lost!!&#8221;;<br />StringBuffer strb = new StringBuffer(&#8220;Buffer&#8221;);<br />strb.append(&#8220;String&#8221;);<br />}<br />}</p>
<p>(assume Stringtest.java in C:\Stringtest.java)</p>
<p>then, Start-&gt; Run -&gt;cmd and turn to folder that contains that java file.</p>
<p>javac Stringtest.java</p>
<p>then:</p>
<p>javap -c Stringtest // show bytecode.</p>
<p>You can see difference between them. In detail:</p>
<p>http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-javaperf.html</p>
<p>in general:</p>
<p>String str = new String (&#8220;Stanford  &#8220;);<br /> str += &#8220;Lost!!&#8221;;</p>
<p>the first, create String(&#8220;Stanford&#8221;) object if when called + operator it will wait for garbage collector.</p>
<p>next, str += &#8220;Lost!&#8221;; create StringBuilder(&#8220;Stanford&#8221;); and then call append(&#8220;Lost!&#8221;) on it.</p>
<p>final, create new String object and StringBuilder above call toString() to assign to String object just create.</p>
<p>2. String literal:</p>
<p>if you declare 2 string has the same content and both are not new, this mean that both are reference to string not instance and initial.</p>
<p>String string1 = &#8220;String&#8221;;</p>
<p>String string2 = &#8220;String&#8221;;</p>
<p>What happend when you write like this?</p>
<p>if(string1 == string2)</p>
<p>System.out.println(&#8220;string1 and string2 are the same address&#8221;);</p>
<p>else</p>
<p>System.out.println(&#8220;string1 and string2 are the different address&#8221;);</p>
<p>result:</p>
<p>string1 == string2 and string1 and string2 are the same address.</p>
<p>Because if 2 string object have the same context but them not instance and initial in fact is only one object string.</p>
<p>Summary:</p>
<p>+ String: immutable and read only, so it is used to if no change.</p>
<p>+ StringBuffer: mutable, synchronize so it&#8217;s used to when change and synchronize in many threads.</p>
<p>+ StringBuilder: mutable, unsynchronize.</p>
<p>+ And finally, attention with string literal.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=44&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2010/12/08/string-vs-stringbuffer-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>Overloading vs override</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2010/12/08/overloading-vs-override/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2010/12/08/overloading-vs-override/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 10:36:52 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=42</guid>
		<description><![CDATA[1.Overload vs override: Ø  Overriding &#8211; same method names with same parameters and same return types associated in a class and its subclass. &#160; Ø  Overloading &#8211; same method name with different parameters may or may not be same return type written in the same class itself. 2. Dynamic binding and static binding: Ø  Dynamic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=42&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1.Overload vs override:</p>
<p>Ø  Overriding &#8211; same method names with same parameters and same return types associated in a class and its subclass.</p>
<p>&nbsp;</p>
<p>Ø  Overloading &#8211; same method name with different parameters may or may not be same return type written in the same class itself.</p>
<p>2. Dynamic binding and static binding:</p>
<p>Ø  Dynamic binding or later binding: Dynamic binding refers to the case where compiler is not able to resolve the call and the binding is done at runtime only.</p>
<p>Ø  Static binding or early binding: compiler can resolve the binding at the compiler time.</p>
<p>Dynamic binding: all instance method calls are always resolved at runtime.</p>
<p>Static binding: static methods, variable, private methods.</p>
<p>For example:</p>
<p>&nbsp;</p>
<p>/* in superclass and baseclass, getName() is override, attention here both have the same property name that is name;*/</p>
<p>&nbsp;</p>
<p><strong>class</strong> superclass {</p>
<p>String name = &#8220;This is a field of super class&#8221;;</p>
<p><strong>public</strong> String getName(){</p>
<p><strong>return</strong> name;</p>
<p>}</p>
<p>}</p>
<p>&nbsp;</p>
<p><strong>class</strong> baseclass <strong>extends</strong> superclass {</p>
<p>String name = &#8220;This is field of base class&#8221;;</p>
<p><strong>public</strong> String getName() {</p>
<p><strong>return</strong> name;</p>
<p>}</p>
<p>}</p>
<p>&nbsp;</p>
<p>/* In test class, methodA()is a overload, this mean methodA() has the same name, and different parameter. */</p>
<p><strong>class</strong> test {</p>
<p><strong>public</strong> <strong>void</strong> methodA(superclass sup) {</p>
<p>System.<em>out</em>.println(&#8220;test.methodA(superclass)&#8221;);</p>
<p>}</p>
<p>&nbsp;</p>
<p><strong>public</strong> <strong>void</strong> methodA(baseclass base) {</p>
<p>System.<em>out</em>.println(&#8220;test.methodA(baseclass)&#8221;);</p>
<p>}</p>
<p>}</p>
<p><strong>public</strong> <strong>class</strong> Main {</p>
<p>&nbsp;</p>
<p>/**</p>
<p>* <strong>@param</strong> args</p>
<p>*/</p>
<p><strong>public</strong> <strong>static</strong> <strong>void</strong> main(String[] args) {</p>
<p>// <strong>TODO</strong> Auto-generated method stub</p>
<p>&nbsp;</p>
<p>/* this is 2 object variables type superclass.*/</p>
<p>superclass sup;</p>
<p>superclass base;</p>
<p>&nbsp;</p>
<p>/* instantiate and initial */</p>
<p>sup = <strong>new</strong> superclass();</p>
<p>base = <strong>new</strong> baseclass();</p>
<p>&nbsp;</p>
<p>/* override */</p>
<p>System.<em>out</em>.println(sup.getName());</p>
<p>System.<em>out</em>.println(base.getName());</p>
<p>&nbsp;</p>
<p>System.<em>out</em>.println(sup.name);</p>
<p>System.<em>out</em>.println(base.name);</p>
<p>&nbsp;</p>
<p>/* this is overloading.*/</p>
<p>test te = <strong>new</strong> test();</p>
<p>te.methodA(sup);</p>
<p>te.methodA(base);</p>
<p>}</p>
<p>&nbsp;</p>
<p>}</p>
<p>&nbsp;</p>
<p>Output:</p>
<p>This is a field of super class</p>
<p>This is field of base class</p>
<p>This is a field of super class</p>
<p>This is a field of base class</p>
<p>test.methodA(superclass)</p>
<p>test.methodA(baseclass)</p>
<p>&nbsp;</p>
<p>Is this right result? Sure? Infact,</p>
<p>&nbsp;</p>
<p>This is a field of super class</p>
<p>This is field of base class</p>
<p>This is a field of super class</p>
<p>This is a field of super class</p>
<p>test.methodA(superclass)</p>
<p>test.methodA(superclass)</p>
<p>&nbsp;</p>
<p>+ 2 first lines here call dynamic binding, because compiler may not be sure of which version of the getName() to call, based on the actual object type and not on the declared type of the object reference.(Pholimorphism)</p>
<p>+ 2 next lines, this is static binding, because member variable is resolved based on the declared type of the object reference only, which compiler is capable of finding at compiler time.</p>
<p>+ 2 final lines are overloading, because overloading is compiler-binding, when the compiler see the line te.methodA(base), it checks the data type of base, which is declared as superclass, so it look for the method, methodA(superclass) and binds the call to this method and hence the result.</p>
<p>&nbsp;</p>
<p>3. Sumary:</p>
<p>Pholymorphism: one name, many forms.</p>
<p>Pholymorphism manifest itself in three distince forms in Java:</p>
<p>+ method overloading.</p>
<p>+ method overriding through inheritance.</p>
<p>+ method overriding through the Java interface.</p>
<p>&nbsp;</p>
<p>Dynamic binding:</p>
<p>+ all methods in a class.</p>
<p>+ method overriding.</p>
<p>Static binding:</p>
<p>+ all variable.</p>
<p>+ static methods.</p>
<p>+ private methods.</p>
<p>+ overloading.</p>
<p>References:</p>
<p><a href="http://www.developer.com/java/other/article.php/983081">http://www.developer.com/java/other/article.php/983081</a></p>
<p><a href="http://www.techfundu.com/2009081032/java-technology/core-java/what-is-the-difference-between-dynamic-and-static-binding-in-java">http://www.techfundu.com/2009081032/java-technology/core-java/what-is-the-difference-between-dynamic-and-static-binding-in-java</a></p>
<p>http://skeletoncoder.blogspot.com/2006/09/java-tutorials-overloading-is-compile.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=42&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2010/12/08/overloading-vs-override/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>JPA</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2010/11/26/jpa/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2010/11/26/jpa/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 17:43:23 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=34</guid>
		<description><![CDATA[Field Access: Annotating the fields of the entity will cause the provider to use field access to get and set the state ofthe entity. Getter and setter methods might or might not be present, but if they are present, they areignored by the provider. All fields must be declared as either protected, package, or private. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=34&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Field Access:</p>
<p>Annotating the fields of the entity will cause the provider to use field access to get and set the state of<br />the entity. Getter and setter methods might or might not be present, but if they are present, they are<br />ignored by the provider. All fields must be declared as either protected, package, or private. Public<br />fields are disallowed because it would open up the state fields to access by any unprotected class in the<br />VM. Doing so is not just an obviously bad practice but could also defeat the provider implementation.<br />Of course, the other qualifiers do not prevent classes within the same package or hierarchy from doing<br />the same thing, but there is an obvious trade-off between what should be constrained and what should<br />be recommended. Other classes must use the methods of an entity in order to access its persistent<br />state, and even the entity class itself should only really manipulate the fields directly during<br />initialization.<br />The example in Listing 4-1 shows the Employee entity being mapped using field access. The @Id<br />annotation indicates not only that the id field is the persistent identifier or primary key for the entity<br />but also that field access should be assumed. The name and salary fields are then defaulted to being<br />persistent, and they get mapped to columns of the same name.</p>
<p>Property Access<br />When property access mode is used, the same contract as for JavaBeans applies, and there must be<br />getter and setter methods for the persistent properties. The type of property is determined by the<br />return type of the getter method and must be the same as the type of the single parameter passed into<br />the setter method. Both methods must be either public or protected visibility. The mapping<br />annotations for a property must be on the getter method.<br />In Listing 4-2, the Employee class has an @Id annotation on the getId() getter method so the<br />provider will use property access to get and set the state of the entity. The name and salary properties<br />will be made persistent by virtue of the getter and setter methods that exist for them, and will be<br />mapped to NAME and SALARY columns, respectively. Note that the salary property is backed by the wage<br />field, which does not share the same name. This goes unnoticed by the provider because by specifying<br />property access, we are telling the provider to ignore the entity fields and use only the getter and<br />setter methods for naming.</p>
<p>Mixed Access<br />It is also possible to combine field access with property access within the same entity hierarchy, or<br />even within the same entity. This will not be a very common occurrence, but can be useful, for<br />example, when an entity subclass is added to an existing hierarchy that uses a different access type.<br />Adding an @Access annotation with a specified access mode on the subclass entity will cause the default<br />access type to be overridden for that entity subclass.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=34&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2010/11/26/jpa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>THread</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2010/11/18/system-database-sql-server/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2010/11/18/system-database-sql-server/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 00:59:35 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=29</guid>
		<description><![CDATA[Often, a thread enters a critical section, only to discover that it can’t proceed until a condition is fulfilled. You use a condition object to manage threads that have acquired a lock but cannot do useful work. In this section, we introduce the implementation of condition objects in the Java library. (For historical reasons, condition [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=29&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Often, a thread enters a critical section, only to discover that it can’t proceed until a<br />
condition is fulfilled. You use a condition object to manage threads that have acquired<br />
a lock but cannot do useful work. In this section, we introduce the implementation<br />
of condition objects in the Java library. (For historical reasons, condition objects are<br />
often called condition variables.)<br />
Let us refine our simulation of the bank. We do not want to transfer money out of an<br />
account that does not have the funds to cover the transfer. Note that we cannot use<br />
code like<br />
if (bank.getBalance(from) &gt;= amount)<br />
bank.transfer(from, to, amount);<br />
It is entirely possible that the current thread will be deactivated between the successful<br />
outcome of the test and the call to transfer.<br />
if (bank.getBalance(from) &gt;= amount)<br />
// thread might be deactivated at this point<br />
bank.transfer(from, to, amount);<br />
java.util.concurrent.locks.Lock 5.0<br />
java.util.concurrent.locks.ReentrantLock 5.0<br />
Chapter 14. Multithreading<br />
746 Chapter 14 ■ Multithreading<br />
By the time the thread is running again, the account balance may have fallen below<br />
the withdrawal amount. You must make sure that no other thread can modify the balance<br />
between the test and the transfer action. You do so by protecting both the test<br />
and the transfer action with a lock:<br />
public void transfer(int from, int to, int amount)<br />
{<br />
bankLock.lock();<br />
try<br />
{<br />
while (accounts[from] &lt; amount)<br />
{<br />
// wait<br />
. . .<br />
}<br />
// transfer funds<br />
. . .<br />
}<br />
finally<br />
{<br />
bankLock.unlock();<br />
}<br />
}<br />
Now, what do we do when there is not enough money in the account? We wait until<br />
some other thread has added funds. But this thread has just gained exclusive access<br />
to the bankLock, so no other thread has a chance to make a deposit. This is where condition<br />
objects come in.<br />
A lock object can have one or more associated condition objects. You obtain a condition<br />
object with the newCondition method. It is customary to give each condition object a name<br />
that evokes the condition that it represents. For example, here we set up a condition<br />
object to represent the “sufficient funds” condition.<br />
class Bank<br />
{<br />
public Bank()<br />
{<br />
. . .<br />
sufficientFunds = bankLock.newCondition();<br />
}<br />
. . .<br />
private Condition sufficientFunds;<br />
}<br />
If the transfer method finds that sufficient funds are not available, it calls<br />
sufficientFunds.await();<br />
The current thread is now deactivated and gives up the lock. This lets in another<br />
thread that can, we hope, increase the account balance.<br />
There is an essential difference between a thread that is waiting to acquire a lock and a<br />
thread that has called await. Once a thread calls the await method, it enters a wait set for that<br />
condition. The thread is not made runnable when the lock is available. Instead, it stays<br />
deactivated until another thread has called the signalAll method on the same condition.<br />
Chapter 14. Multithreading<br />
Synchronization 747<br />
When another thread transfers money, then it should call<br />
sufficientFunds.signalAll();<br />
This call reactivates all threads that are waiting for the condition. When the threads are<br />
removed from the wait set, they are again runnable and the scheduler will eventually<br />
activate them again. At that time, they will attempt to reenter the object. As soon as the<br />
lock is available, one of them will acquire the lock and continue where it left off, returning<br />
from the call to await.<br />
At this time, the thread should test the condition again. There is no guarantee that the<br />
condition is now fulfilled—the signalAll method merely signals to the waiting threads<br />
that it may be fulfilled at this time and that it is worth checking for the condition again.<br />
NOTE: In general, a call to await should be inside a loop of the form<br />
while (!(ok to proceed))<br />
condition.await();<br />
It is crucially important that some other thread calls the signalAll method eventually.<br />
When a thread calls await, it has no way of reactivating itself. It puts its faith in the other<br />
threads. If none of them bother to reactivate the waiting thread, it will never run again.<br />
This can lead to unpleasant deadlock situations. If all other threads are blocked and the<br />
last active thread calls await without unblocking one of the others, then it also blocks. No<br />
thread is left to unblock the others, and the program hangs.<br />
When should you call signalAll? The rule of thumb is to call signalAll whenever the state<br />
of an object changes in a way that might be advantageous to waiting threads. For example,<br />
whenever an account balance changes, the waiting threads should be given another<br />
chance to inspect the balance. In our example, we call signalAll when we have finished<br />
the funds transfer.<br />
public void transfer(int from, int to, int amount)<br />
{<br />
bankLock.lock();<br />
try<br />
{<br />
while (accounts[from] &lt; amount)<br />
sufficientFunds.await();<br />
// transfer funds<br />
. . .<br />
sufficientFunds.signalAll();<br />
}<br />
finally<br />
{<br />
bankLock.unlock();<br />
}<br />
}<br />
Note that the call to signalAll does not immediately activate a waiting thread. It only<br />
unblocks the waiting threads so that they can compete for entry into the object after the<br />
current thread has exited the synchronized method.<br />
Chapter 14. Multithreading<br />
748 Chapter 14 ■ Multithreading<br />
Another method, signal, unblocks only a single thread from the wait set, chosen at random.<br />
That is more efficient than unblocking all threads, but there is a danger. If the randomly<br />
chosen thread finds that it still cannot proceed, then it becomes blocked again. If<br />
no other thread calls signal again, then the system deadlocks.<br />
CAUTION: A thread can only call await, signalAll, or signal on a condition when it owns the<br />
lock of the condition.<br />
If you run the sample program in Listing 14–8, you will notice that nothing ever goes<br />
wrong. The total balance stays at $100,000 forever. No account ever has a negative balance.<br />
(Again, you need to press CTRL+C to terminate the program.) You may also notice<br />
that the program runs a bit slower—this is the price you pay for the added bookkeeping<br />
involved in the synchronization mechanism.<br />
In practice, using conditions correctly can be quite challenging. Before you start implementing<br />
your own condition objects, you should consider using one of the constructs<br />
described in “Synchronizers” on page 785.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=29&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2010/11/18/system-database-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>My Dream&#8230;</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/12/28/22/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/12/28/22/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 02:41:14 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=22</guid>
		<description><![CDATA[I want to became EXPERT in C++,C#,SQL&#8230; and i want like this before graduating. and i believe me. i want in the future i do about security database&#8230; i want this. i will do this. try to,  try hard to go up. 1. time is gold. 2. find myself value.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=22&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I want to became EXPERT in C++,C#,SQL&#8230;</p>
<p>and i want like this before graduating. and i believe me. i want in the future i do about security database&#8230; i want this. i will do this. try to,  try hard to go up.</p>
<p>1. time is gold.</p>
<p>2. find myself value.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=22&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/12/28/22/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>Database Object SQL SERVER 2005</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/12/22/database-object-sql-server-2005/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/12/22/database-object-sql-server-2005/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 07:12:23 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=20</guid>
		<description><![CDATA[STORED PROCEDURE: What is the stored procedure? In the simplest terms, a stored procedure is a collection of compiled T-SQL commands that are directly accessible by SQL Server. The commands placed within a stored procedure are executed as one single unit, or batch, of work. The benefit of this is that network traffic is greatly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=20&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>STORED PROCEDURE:</p>
<p>What is the stored procedure?</p>
<p>In the simplest terms, a stored procedure is a collection of compiled T-SQL commands that are directly accessible by SQL Server.</p>
<p>The commands placed within a stored procedure are executed<br />
as one single unit, or batch, of work.</p>
<p>The benefit of this is that network traffic is greatly reduced, as single SQL statements are not forced to travel over the network; hence this reduces network congestion. In addition to SELECT, UPDATE, or DELETE statements, stored procedures are able to call other stored procedures, use statements that control the flow of execution, and perform aggregate functions or other calculations.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=20&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/12/22/database-object-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/12/21/15/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/12/21/15/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:40:24 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=15</guid>
		<description><![CDATA[1. DateTimePicker. protected override void OnvalueChanged(eventargs) method Raises the ValueChanged event. Parameters eventargs An EventArgs that contains the event data. Remarks The ValueChanged event occurs when the value for the control changes. DatetimePickerFormat.Custom this.CustomFormat= Format String Description d The one- or two-digit day. dd The two-digit day. Single digit day values are preceded by a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=15&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. <span style="font-size:x-small;"><span style="font-family:Verdana;">DateTimePicker.</span></span></p>
<p><strong><span style="font-size:x-small;"><span style="font-family:Verdana;">protected override</span></span><span style="font-size:x-small;"><span style="font-family:Verdana;"> void</span></span><span style="font-size:x-small;"><span style="font-family:Verdana;"> OnvalueChanged(eventargs) method</span></span></strong></p>
<p><em>Raises the <a id="ctl00_MTCS_main_ctl01" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.valuechanged%28VS.80%29.aspx">ValueChanged</a> event.</em></p>
<div>
<div>
<h4>Parameters</h4>
<h4><strong>eventargs</strong></h4>
<dl>
<dd>An <a id="ctl00_MTCS_main_ctl22_ctl00_ctl06" href="http://msdn.microsoft.com/en-us/library/system.eventargs%28VS.80%29.aspx">EventArgs</a> that contains the event data.</p>
</dd>
</dl>
</div>
</div>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" />Remarks</div>
<div><a name="remarksToggle"></a>The <strong>ValueChanged</strong> event occurs when the value for the control changes.</p>
<p>DatetimePickerFormat.Custom</p>
<p>this.CustomFormat=</p>
<table border="1" width="719" rules="rows">
<tbody>
<tr valign="top">
<td><strong>Format         String</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr valign="top">
<td>d</td>
<td>The one- or two-digit day.</td>
</tr>
<tr valign="top">
<td>dd</td>
<td>The two-digit day. Single         digit day values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>ddd</td>
<td>The three-character         day-of-week abbreviation.</td>
</tr>
<tr valign="top">
<td>dddd</td>
<td>The full day-of-week name.</td>
</tr>
<tr valign="top">
<td>h</td>
<td>The one- or two-digit hour         in 12-hour format.</td>
</tr>
<tr valign="top">
<td>hh</td>
<td>The two-digit hour in         12-hour format. Single digit values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>H</td>
<td>The one- or two-digit hour         in 24-hour format.</td>
</tr>
<tr valign="top">
<td>HH</td>
<td>The two-digit hour in         24-hour format. Single digit values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>m</td>
<td>The one- or two-digit         minute.</td>
</tr>
<tr valign="top">
<td>mm</td>
<td>The two-digit minute. Single         digit values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>M</td>
<td>The one- or two-digit month         number.</td>
</tr>
<tr valign="top">
<td>MM</td>
<td>The two-digit month number.         Single digit values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>MMM</td>
<td>The three-character month         abbreviation.</td>
</tr>
<tr valign="top">
<td>MMMM</td>
<td>The full month name.</td>
</tr>
<tr valign="top">
<td><em>s</em></td>
<td>The one- or two- digit         seconds.</td>
</tr>
<tr valign="top">
<td><em>ss</em></td>
<td>The two-digit seconds.         Single digit values are preceded by a zero.</td>
</tr>
<tr valign="top">
<td>t</td>
<td>The one-letter AM/PM         abbreviation (that is, &#8220;AM&#8221; is displayed as &#8220;A&#8221;).</td>
</tr>
<tr valign="top">
<td>tt</td>
<td>The two-letter AM/PM         abbreviation (that is, &#8220;AM&#8221; is displayed as &#8220;AM&#8221;).</td>
</tr>
<tr valign="top">
<td>X</td>
<td>A callback field that gives         programmer control over the displayed field (see below.) Multiple X characters can be used         in a series to signify unique callback fields.</td>
</tr>
<tr valign="top">
<td>y</td>
<td>The one-digit year (that is,         1996 is displayed as &#8220;6&#8243;).</td>
</tr>
<tr valign="top">
<td>yy</td>
<td>The last two digits of the         year (that is, 1996 is displayed as &#8220;96&#8243;).</td>
</tr>
<tr valign="top">
<td>yyy</td>
<td>The full year (that is, 1996         is displayed as &#8220;1996&#8243;).</td>
</tr>
</tbody>
</table>
<p>2.DataGridView:</p>
<div><em>DataGridView.EditingControl Property </em></div>
<p><!--Content type: Devdiv1. Transform: orcas2mtps.xslt.--></p>
<div>
<div>
<p>Gets the control hosted by the current cell, if a cell with an editing control is in edit mode.</p>
</div>
</div>
<p><strong>Namespace:</strong> <a id="ctl00_MTCS_main_ctl03" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.aspx">System.Windows.Forms</a><br />
<strong>Assembly:</strong> System.Windows.Forms (in System.Windows.Forms.dll)</p>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /> Syntax</div>
<div><a id="syntaxToggle"></a></p>
<div id="ctl00_MTCS_main_ctl30_ctl00_ctl02_CSharp">
<div>
<div>C#</div>
</div>
<div dir="ltr">
<pre>[BrowsableAttribute(false)]
public Control EditingControl { get; }</pre>
</div>
</div>
<div id="returns">
<h4>Property Value</h4>
<p>Type: <a id="ctl00_MTCS_main_ctl30_ctl00_ctl05" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx">System.Windows.Forms.Control</a><br />
The <a id="ctl00_MTCS_main_ctl30_ctl00_ctl06" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx">Control</a> hosted by the current cell.</div>
</div>
</div>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /> <strong>Remarks</strong></div>
<div><a id="remarksToggle"></a>If the cell is not in edit mode or the cell type does not accommodate an editing control, this property returns null reference</p>
</div>
</div>
<ul>
<li> <em>DataGridView.NotifyCurrentCellDirty Method </em></li>
</ul>
<p><!--Content type: Devdiv1. Transform: orcas2mtps.xslt.--></p>
<div>
<div>
<p><em>Notifies the <a id="ctl00_MTCS_main_ctl03" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx">DataGridView</a> that the current cell has uncommitted changes.</em></p>
</div>
</div>
<p><strong>Namespace:</strong> <a id="ctl00_MTCS_main_ctl04" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.aspx">System.Windows.Forms</a><br />
<strong>Assembly:</strong> System.Windows.Forms (in System.Windows.Forms.dll)</p>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /> Syntax</div>
<div><a id="syntaxToggle"></a></p>
<div id="ctl00_MTCS_main_ctl34_ctl00_ctl02_CSharp">
<div>
<div>C#</div>
</div>
<div dir="ltr">
<pre>public virtual void NotifyCurrentCellDirty(
    bool dirty
)</pre>
</div>
</div>
<p><strong>Parameters</strong></p>
<div id="parameters">
<dl>
<dt>dirty</dt>
<dd>Type: <a id="ctl00_MTCS_main_ctl34_ctl00_ctl05" href="http://msdn.microsoft.com/en-us/library/system.boolean.aspx">System.Boolean</a><br />
true to indicate the cell has uncommitted changes; otherwise, false.
</dd>
</dl>
</div>
</div>
</div>
<div>
<div><!-- ApplyClick with current id --> <strong><img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /> Remarks</strong></div>
<div><a id="remarksToggle"></a>This method can be used to allow custom cell types to notify the <a id="ctl00_MTCS_main_ctl35_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx">DataGridView</a> when they have uncommitted changes.</p>
<p>3. DatagridViewTextboxCell</p>
<div><em>DataGridViewTextBoxCell.InitializeEditingControl Method </em></div>
<p><!--Content type: Devdiv1. Transform: orcas2mtps.xslt.--></p>
<div>
<div>
<p><strong>Attaches and initializes the hosted editing control.</strong></p>
</div>
</div>
<p><strong>Namespace:</strong> <a id="ctl00_MTCS_main_ctl03" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.aspx">System.Windows.Forms</a><strong><br />
</strong></p>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /> Syntax</div>
</div>
<div></div>
<div>
<div id="ctl00_MTCS_main_ctl43_ctl00_ctl02_CSharp">
<div>
<div>C#</div>
</div>
<div dir="ltr">
<pre>public override void InitializeEditingControl(
    int rowIndex,
    Object initialFormattedValue,
    DataGridViewCellStyle dataGridViewCellStyle
)</pre>
</div>
</div>
<div id="parameters">
<h4>Parameters</h4>
<dl>
<dt><strong>rowIndex</strong></dt>
<dd>Type: <a id="ctl00_MTCS_main_ctl43_ctl00_ctl05" href="http://msdn.microsoft.com/en-us/library/system.int32.aspx">System.Int32</a><br />
The index of the row being edited.
</dd>
</dl>
<dl>
<dt><strong>initialFormattedValue</strong></dt>
<dd>Type: <a id="ctl00_MTCS_main_ctl43_ctl00_ctl06" href="http://msdn.microsoft.com/en-us/library/system.object.aspx">System.Object</a><br />
The initial value to be displayed in the control.
</dd>
</dl>
<dl>
<dt><strong>dataGridViewCellStyle</strong></dt>
<dd>Type: <a id="ctl00_MTCS_main_ctl43_ctl00_ctl07" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcellstyle.aspx">System.Windows.Forms.DataGridViewCellStyle</a><br />
A cell style that is used to determine the appearance of the hosted control.
</dd>
</dl>
</div>
</div>
<div>
<div><!-- ApplyClick with current id --> <img src="http://i.msdn.microsoft.com/Global/Images/clear.gif" alt="" /><strong> Remarks</strong></div>
<div><a id="remarksToggle"></a>The InitializeEditingControl method initializes the hosted editing control as described in the base <a id="ctl00_MTCS_main_ctl44_ctl00_ctl00" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.initializeeditingcontrol.aspx">DataGridViewCell.InitializeEditingControl</a> method. For every invocation, this method also sets the following visual attributes of the editing control:</p>
<ul>
<li>The <a id="ctl00_MTCS_main_ctl44_ctl00_ctl01" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.borderstyle.aspx">BorderStyle</a> property is set to <a id="ctl00_MTCS_main_ctl44_ctl00_ctl02" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.borderstyle.none.aspx">None</a>.</li>
<li>The <a id="ctl00_MTCS_main_ctl44_ctl00_ctl03" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.multiline.aspx">Multiline</a> and <a id="ctl00_MTCS_main_ctl44_ctl00_ctl04" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.acceptsreturn.aspx">AcceptsReturn</a> properties are set to true.</li>
<li>The <a id="ctl00_MTCS_main_ctl44_ctl00_ctl05" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.text.aspx">Text</a> property is set to the initialFormattedValue parameter.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=15&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/12/21/15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />

		<media:content url="http://i.msdn.microsoft.com/Global/Images/clear.gif" medium="image" />
	</item>
		<item>
		<title>18.12.2009</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/12/17/18-12-2009/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/12/17/18-12-2009/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 19:15:35 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=13</guid>
		<description><![CDATA[ow! gần về gặp lại nàng rồi, không biết nàng có nghĩ tầm bậy ko nữa, nhưng mình không làm gì có lỗi với nàng cả, giờ phải tiếp tục học thôi. Trigger: 1. what is trigger? Trigger is special  store procedure can execute either on a data modification, known as a Data Modification Language [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=13&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ow! gần về gặp lại nàng rồi, không biết nàng có nghĩ tầm bậy ko nữa, nhưng mình không làm gì có lỗi với nàng cả, giờ phải tiếp tục học thôi.</p>
<p>Trigger:</p>
<p>1. what is trigger?</p>
<p>Trigger is special  store procedure can execute either on a data modification,<br />
known as a Data Modification Language (DML) trigger, or can execute on a data model action, such as CREATE TABLE, known as a Data Definition Language (DDL) trigger.</p>
<ul>
<li>DML triggers are pieces of code attached to a specific table that are set to automatically run in response to an INSERT, DELETE, or UPDATE command.</li>
<li>DDL trigger is attached either to an action that occurs within a database or within a server.</li>
</ul>
<p>2. DML Trigger:</p>
<ul>
<li>Triggers have many uses. Perhaps the most common for a DML trigger is to enforce a business rule.</li>
</ul>
<p>For example, when a customer places an order, check that they have sufficient funds or that you have enough stock; if any of these checks fail, you can complete further actions or return error messages and roll back the update.</p>
<ul>
<li>DML triggers can be used as a form of extra validation,</li>
</ul>
<p>for example, to perform quite complex checks on data that a constraint could not achieve.</p>
<ul>
<li>DML trigger is to make changes in another table based on what is about to happen within the original triggered table.</li>
</ul>
<p>For example, when you add an order, you would create a DML trigger that would reduce the number of that item in stock.</p>
<ul>
<li> Finally, DML triggers can be used to create an automated audit trail that generates a change history for each record.</li>
</ul>
<p>3. Notes:</p>
<ul>
<li>Triggers can update tables within other databases if desired, and it is also possible for triggers to span servers as well, so don’t think the scope of triggers is limited to the current database.</li>
</ul>
<ul>
<li>It is possible for a trigger to fire a data modification, which in turn will execute another trigger, which is known as a nested trigger.</li>
</ul>
<p>4. constraint and trigger:</p>
<ul>
<li>Constraints also give you better performance than triggers. However, they are limited in what they can achieve and what information<br />
is available to them to complete their job.</li>
<li>Triggers are similar to constraints but more powerful, and they require more system overhead, which can lead to a reduction in performance.</li>
<li>A constraint is only able to validate data that is within the table the constraint is being built for or a specified value entered at design time.</li>
<li>This is in contrast to a trigger, which can span databases, or even servers, and check against any data set at design time or built from data collected from other actions against any table. This can happen if the necessary access rights are given to all objects involved.</li>
</ul>
<p>referrent:</p>
<p>Apress.Beginning.SQL.Server.2005.for.Developers.From.Novice.to.Professional.Jan.2006.pdf</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=13&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/12/17/18-12-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>Crystal report là gì?</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/10/08/crystal-report-la-gi/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/10/08/crystal-report-la-gi/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 10:44:44 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=10</guid>
		<description><![CDATA[sau gần 3h đồng hồ tìm kiếm vẫn chưa định nghĩa nó là gì và dùng để làm gì nữa? chắc là 1 dạng biểu mẫu để lấy cơ sở dữ liệu fill in và có thể export ra word hay excel, chắc là vậy.!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=10&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sau gần 3h đồng hồ tìm kiếm vẫn chưa định nghĩa nó là gì và dùng để làm gì nữa?</p>
<p>chắc là 1 dạng biểu mẫu để lấy cơ sở dữ liệu fill in và có thể export ra word hay excel, chắc là vậy.!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=10&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/10/08/crystal-report-la-gi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
		<item>
		<title>06.10.09</title>
		<link>http://phannguyentuyettrinh.wordpress.com/2009/10/06/06-10-09/</link>
		<comments>http://phannguyentuyettrinh.wordpress.com/2009/10/06/06-10-09/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 10:44:07 +0000</pubDate>
		<dc:creator>phamvis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://phannguyentuyettrinh.wordpress.com/?p=7</guid>
		<description><![CDATA[Nói vậy mà đến 3 ngày mới viết lại log. Phần đấu đạt SW: Các bứoc tiến hành xây dựng phần mềm: Phân tích yêu cầu người dùng và xác định nhu cầu của hệ thống. Thiết kế hệ thống. Thiếy kế thành phần. Thiết kế chi tiết. Viết và thực hiện chương trình. Cài [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=7&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nói vậy mà đến 3 ngày mới viết lại log.</p>
<p>Phần đấu đạt SW:</p>
<p>Các bứoc tiến hành xây dựng phần mềm:</p>
<ol>
<li>Phân tích yêu cầu người dùng và xác định nhu cầu của hệ thống.</li>
<li>Thiết kế hệ thống.</li>
<li>Thiếy kế thành phần.</li>
<li>Thiết kế chi tiết.</li>
<li>Viết và thực hiện chương trình.</li>
<li>Cài đặt.</li>
</ol>
<ul>
<li>Các yêu cầu của Thiết kế thành phần phần mềm:</li>
</ul>
<p>Các nhóm thành phần đáp ứng yêu cầu chức năng hệ thống.</p>
<ul>
<li>Kiến thức  cần:</li>
</ul>
<ol>
<li>kỹ thuật thiết kế phần mềm.</li>
<li>nền tảng dùng được.</li>
<li>thiết kế có cấu trúc.</li>
<li>thiết kế hướng đối tượng.</li>
<li>cấu hình hệ thống.</li>
</ol>
<ul>
<li>Năng lực:</li>
</ul>
<ol>
<li>hiểu được hệ thống.</li>
<li>thiết kế giao diên giữa các thành phần nhất quán.</li>
<li>thực hiện tiêu chuẩn chất lượng.</li>
<li>tính đến các chức năng mở rộng, độ tin cậy, linh hoạt</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phannguyentuyettrinh.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phannguyentuyettrinh.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phannguyentuyettrinh.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phannguyentuyettrinh.wordpress.com&amp;blog=9756641&amp;post=7&amp;subd=phannguyentuyettrinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://phannguyentuyettrinh.wordpress.com/2009/10/06/06-10-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f207d43a5632457178fb7e2b4f54d977?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">phamvis</media:title>
		</media:content>
	</item>
	</channel>
</rss>
