<?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>Vanganhxinh's Weblog</title>
	<atom:link href="http://vanganhxinh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vanganhxinh.wordpress.com</link>
	<description>(dọn nhà)</description>
	<lastBuildDate>Thu, 29 Jan 2009 09:06:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vanganhxinh.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Vanganhxinh's Weblog</title>
		<link>http://vanganhxinh.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vanganhxinh.wordpress.com/osd.xml" title="Vanganhxinh&#039;s Weblog" />
	<atom:link rel='hub' href='http://vanganhxinh.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Centralized unorderlist using CSS</title>
		<link>http://vanganhxinh.wordpress.com/2009/01/29/centralized-unorderlist-using-css/</link>
		<comments>http://vanganhxinh.wordpress.com/2009/01/29/centralized-unorderlist-using-css/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:06:29 +0000</pubDate>
		<dc:creator>vanganhxinh</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://vanganhxinh.wordpress.com/?p=48</guid>
		<description><![CDATA[I&#8217;ve recieved the order to centralize unorderlist using CSS &#38; HTML as the image below: It looks quite easy at the first time, does it? However, Takaji made a try first and he found out that it&#8217;s not as easy as it does. So, we tried again. If someone is looking for it, just take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=48&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recieved the order to centralize unorderlist using CSS &amp; HTML as the image below:<br />
<img class="aligncenter size-medium wp-image-50" title="2009-01-29_150022" src="http://vanganhxinh.files.wordpress.com/2009/01/2009-01-29_150022.png?w=300&#038;h=132" alt="2009-01-29_150022" width="300" height="132" />It looks quite easy at the first time, does it? However, Takaji made a try first and he found out that it&#8217;s not as easy as it does. So, we tried again. If someone is looking for it, just take a look. Hope that it&#8217;s helpful!</p>
<p>Here&#8217;s the source code to be implemented:</p>
<p><strong>1. css.css</strong></p>
<p><span style="color:#99cc00;">@charset &#8220;utf-8&#8243;;<br />
/* CentrelizedCSS using div by Tham Thi Van Anh 2009 */</p>
<p>.menucontainer {<br />
width:30%; height:20%;     margin: auto;<br />
}</p>
<p>.mymenu {<br />
margin: auto;<br />
border-top: 2px solid #999999;<br />
border-left: 2px solid #999999;<br />
border-bottom: 1px solid #CCCCCC;<br />
border-right: 1px solid #CCCCCC;<br />
}</p>
<p>.mymenu: after {margin:0px; padding:0px;}<br />
.mymenu ul {<br />
list-style:none;<br />
text-align:center;<br />
margin-left:auto;<br />
margin-right:auto;<br />
padding:inherit;<br />
padding-left: 10%; padding-right:10%;<br />
}<br />
.mymenu ul li {    border: none; }<br />
.mymenu ul li:hover {<br />
border: 1px solid #99CC00;<br />
background-color:#FFFF99;<br />
}</span></p>
<p><strong>2. .html code</strong>: import the code below into the body tag</p>
<p><span style="color:#99cc00;">&lt;div class=&#8221;menucontainer&#8221;&gt;<br />
&lt;div class=&#8221;mymenu&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;Item 1&lt;/li&gt;<br />
&lt;li&gt;Item 2&lt;/li&gt;<br />
&lt;li&gt;Item 3&lt;/li&gt;<br />
&lt;li&gt;Item 4&lt;/li&gt;<br />
&lt;li&gt;Item 3&lt;/li&gt;<br />
&lt;li&gt;Item 4&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</span><br />
P.S: If anyone&#8217;s got a better solution, please post!!!</p>
<br />Posted in how to  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vanganhxinh.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vanganhxinh.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vanganhxinh.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=48&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vanganhxinh.wordpress.com/2009/01/29/centralized-unorderlist-using-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a381fc1fc331711bf465da86b3837d11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vanganhxinh</media:title>
		</media:content>

		<media:content url="http://vanganhxinh.files.wordpress.com/2009/01/2009-01-29_150022.png?w=300" medium="image">
			<media:title type="html">2009-01-29_150022</media:title>
		</media:content>
	</item>
		<item>
		<title>ISE &#8211; why!!!</title>
		<link>http://vanganhxinh.wordpress.com/2008/07/23/ise-why/</link>
		<comments>http://vanganhxinh.wordpress.com/2008/07/23/ise-why/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 13:04:48 +0000</pubDate>
		<dc:creator>vanganhxinh</dc:creator>
				<category><![CDATA[Information System]]></category>
		<category><![CDATA[ISE]]></category>

		<guid isPermaLink="false">http://vanganhxinh.wordpress.com/?p=39</guid>
		<description><![CDATA[Today, I joined to the next subject of this semester: Information System Engineering (ISE) and here is some points after nearly 3 hours class. First of all, the name ISE, especially E (engineering), I was thinking of what is a very heavy subject (a lot of theory and techniques and so hard to start with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=39&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://vanganhxinh.files.wordpress.com/2008/07/ise-why.png"><img class="alignright size-medium wp-image-42" src="http://vanganhxinh.files.wordpress.com/2008/07/untitled-1.png?w=200&#038;h=200" alt="" width="200" height="200" /></a> Today, I joined to the next subject of this semester: <strong>Information System Engineering (ISE)</strong> and here is some points after nearly 3 hours class.<br />
First of all, the name ISE, especially E (engineering), I was thinking of what is a very heavy subject (a lot of theory and techniques and so hard to start with it). Luckily, my teacher today made it become quite easier to come up.<br />
Information system engineering mainly refers to the Information System. It means the differences between data and information. This is the first thing you should know when start studying this subject.<br />
In the system, data is normally considered as the raw information, just the dummy thing &#8211; hasn&#8217;t been processed and also is the system&#8217;s input. Then, data will be processed and became information after that. Information has meaning itself, in some ways.</p>
<p>The next thing is the Information System Development cycle (ISD cycle) with some key words: <strong>PADIS</strong>. This stands for: Planning &#8211; Analyzing &#8211; Developing &#8211; Implementing &#8211; Supporting. This is the general cycle and I think it would be covered in some next classes.</p>
<p>Here has one question: what is this subject used for? uhmmm!!! It can be said that ISE is used in how to build a system from the start but mainly covers in methods and techniques. I looked through the text book and they (methods and techniques) are represented in almost chapters. After coming up with those method, techniques, blah blah blah, series of ISE will be posted.<br />
So, releasing a new product (new system), what is the most concerning thing? It&#8217;s the quality. What is the good products? How many criterias needed to be marked? They are:</p>
<ul>
<li> Product must fit with the requirements</li>
<li> Products must be on-time (in releasing)</li>
<li> Products also must be within budget</li>
</ul>
<p>If your products meet 3 above, it can be considered as a good product. That&#8217;s it!!!<br />
However, it&#8217;s very hard to reach to both of 3. And many many reports have showed that there are many many projects FALL, FALl, FAll, Fall, fall&#8230; WHY???<br />
This was the most interesting part in our class today. All can be put in 2 categories: Human factors and organization factors. I&#8217;m not really interesting in business, so I cannot cover the organization factors  too much and I need your help (if you could). The Human factors, ^_^ I take a summary after reading slides, listening to my teacher&#8230; and all are pointed to the communication problems such as:</p>
<ul>
<li> Fall because of misunderstanding requirements</li>
<li> Fall because of cannot working by group</li>
<li> Fall because of having many IT&#8217;s professional (from developing, planning, managing, &#8230;). This is the most funny thing I&#8217;ve heard. They&#8217;re thinking of PRO themselves that make the project falls.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vanganhxinh.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vanganhxinh.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vanganhxinh.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vanganhxinh.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vanganhxinh.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=39&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vanganhxinh.wordpress.com/2008/07/23/ise-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a381fc1fc331711bf465da86b3837d11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vanganhxinh</media:title>
		</media:content>

		<media:content url="http://vanganhxinh.files.wordpress.com/2008/07/untitled-1.png?w=200" medium="image" />
	</item>
		<item>
		<title>IT Project Management  &#8211; first looking</title>
		<link>http://vanganhxinh.wordpress.com/2008/07/21/it-project-management-first-looking/</link>
		<comments>http://vanganhxinh.wordpress.com/2008/07/21/it-project-management-first-looking/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:20:55 +0000</pubDate>
		<dc:creator>vanganhxinh</dc:creator>
				<category><![CDATA[IT Project Management]]></category>

		<guid isPermaLink="false">http://vanganhxinh.wordpress.com/?p=28</guid>
		<description><![CDATA[This is the first subject that I’ve taken in this semester. Let’s take a look at what is the “Project Management” about! Project Management = Managing a particular Project. So, here are 3 words needed to make clear: Managing: can be known as handling or controlling Particular: can be used as unique(this will be discus [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=28&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-SG X-NONE X-NONE              MicrosoftInternetExplorer4              &lt;![endif]--><span lang="EN-US">This is the first subject that I’ve taken in this semester. <span> </span>Let’s take a look at what is the “Project Management” about!</span></p>
<p class="MsoNormal"><span lang="EN-US"><strong>Project Management</strong> = Managing a particular Project. So, here are 3 words needed to make clear:</span></p>
<ul>
<li><!--[if !supportLists]--><span lang="EN-US">Managing: can be known as handling or controlling</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"></span><!--[endif]--><span lang="EN-US">Particular: can be used as unique(this will be discus later)</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><strong>Project</strong>: is defined as <em>“a temporary endeavor undertaken to accomplish a unique product or service”</em>. This definition shows the meaning of “particular” word above.</span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US">As everybody knows, a simple word as project contains many related areas such as: a project of building an accounting program is related not only to calculate numbers but also related to finance, tax, even though rules must follow.</span></p>
<p class="MsoNormal"><span lang="EN-US">According to definitions and one simple example, these are <strong>attributes of a project</strong>:</span></p>
<ul>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Unique</em>:<span> </span>1 project is for unique purpose</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Temporary</em>: 1 project is only taken in a range of time</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Require resources</em>: 1 project is not only inside a bound of an area but also relates to and needs other resources in related areas.</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Sponsor/Customer</em>: who is the one will use product/service after project</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"></span><!--[endif]--><span lang="EN-US"><em>Uncertainty</em>: as unpredictability (not sure)</span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US">Every project is constrains itself by 3 factors: scope, time &amp; cost. These factors build the <em><strong>Triple Constraint</strong></em>. This means each project that is considered as successful needs to achieve 3 goals</span></p>
<ul>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Scope</em>: what is the project going to solve</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Time</em>: How long will it take to complete</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"></span><!--[endif]--><span lang="EN-US"><em>Cost</em>: How many $$ does it take?</span></li>
</ul>
<p class="MsoNormal" style="margin-left:18pt;"><span lang="EN-US">Here has a small (not really small) problem occurs when all of those 3 goals is achieved but the client (customer) is not satisfy? So, the last but also the very important factor is quality of the project. A successful project must gain the satisfaction of the customer. Then, the Triple constrains should become the &#8220;<strong><em>quadruple constraint</em></strong>”. So the good project management should include more than triple constraint.</span></p>
<p class="MsoNormal"><span lang="EN-US"><strong>Project management</strong> is defined as <em>“the application of knowledge, skills, tools and techniques to project activities in order to meet project requirement”</em>.</span></p>
<p class="MsoNormal"><span lang="EN-US">The <strong>framework of project management</strong> shows all the factors need to control while managing a project. They are:</span></p>
<ul>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Stakeholders</em>: these are people involved or affected by activities of a project. They can be anyone related such as: customers, sponsors, suppliers, staffs and also competitors</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Knowledge areas</em>: this describes the available key factors (competences) that project manager must develop. It’s divided into 3 parts. The upper part is the quadruple constraint. The below part contains: HR (human resources) management, communication management, risk management and procurement management. 2 parts will meet at the central part called “project integration management”</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Tools &amp; techniques</em> assist project manager.</span></li>
<li><!--[if !supportLists]--><span lang="EN-US"><em>Project Portfolio</em> (like the group of investments)</span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US">So, becoming an IT project management is good or not? </span></p>
<ul>
<li><!--[if !supportLists]--><span lang="EN-US"></span><!--[endif]--><span lang="EN-US">IT PM (Project Management) is one of top-ten most in demand IT skill and is the no.2 of high salary IT job, so fantastic, isn’t it?</span></li>
<li><!--[if !supportLists]--><span lang="EN-US">Getting certificate: this is needed. You can search for PMP (Project Management Professional) certificate.</span></li>
<li><!--[if !supportLists]--><span lang="EN-US">PM can apply to other areas, not only in IT. </span></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vanganhxinh.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vanganhxinh.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vanganhxinh.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vanganhxinh.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vanganhxinh.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=28&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vanganhxinh.wordpress.com/2008/07/21/it-project-management-first-looking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a381fc1fc331711bf465da86b3837d11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vanganhxinh</media:title>
		</media:content>
	</item>
		<item>
		<title>How to establish the connection to the MySQL database?</title>
		<link>http://vanganhxinh.wordpress.com/2008/06/22/how-to-establish-the-connection-to-the-mysql-database/</link>
		<comments>http://vanganhxinh.wordpress.com/2008/06/22/how-to-establish-the-connection-to-the-mysql-database/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 16:54:39 +0000</pubDate>
		<dc:creator>vanganhxinh</dc:creator>
				<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://vanganhxinh.wordpress.com/?p=26</guid>
		<description><![CDATA[Welcome back, A very good news was announced in Jan 16, 2008 from Sun about the agreement to acquire MySQL is still interesting news to developers. And this article is about them, how to establish the connection to the MySQL database (Sun&#8217;s announcement can be read at: http://www.sun.com/aboutsun/pr/2008-01/sunflash.20080116.1.xml) What you need are: - Java - [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=26&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome back,<br />
A very good news was announced in Jan 16, 2008 from Sun about the agreement to acquire MySQL is still interesting news to developers. And this article is about them, how to establish the connection to the MySQL database<br />
(Sun&#8217;s announcement can be read at: <a href="http://www.sun.com/aboutsun/pr/2008-01/sunflash.20080116.1.xml">http://www.sun.com/aboutsun/pr/2008-01/sunflash.20080116.1.xml</a>)<br />
What you need are:<br />
- Java<br />
- MySQL (of course)</p>
<p>Here&#8217;s some notes:<br />
<strong>1. The versions are using:</strong><br />
- Java 1.6<br />
- MySQL 5.0 (can be downloaded at: <a href="http://dev.mysql.com/downloads/mysql/5.0.html">http://dev.mysql.com/downloads/mysql/5.0.html</a><br />
(Additional: MySQL GUI tools &#8211; the GUI without installer, can be downloaded at: <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">http://dev.mysql.com/downloads/gui-tools/5.0.html</a>)</p>
<p><strong>2. Java installation: see previous article at </strong><a href="http://vanganhxinh.wordpress.com/2008/02/25/setup-your-java-working-space/">http://vanganhxinh.wordpress.com/2008/02/25/setup-your-java-working-space/</a><strong><br />
</strong></p>
<p><strong>3. MySQL server installation:</strong> just follow the installations (next, next&#8230;). However, take note the parameters about: user, password, port (default value are: root, pass: you choose, port: 3306)<br />
After installation, there&#8217;s a database(schema) named: test. We will use this database later to test the connection using java.</p>
<p><strong>4. Download the MySQL GUI tool without installer</strong>, unzip and place into the folder that you place all the java installation. Then it will look like:<br />
<span style="color:#993300;"><strong>C:\appl\mysql\</strong></span> &lt;&#8211; this is the root folder for the mysql GUI tool you unziped.</p>
<p><strong>5. Setting the CLASSPATH variable</strong><br />
- Right-click to the My Computer icon, choose Properties &gt;&gt; Advanced system settings &gt;&gt; Environment Variables.<br />
- At the System variables space, find the variable named: CLASSPATH, if it&#8217;s not existed, create a new one. If it&#8217;s already there, click to edit the value.<br />
- Back to the mysql folder that you unziped and look for the file that its name looks like: <strong><em>mysql-connector</em></strong>, the extension of this file is: <em><strong>.jar</strong></em><br />
- Copy the path, with that full file name .jar<br />
- Paste to the value textbox<br />
- Note:<br />
+ If the CLASSPATH is the new one: remember place the .; before the path. This will be: <span style="color:#993300;"><strong>.;C:\appl\mysql\java\lib\mysql-connector-java-5.0.4-bin.jar</strong></span><br />
+ If edit the existance variable, place the ; before the path. This will be: .;[existance value]<span style="color:#993300;"><strong>;C:\appl\mysql\java\lib\mysql-connector-java-5.0.4-bin.jar</strong></span><br />
- Then Click OK, Ok &gt;&gt; finish</p>
<p><strong>6. Test the connection:</strong> Create java class to test the connection<br />
Create 2 java files as the following (place at the same folder):</p>
<table style="height:536px;" border="0" width="491">
<tbody>
<tr>
<td><span style="color:#993300;"><strong>MySQLConnection.java</strong></span></td>
</tr>
<tr>
<td>import java.sql.Connection;<br />
import java.sql.DriverManager;<br />
import javax.sql.*;public class MySQLConnection {</p>
<p style="padding-left:30px;">Connection conn = null;</p>
<p style="padding-left:30px;">public MySQLConnection(){}</p>
<p style="padding-left:30px;">public void createConnection(){</p>
<p style="padding-left:60px;">String driver = &#8220;com.mysql.jdbc.Driver&#8221;;</p>
<p style="padding-left:60px;">String serverName = &#8220;localhost:3306&#8243;;<br />
String dbName = &#8220;test&#8221;;<br />
String url = &#8220;jdbc:mysql://&#8221; + serverName + &#8220;/&#8221; + dbName;</p>
<p style="padding-left:60px;">String username = &#8220;root&#8221;;<br />
String password = &#8220;admin&#8221;;</p>
<p style="padding-left:60px;">try {<br />
Class.forName(driver);<br />
conn = DriverManager.getConnection( url, username, password);<br />
System.out.println(&#8220;Connected to the database&#8221;);<br />
}<br />
catch(Exception e){<br />
e.printStackTrace();<br />
}<br />
}</p>
<p style="padding-left:30px;">public void closeConnection(){<br />
try {<br />
conn.close();<br />
System.out.println(&#8220;Disconnected from database&#8221;);<br />
}<br />
catch(Exception e){<br />
e.printStackTrace();<br />
}<br />
}</p>
<p>}</p>
</td>
</tr>
</tbody>
</table>
<table style="height:168px;" border="0" width="412">
<tbody>
<tr>
<td><span style="color:#993300;"><strong>mysqlRun.java</strong></span></td>
</tr>
<tr>
<td>public class mysqlRun {<br />
public static void main(String[] args){<br />
MySQLConnection mysqlConn = new MySQLConnection();<br />
System.out.println(&#8220;1&#8243;);mysqlConn.createConnection();<br />
System.out.println(&#8220;created&#8221;);</p>
<p>mysqlConn.closeConnection();<br />
System.out.println(&#8220;closed&#8221;);<br />
}<br />
}</td>
</tr>
</tbody>
</table>
<p><strong>7. Run</strong> the command promt, change to the folder contains 2 java files and complile the MySQLConnection.java before the mysqlRun.java: type<br />
<span style="color:#993300;">javac MySQLConnection.java<br />
javac mysqlRun.java</span></p>
<p>Then run the mysqlRun: <span style="color:#993300;">java mysqlRun</span></p>
<p><strong>8. Take note while create the connection:</strong><br />
- The driver is: <strong><span style="color:#993300;">com.mysql.jdbc.Driver</span></strong> &lt;&#8211; this&#8217;s different with the driver to connect to other database.<br />
- The parameters of getConnection() method are: url, username, password<br />
+ the url has the prototype as: jdbc:<span style="color:#993300;"><strong>mysql://[servername]/[database_name]</strong></span><br />
+ username: root as default value while installing mysql server<br />
+ password: is your password you choose for the root user while installing mysql server.</p>
<p>These steps above is using as manual. If you are using netbeans and you want to establish the connection to mysql database, just following:<br />
- Expand the Drivers node in the Database Explorer, right click the MySQL(Connector/J driver), choose Connect Using<br />
- replace the default &lt;HOST&gt;:&lt;PORT&gt;/&lt;DB&gt; by the: <strong><span style="color:#993300;">jdbc:mysql:///</span></strong>.<br />
- enter the username (root) and password<br />
- Click Ok to finish.<br />
You can also read the full text at: <a href="http://www.netbeans.org/kb/60/ide/mysql.html">http://www.netbeans.org/kb/60/ide/mysql.html</a></p>
<p><strong>9. Take note about MySQL ver 5.0</strong><br />
The database you created sometimes now can be called as schema. Schema and database are using as the same meaning.</p>
<p>Last one:</p>
<p>If you wish to use netbeans to deploy your application, u would make a copy the file: <span style="color:#993300;"><strong>mysql-connector-java-5.0.4-bin.jar </strong><span style="color:#000000;">to these folders:</span></span></p>
<p>- &lt;jdk folder&gt;\jre\lib\</p>
<p>- &lt;jdk folder&gt;\jre\lib\ext\</p>
<p>Additional code:</p>
<p>File name: MySQLConnection.java</p>
<p>import java.sql.*;</p>
<p>/**<br />
* 23 Jul 2008<br />
* @author Vanganh<br />
*/<br />
public class MySQLConnection {</p>
<p>public MySQLConnection(){}</p>
<p>/**<br />
* create the connection to mySQL db<br />
* @param conn<br />
* @return conn if successfully connect to mySQL db or null if cannot create connection<br />
*/<br />
public static Connection createConnection(){</p>
<p>String serverName = &#8220;localhost:3306&#8243;;<br />
String dbName = &#8220;test&#8221;;</p>
<p>String url = &#8220;jdbc:mysql://&#8221; + serverName + &#8220;/&#8221; + dbName;<br />
String username = &#8220;root&#8221;;<br />
String password = &#8220;admin&#8221;;</p>
<p>try {<br />
Class.forName(&#8220;com.mysql.jdbc.Driver&#8221;);<br />
Connection conn = DriverManager.getConnection(url, username, password);<br />
System.out.println(&#8220;Connected to the database&#8221;);<br />
return conn;<br />
}<br />
catch (ClassNotFoundException cnfe)<br />
{<br />
System.out.println(&#8220;Fail to load JDBC-ODBC Driver&#8221;);<br />
cnfe.printStackTrace();<br />
System.exit(0);<br />
}<br />
catch (SQLException sqle)<br />
{<br />
System.out.println(&#8220;Unable to connect to DB&#8221;);<br />
System.err.println (&#8220;Error message: &#8221; + sqle.getMessage ());<br />
System.err.println (&#8220;Error number: &#8221; + sqle.getErrorCode ());<br />
sqle.printStackTrace();<br />
System.exit(0);<br />
}<br />
return null;<br />
}</p>
<p>/**<br />
* shutdown the connection from  mySQL db<br />
*/<br />
public static void shutdownConnection(Connection conn){<br />
if(conn == null || conn.toString().isEmpty()) {<br />
System.out.println(&#8220;No connection exists to shutdown!!!&#8221;);<br />
}<br />
else {<br />
try {<br />
conn.close();<br />
System.out.println(&#8220;Disconnected from database&#8221;);<br />
}<br />
catch(Exception e){<br />
e.printStackTrace();<br />
}<br />
}<br />
}<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vanganhxinh.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vanganhxinh.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vanganhxinh.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vanganhxinh.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vanganhxinh.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=26&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vanganhxinh.wordpress.com/2008/06/22/how-to-establish-the-connection-to-the-mysql-database/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a381fc1fc331711bf465da86b3837d11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vanganhxinh</media:title>
		</media:content>
	</item>
		<item>
		<title>Database(DB) &#8211; DB environment summaries (P2)</title>
		<link>http://vanganhxinh.wordpress.com/2008/02/29/databasedb-db-environment-summaries-p2/</link>
		<comments>http://vanganhxinh.wordpress.com/2008/02/29/databasedb-db-environment-summaries-p2/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 08:10:37 +0000</pubDate>
		<dc:creator>vanganhxinh</dc:creator>
				<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://vanganhxinh.wordpress.com/?p=23</guid>
		<description><![CDATA[2. Relational Data Model: - What is Relational Data Model? &#62;&#62; It aims to get how data make their relationship by representing the logically structure within tables (relations) - What are the objectives of Relational Data Model? &#62;&#62; Allowing high degree of data independence. &#62;&#62; Giving the substancial (important, real) grounds for dealing with any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=23&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font color="#ff6600" size="4"><b>2. Relational Data Model:</b></font></p>
<p><font color="#993300"><i>- What is Relational Data Model?</i></font></p>
<blockquote><p>    &gt;&gt; It aims to get how data make their relationship by representing the logically structure within tables (relations)</p></blockquote>
<p><font color="#993300"><i>- What are the objectives of Relational Data Model?</i></font></p>
<blockquote><p>    &gt;&gt; Allowing high degree of data independence.<br />
&gt;&gt; Giving the substancial (important, real) grounds for dealing with any problems within  database.<br />
&gt;&gt; Enable expandsion of set-oriented data.</p></blockquote>
<p><font color="#993300"><i>- Relational Data Structure:</i> <font color="#000000">see this picture below</font></font></p>
<p><a href="http://vanganhxinh.files.wordpress.com/2008/02/db_relation.png" title="db_relation.png"><img src="http://vanganhxinh.files.wordpress.com/2008/02/db_relation.png?w=497" alt="db_relation.png" align="middle" /></a></p>
<blockquote><p>A whole table with colums &amp; rows = <font color="#008000"><b>Relation</b></font><br />
An <b><font color="#008000">Attribute</font></b> = A column&#8217;s name<br />
A <b><font color="#008000">Tuple </font></b>= A row<br />
A <font color="#008000"><b>Domain</b></font> = all the allowable values for 1 or more attributes</p>
<p><font color="#008000"><b>Degree</b></font> = the number of attribute(s)<br />
<font color="#008000"><b>Cardinality</b></font> = the number of tuple(s)</p>
<p><font color="#008000"><b>Relational Database</b></font> = collection of Relations with distince relation names.</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vanganhxinh.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vanganhxinh.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vanganhxinh.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vanganhxinh.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vanganhxinh.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vanganhxinh.wordpress.com&amp;blog=2897643&amp;post=23&amp;subd=vanganhxinh&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vanganhxinh.wordpress.com/2008/02/29/databasedb-db-environment-summaries-p2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a381fc1fc331711bf465da86b3837d11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vanganhxinh</media:title>
		</media:content>

		<media:content url="http://vanganhxinh.files.wordpress.com/2008/02/db_relation.png" medium="image">
			<media:title type="html">db_relation.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
