<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arteraktiv &#187; Agil</title>
	<atom:link href="http://arteraktiv.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://arteraktiv.com</link>
	<description>Actionscript, PHP, JAVA</description>
	<lastBuildDate>Thu, 31 Mar 2011 02:56:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Introduction to JAVA threads part 1</title>
		<link>http://arteraktiv.com/2011/03/31/introduction-to-java-threads-part-1/</link>
		<comments>http://arteraktiv.com/2011/03/31/introduction-to-java-threads-part-1/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 02:52:33 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[thread]]></category>
		<category><![CDATA[threads]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=214</guid>
		<description><![CDATA[Simple java thread example retrieved from IBM developerWorks 1234567891011121314151617181920public class TwoThreads &#123; &#160; &#160; public static class Thread1 extends Thread &#123; &#160; &#160; &#160; &#160; public void run&#40;&#41; &#123; &#160; &#160; &#160; &#160; &#160; &#160; System.out.println&#40;&#34;A&#34;&#41;; &#160; &#160; &#160; &#160; &#160; &#160; System.out.println&#40;&#34;B&#34;&#41;; &#160; &#160; &#160; &#160; &#125; &#160; &#160;&#125; &#160; &#160;public static class Thread2 [...]]]></description>
			<content:encoded><![CDATA[<p>Simple java thread example retrieved from <a href="http://www.ibm.com/developerworks/java/tutorials/j-threads/">IBM developerWorks</a></p>
<div class="codecolorer-container java default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TwoThreads <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">class</span> Thread1 <span style="color: #000000; font-weight: bold;">extends</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Athread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;A&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;B&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">class</span> Thread2 <span style="color: #000000; font-weight: bold;">extends</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Athread+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Thread</span></a> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> Thread1<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">new</span> Thread2<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>We have no idea in what order the lines will execute, except that &#8220;1&#8243; will be printed before &#8220;2&#8243; and &#8220;A&#8221; before &#8220;B.&#8221; The output could be any one of the following:<br />
<span id="more-214"></span></p>
<ul>
<li>1 2 A B</li>
<li>1 A 2 B</li>
<li>1 A B 2</li>
<li>A 1 2 B</li>
<li>A 1 B 2</li>
<li>A B 1 2</li>
</ul>
<p>Not only may the results vary from machine to machine, but running the same program multiple times on the same machine may produce different results. Never assume one thread will do something before another thread does, unless you&#8217;ve used synchronization to force a specific ordering of execution.</p>
<p>to be continued&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2011/03/31/introduction-to-java-threads-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>div in a form or mixing form with div [HTML]</title>
		<link>http://arteraktiv.com/2011/02/10/div-in-a-form-or-mixing-form-with-div-html/</link>
		<comments>http://arteraktiv.com/2011/02/10/div-in-a-form-or-mixing-form-with-div-html/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 21:03:14 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[html/css]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=194</guid>
		<description><![CDATA[I thought I cant mix between form tag and div tag, I&#8217;m talking about HTML. In a basic HTML explanation I thought form tag cant be mixed with other tag than form tag itself. Here&#8217;s example of form tag from w3c 1234567&#60;form action=&#34;form_action.asp&#34; method=&#34;get&#34;&#62; &#160; First name: &#60;input name=&#34;fname&#34; type=&#34;text&#34; /&#62; &#160; Last name: &#60;input [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I cant mix between form tag and div tag, I&#8217;m talking about HTML. In a basic HTML explanation I thought form tag cant be mixed with other tag than form tag itself. Here&#8217;s example of form tag from <a href="http://www.w3schools.com/tags/tag_form.asp">w3c</a></p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">form</span></a> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;form_action.asp&quot;</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;get&quot;</span>&gt;</span><br />
&nbsp; First name: <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fname&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<br />
&nbsp; Last name: <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lname&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">form</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>But I come across to <a href="http://mathew-davies.co.uk/2010/03/13/free-admin-template.html">this theme</a> and realize its&#8217; form theme doesn&#8217;t include a form tag, how could it be&#8230;<span id="more-194"></span><br />
Where I could place action page even the form tag doesn&#8217;t included. So it&#8217;s easy we just need to warp all form element, with a form tag. here&#8217;s an example of div tag in a form tag</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">form</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_16&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a>&gt;</span>Submit News Article<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a>&gt;</span><br />
Something went wronk.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_5&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span>&gt;</span>Title <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;</span>Must contain alpha-numeric characters.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_5&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span>&gt;</span>Slug <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;</span>Must contain alpha-numeric characters.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_6&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;title&quot;</span>&gt;</span>Category<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">select</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span>Draft<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span>Published<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span>Private<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">option</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">select</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_16&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span>Summary <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;</span>Will be displayed in search engine results.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">textarea</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">textarea</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;grid_16&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span>Article <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;</span>Markdown Syntax.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/small.html"><span style="color: #000000; font-weight: bold;">small</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">textarea</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;big&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">textarea</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;reset&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Reset&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Post&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">form</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>I just need to add action attribute and method attribute if necessaries</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2011/02/10/div-in-a-form-or-mixing-form-with-div-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debugging php in quick and lightweight environment</title>
		<link>http://arteraktiv.com/2011/02/09/debugging-php-in-quick-and-lightweight-environment/</link>
		<comments>http://arteraktiv.com/2011/02/09/debugging-php-in-quick-and-lightweight-environment/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:02:09 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[quick]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=188</guid>
		<description><![CDATA[Sometimes the debugger, xdebug, zend debugger, aren&#8217;t working. So instead debugging, we just spend time to debug the debugger itself. To debug quickly in php we just need to call exit function with variable or any parameter we want. so the script stop and displaying what exactly in the exit parameter. Example, suppose you want [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes the debugger, xdebug, zend debugger, aren&#8217;t working. So instead debugging, we just  spend time to debug the debugger itself.<br />
To debug quickly in php we just need to call exit function with variable or any parameter we want. so the script stop and displaying what exactly in the exit parameter.<br />
Example, suppose you want to know what happen with an array so you just type</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">'some_include.php'</span><span style="color: #339933;">;</span><br />
<br />
<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;What's this : &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>that&#8217;s all for today.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2011/02/09/debugging-php-in-quick-and-lightweight-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple PHP MySQL Blog Example</title>
		<link>http://arteraktiv.com/2010/10/22/simple-php-mysql-blog-example/</link>
		<comments>http://arteraktiv.com/2010/10/22/simple-php-mysql-blog-example/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 20:26:41 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=141</guid>
		<description><![CDATA[OK, this is just one of many PHP ad MySQL implementation, it is my course which I&#8217;m taking actually. So in this post is what my lecturer gave to us. Lets dive into our first step. OK, no more talk, lets practice. Developing a web application based on PHP and MySQL as its database can [...]]]></description>
			<content:encoded><![CDATA[<p>OK, this is just one of many PHP ad MySQL implementation, it is my course which I&#8217;m taking actually. So in this post is what my lecturer gave to us. Lets dive into our first step. OK, no more talk, lets practice.</p>
<p>Developing a web application based on PHP and MySQL as its database can be done by many tools, you can use <a title="Eclipse PHP Development" href="http://www.eclipse.org/pdt/">EclipsePDT</a>, Adobe® Dreamweaver®, Netbeans, and <a title="Smashing, PHP development tools" href="http://www.smashingmagazine.com/2009/02/11/the-big-php-ides-test-why-use-oneand-which-to-choose/">many more</a>. We &#8216;ll not cover many PHP IDE feature, so we can focus on simplicity of this tutorial. To proceed to the next step we&#8217;ll use these tools:</p>
<ul>
<li>Notepad++ (free text editor with php syntax highlighting)</li>
<li>SRWare (free web browser)</li>
<li><a href="http://www.apachefriends.org/">XAMPP</a> 1.7.3 with PHP 5.3.1 and MySQL 5.1.41</li>
<li>This sample <a href="http://www.mediafire.com/?8t72a1mfw6xb0le">database</a></li>
</ul>
<p>and now, we can try to cook from some PHP and MySQL,<span id="more-141"></span></p>
<p>Run your XAMPP, so apache(php web server) and MySQL server started.</p>
<ol>
<li>Create a MySQL database, we named it simpleblog, and import the sample database, (If you need detail you can always ask by commenting below).</li>
<li>Prepare your web folder in xampp htdocs folder. We named it simpleblog.</li>
<li>Create MySQL connection file to connect PHP to MySQL. Open Notepad++, create new file, save as MysqlConn.php and save it inside simpleblog/lib folder(note: create lib folder inside simpleblog folder). Copy and paste the next code:</li>
<li>Set user, password, database name, match to your XAMPP setting.</li>
</ol>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <br />
<span style="color: #666666; font-style: italic;">/* @created &nbsp; &nbsp; nov 10 2007 13:00<br />
* @lastmodified<br />
* @package<br />
* @file &nbsp; &nbsp; &nbsp; &nbsp; obj/MysqlConn<br />
* @desc &nbsp; &nbsp; &nbsp; &nbsp; extends class Connection<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; support get single / multiple array<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - use getArrayAssoc / getArrayNum -&gt; single data<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - use getDataAssoc / getDataNum -&gt; mltiple data<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Assoc --&gt; association array,<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Num --&gt; numeric array<br />
*<br />
* copyright (c)2001 - 2007 arif laksito<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">Class</span> Connection <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$host</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$dbname</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$user</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$pass</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> Connection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">host</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbname</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'simpleblog'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #0000ff;">'root'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pass</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #0000ff;">'pass'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">Class</span> MysqlConn <span style="color: #000000; font-weight: bold;">extends</span> Connection <span style="color: #009900;">&#123;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// var db conn</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #666666; font-style: italic;">// var statatement query</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$rst</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #666666; font-style: italic;">// var result query</span><br />
<br />
<span style="color: #666666; font-style: italic;">// constructor class</span><br />
<span style="color: #666666; font-style: italic;">// assign variable connection</span><br />
<span style="color: #000000; font-weight: bold;">function</span> MysqlConn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Connection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// open connection MsSQL DB</span><br />
<span style="color: #000000; font-weight: bold;">function</span> openConnection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_connect"><span style="color: #990000;">mysql_connect</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">host</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pass</span><span style="color: #009900;">&#41;</span><br />
or <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'connection error..'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/mysql_select_db"><span style="color: #990000;">mysql_select_db</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #009900;">&#41;</span><br />
or <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'conect to db error..'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// execution query statement</span><br />
<span style="color: #000000; font-weight: bold;">function</span> execute<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">openConnection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">str</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">str</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
<a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sql error : '</span><span style="color: #339933;">.</span><a href="http://www.php.net/mysql_error"><span style="color: #990000;">mysql_error</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">closeConnection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// get array association from execution query</span><br />
<span style="color: #666666; font-style: italic;">// return false on error</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getArrayAssoc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #339933;">,</span> MYSQL_ASSOC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// get array numeric from execution query</span><br />
<span style="color: #666666; font-style: italic;">// return false on error</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getArrayNum<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #339933;">,</span> MYSQL_NUM<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// return data execution query on object data</span><br />
<span style="color: #666666; font-style: italic;">// association object</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getObjectAssoc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_object"><span style="color: #990000;">mysql_fetch_object</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #339933;">,</span> MYSQL_ASSOC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// return data execution query on object data</span><br />
<span style="color: #666666; font-style: italic;">// numeric object</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getObjectNum<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_object"><span style="color: #990000;">mysql_fetch_object</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #339933;">,</span> MYSQL_NUM<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">row</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// get set array from query result</span><br />
<span style="color: #666666; font-style: italic;">// 'select' tipe query</span><br />
<span style="color: #666666; font-style: italic;">// data --&gt; association array</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getDataAssoc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$dataSet</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getArrayAssoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$j</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getNumFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$field</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_field_name"><span style="color: #990000;">mysql_field_name</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #339933;">,</span> <span style="color: #000088;">$j</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$dataSet</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$dataSet</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// data --&gt; numeric array</span><br />
<span style="color: #000000; font-weight: bold;">function</span> getDataNum<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$dataSet</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getArrayNum</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$j</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getNumFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$j</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$dataSet</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$dataSet</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> getNumRows<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numRows</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_num_rows"><span style="color: #990000;">mysql_num_rows</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numRows</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> getNumFields<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numFields</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_num_fields"><span style="color: #990000;">mysql_num_fields</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rst</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numFields</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> getAffRows<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/mysql_affected_rows"><span style="color: #990000;">mysql_affected_rows</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">else</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> closeConnection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<a href="http://www.php.net/mysql_close"><span style="color: #990000;">mysql_close</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">db</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Create index.php file inside simpleblog folder. copy and paste this:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">'lib/MysqlConn.php'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MysqlConn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT beritaId, beritaTitle, beritaDetail, beritaTime, nama<br />
from berita left join alumni On berita.beritaSender = alumni.id_alumni;&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$sql</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sql</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDataAssoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">'&lt;pre&gt;'</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">'&lt;/pre&gt;'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Ok, for now lets try open the url, for me it will be http://localhost/simpleblog. It should be printing some words like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;pre&gt;Array<br />
(<br />
&nbsp; &nbsp; [0] =&gt; Array<br />
&nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [beritaId] =&gt; 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [beritaTitle] =&gt; Internet Semakin diminati Wanita<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [beritaDetail] =&gt; San Fransisco, Kamis<br />
<br />
Meskipun, pria dan wanita punya minat yang berbeda dalam menggunakan jaringan internet, lambat laun jumlahnya semakin seimbang.<br />
Gambaran ...</div></td></tr></tbody></table></div>
<p>For the next step lets make it more web look. Since this post don&#8217;t cover xhtml/css theme creating, so we&#8217;ll take some free theme from the net, for example <a href="http://www.freecsstemplates.org/">freecsstemplates.org</a>. We&#8217;ll take <a href="http://www.freecsstemplates.org/download/zip/sparkling/">sparkling</a>.<br />
Copy unzipped theme to simpleblog folder. So the index.php and index.html which came from theme will be in the same folder.<br />
Rename index.php to something else, index.old.php for example. Rename index.html to index.php. Copy and paste code below into your new index.php, before the html tag, you can paste it on line 13 :</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">'lib/MysqlConn.php'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MysqlConn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT beritaId, beritaTitle, beritaDetail, beritaTime, nama<br />
from berita left join alumni On berita.beritaSender = alumni.id_alumni;&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$sql</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sql</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getDataAssoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>on line 58 change the code into this:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div class=&quot;post&quot;&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$itm</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;h2 class=&quot;title&quot;&gt;&lt;a href=&quot;#&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$itm[beritaTitle]</span>&quot;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;<br />
&lt;p class=&quot;meta&quot;&gt;&lt;span class=&quot;date&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$itm[beritaTime]</span>&quot;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;&lt;span class=&quot;posted&quot;&gt;Posted by &lt;a href=&quot;#&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$itm[nama]</span>&quot;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;<br />
&lt;div style=&quot;clear: both;&quot;&gt;&amp;amp;nbsp;&lt;/div&gt;<br />
&lt;div class=&quot;entry&quot;&gt;<br />
&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$itm[beritaDetail]</span>&quot;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;<br />
&lt;p class=&quot;links&quot;&gt;&lt;a href=&quot;#&quot;&gt;Read More&lt;/a&gt;&lt;/p&gt;<br />
&lt;/div&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;/div&gt;</div></td></tr></tbody></table></div>
<p>As you can see from the code above, the line which write the content of the post (post body) was line 7. The code just barely write all content body. We&#8217;ll change the code, so just some of the content will shown on the front page. Replace with this one:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$itm</span><span style="color: #009900;">&#91;</span>beritaDetail<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <a href="http://www.php.net/strrpos"><span style="color: #990000;">strrpos</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$itm</span><span style="color: #009900;">&#91;</span>beritaDetail<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;</div></td></tr></tbody></table></div>
<p>When you click read more, still nothing happen yet. We&#8217;ll make one php file again to handle full post body.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/10/22/simple-php-mysql-blog-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaFX is dead?</title>
		<link>http://arteraktiv.com/2010/10/22/javafx-is-dead/</link>
		<comments>http://arteraktiv.com/2010/10/22/javafx-is-dead/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 17:44:07 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javafx]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=137</guid>
		<description><![CDATA[According to this link Oracle has discontinued further development of JavaFX. Netbeans a free IDE from Oracle, later on its 7 version will not support javaFX, which will be release on march 2011 year based on their roadmap release.]]></description>
			<content:encoded><![CDATA[<p>According to this <a href="http://wiki.netbeans.org/NewAndNoteworthyNB70">link</a> Oracle has discontinued further development of JavaFX. Netbeans a free IDE from Oracle, later on its 7 version will not support javaFX, which will be release on march 2011 year based on their roadmap release.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/10/22/javafx-is-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>metode numerik</title>
		<link>http://arteraktiv.com/2010/10/20/metode-numerik/</link>
		<comments>http://arteraktiv.com/2010/10/20/metode-numerik/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 17:43:23 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[math]]></category>
		<category><![CDATA[matematika]]></category>
		<category><![CDATA[matriks]]></category>
		<category><![CDATA[metode]]></category>
		<category><![CDATA[numerik]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=128</guid>
		<description><![CDATA[Metode Numerik: Teknik dimana masalah matematika diformulasikan sedemikian rupa sehingga dapat diselesaikan oleh pengoperasian Aritmatika. ]]></description>
			<content:encoded><![CDATA[<p>coba gunakan search engine kesukaanmu untuk mencari kata dengan &#8220;metode numerik&#8221;, maka akan banyak link yang didapatkan, berikut ini <a title="Metode Numerik ITS" href="http://is.its-sby.edu/subjects/numerical_methods/Irfan_Metode_Numerik.pdf">salah satunya</a>. Dari sumber tersebut terdapat pernyataan</p>
<blockquote><p>Metode Numerik: Teknik dimana masalah matematika diformulasikan sedemikian rupa sehingga dapat diselesaikan oleh pengoperasian Aritmatika.</p></blockquote>
<p>Metode numerik dapat menyelesaikan masalah matematika? Untuk lebih jelasnya silakan baca pdf tersebut. OK, sebenarnya, artikel ini dugunakan merupakan catatan penulis dalam mengikuti kuliah metode numerik.<span id="more-128"></span>Dalam mata kuliah ini dibahas juga tentang<a title="Matriks di wikipedia" href="http://id.wikipedia.org/wiki/Matriks_(matematika)"> matriks </a>. Beberapa operasi dalam matriks yaitu operasi penjumlahan dan perkalian. Untuk lebih jelasnya bisa <a href="http://p4tkmatematika.org/downloads/smk/Matriks.pdf">download</a> dari sini.</p>
<p>Dalam mata kuliah ini biasanya menggunakan software simulasi matematika, software dengan kemampuan matematika tinggi, biasanya digunakan <a href="http://www.mathworks.com/products/matlab/pricing_licensing.html?tab=edu">MATLAB</a> yang untuk melihat harganya saja harus mendaftar terlebih dahulu, ukuran file instalasinya-pun besar(diatas 1GB). Namun di sini kami gunakan alternatifnya yaitu freemat, berukuran 20MB untuk versi di bawah tahun 2009  gratis, berlisensi GNU Public License ver 2. Perintah-perintah yang digunakan setahu saya sama(cimw), tapi mungkin tetap saja ada perbedaannya, tidak 100% sama semua.</p>
<p>OK, selamat mencoba.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/10/20/metode-numerik/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Error preverifying class Preverification failed with error code 1</title>
		<link>http://arteraktiv.com/2010/08/22/error-preverifying-class-preverification-failed-with-error-code-1/</link>
		<comments>http://arteraktiv.com/2010/08/22/error-preverifying-class-preverification-failed-with-error-code-1/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 18:59:02 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[j2me]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[obfuscation]]></category>
		<category><![CDATA[preverivication]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=118</guid>
		<description><![CDATA[When I using both netbeans 6.7.1 and 6.9 to create some j2me based apps it&#8217;s stop compiling with the error code: 12345Preverifying 2 file(s) into E:\Play_On\Java\MyLab\mobileApp\mFaraid3\build\preverified directory. Error preverifying class mfaraid.faraidMIDlet java/lang/VerifyError: E:\Play_On\Java\MyLab\mobileApp\mFaraid3\nbproject\build-impl.xml:470: Preverification failed with error code 1. BUILD FAILED (total time: 0 seconds) So I began investigating which is land me on some [...]]]></description>
			<content:encoded><![CDATA[<p>When I using both netbeans 6.7.1 and 6.9 to create some j2me based apps it&#8217;s stop compiling with the error code:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Preverifying 2 file(s) into E:\Play_On\Java\MyLab\mobileApp\mFaraid3\build\preverified directory.<br />
Error preverifying class mfaraid.faraidMIDlet<br />
java/lang/VerifyError:<br />
E:\Play_On\Java\MyLab\mobileApp\mFaraid3\nbproject\build-impl.xml:470: Preverification failed with error code 1.<br />
BUILD FAILED (total time: 0 seconds)</div></td></tr></tbody></table></div>
<p>So I began investigating which is land me on some links, <a href="http://stackoverflow.com/questions/1943634/javapreverification-failed-with-error-code-2147483645" target="_blank">here</a>, <a href="http://forums.devshed.com/java-help-9/error-preverifying-class-365123.html" target="_blank">here</a>, and <a href="http://forums.sun.com/thread.jspa?threadID=733215">here</a>. After a few days of figuring out solution, fortunately my apps built again successfully. It happens when I realize my apps use java native floating point library, and I setting it to run on CLDC 1.0 not CLDC 1.1 which is floating point supported by built-in library.</p>
<p>Here is checklist I try to solve this problem:</p>
<ol>
<li>Try turning off obfuscation(still got same error).</li>
<li>Lowering obfuscation level (still got similar error).</li>
<li>Go to &#8220;Libraries &amp; Resources&#8221; and uncheck &#8220;Netbeans MIDP Components&#8221;. as my apps was trying to use WaitingScreen but I canceled it, the netbeans not automatically uncheck the unused library. (still got similar error).</li>
<li>Checking library used by the apps and matching it to target platform configuration. it was using floating number and java.lang.Math class, and somehow I was unconsciously switching to CLDC 1.0 which&#8217;s not support floating number and java.lang.Math class. So I switch back to CLDC 1.1 MIDP 2.0, and it works.</li>
</ol>
<p>Why netbeans error log not pointing to this matter anyway&#8230;.?</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/08/22/error-preverifying-class-preverification-failed-with-error-code-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analisis Desain Sistem Informasi</title>
		<link>http://arteraktiv.com/2010/08/19/analisis-desain-sistem-informasi/</link>
		<comments>http://arteraktiv.com/2010/08/19/analisis-desain-sistem-informasi/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 18:12:40 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[modeling]]></category>
		<category><![CDATA[analisis desain sistem informasi]]></category>
		<category><![CDATA[ANSI]]></category>
		<category><![CDATA[data flow diagram]]></category>
		<category><![CDATA[DFD]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=110</guid>
		<description><![CDATA[Analisis -&#62; Desain/Logical Design -&#62; Coding/Physical Design. Salah satu process model ialah, flowchart, yaitu process model untuk sebuah program. DFD, data flow diagram, 99% sama dengan use case diagaram dari kelompok use case diagram. External entity dalam DFD dalam use case biasa disebut actor. Internal entity dalam DFD ialah database, SQL misalnya, data yang diambil [...]]]></description>
			<content:encoded><![CDATA[<p>Analisis -&gt; Desain/Logical Design -&gt; Coding/Physical Design.</p>
<p>Salah satu process model ialah, flowchart, yaitu process model untuk sebuah program.<br />
<a href="http://en.wikipedia.org/wiki/Data_flow_diagram" target="_blank"> DFD</a>, data flow diagram, 99% sama dengan use case diagaram dari kelompok use case diagram.<br />
External entity dalam DFD dalam use case biasa disebut actor.<br />
Internal entity dalam DFD ialah database, SQL misalnya, data yang diambil dari dalam.</p>
<p>langkah-langkah membuat DFD :</p>
<p>Sebelumnya pastikan bahan-bahan seperti requirments telah disiapkan, sehingga kita tinggal mengolah requirments menjadi DFD siap saji.<span id="more-110"></span></p>
<ol>
<li>Buatlah context diagram, hanya terdiri dari satu proses.</li>
<li>Jabarkan context diagram menjadi DFD level 0 (nol).<br />
berikan nomor pada tiap proses, internal entity, dan external entity.</li>
<li>Jabarkan lagi menjadi DFD level 1.</li>
<li>Terus jabarkan DFD kelevel berikutnya sesuai kebutuhan.</li>
<li>DFD telah siap saji.</li>
</ol>
<p>Di dalam rangkaian membuat sistem informasi, aplikasi, program, apps. setelah membuat DFD kita dapat mengolah <span style="text-decoration: underline;">DFD</span> tersebut untuk menghasilkan <span style="text-decoration: underline;">kamus data</span> yang kemudian bisa kita olah melalui <span style="text-decoration: underline;">normalisasi</span> untuk menjadi <span style="text-decoration: underline;">ERD</span>, yang pada akhirnya ERD tersebut dapat kita olah untuk menjadi struktur database.</p>
<p>Dari DFD dan database yang telah ada mungkin(pengetahuan saya baru sampai sini) kita bisa membuat flowchart dari tiap-tiap proses yang ada pada DFD level terakhir. Dari situ coding bisa dilakukan. namun sebelumnya teliti lagi DFD dan database siapa tahu ada kekurangan.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/08/19/analisis-desain-sistem-informasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Menggunakan MovieClip dari library pada adobe flash cs4</title>
		<link>http://arteraktiv.com/2010/05/04/menggunakan-movieclip-dari-library-pada-adobe-flash-cs4/</link>
		<comments>http://arteraktiv.com/2010/05/04/menggunakan-movieclip-dari-library-pada-adobe-flash-cs4/#comments</comments>
		<pubDate>Tue, 04 May 2010 00:16:03 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[movieclip]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=90</guid>
		<description><![CDATA[Menggunakan asset dari library ke dalam stage pada saat runtime tentunya kita dibutuhkan sedikit actionscript. Kita akan mencoba membuat sebuah contoh untuk memanggil asset(baik itu movieclip, button, atau lainnya) dari library ke dalam stage dalam sebuah aplikasi flash sederhana. Alat yang perlu dipersiapkan: Adobe Flash versi CS3/CS4/CS5 Pertama-tama kita buat new document pada flash, pilih [...]]]></description>
			<content:encoded><![CDATA[<p>Menggunakan asset dari library ke dalam stage pada saat runtime tentunya kita dibutuhkan sedikit actionscript. Kita akan mencoba membuat sebuah contoh untuk memanggil asset(baik itu movieclip, button, atau lainnya) dari library ke dalam stage dalam sebuah aplikasi flash sederhana.</p>
<p>Alat yang perlu dipersiapkan:</p>
<ol>
<li>Adobe Flash versi CS3/CS4/CS5</li>
</ol>
<p>Pertama-tama kita buat new document pada flash, pilih yang actionscript 3.0. Kemudian buat sebuah kotak hijau(yang akan dijadikan movieclip nantinya) dan sebuah button, berikan nama untuk button misal tombol. Select pada kotak hijau, kemudian klik kanan, pilih Convert to symbol, maka akan muncul dialog seperti di bawah ini (tekan advance jika belum muncul seprti di bawah ini). gantilah nama simbol dengan nama hijau misalnya, untuk menjadikan sebuah movieClip yang bisa diambil dari library pada runtime maka berikan centang pada pilihan export for actionscript, kemudian ganti nama Class menjadi Hijau misalnya (nama Class boleh berbeda dengan nama symbol ). Kira-kira seperti ini skrinsutnya(screenshot):</p>
<div id="attachment_91" class="wp-caption alignnone" style="width: 237px"><a href="http://arteraktiv.com/fai/wp-content/uploads/2010/05/export_to_symbol.png"><img class="size-medium wp-image-91" title="Export to Symbol" src="http://arteraktiv.com/fai/wp-content/uploads/2010/05/export_to_symbol-227x300.png" alt="Export to Symbol" width="227" height="300" /></a><p class="wp-caption-text">Seperti inilah kira-kira tampilan export to symbol</p></div>
<p>Pilih OK.</p>
<p><span id="more-90"></span><br />
Setelah itu hapus movieclip yg ada di stage. berikan kode ini pada timeline:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6699cc; font-weight: bold;">var</span> nampak<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=boolean%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:boolean.html"><span style="color: #004993;">Boolean</span></a>=<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> hijau_mc<span style="color: #000066; font-weight: bold;">:</span>Hijau = <span style="color: #0033ff; font-weight: bold;">new</span> Hijau<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
tombol<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> handleClick<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<span style="color: #339966; font-weight: bold;">function</span> handleClick<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span> nampak<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>hijau_mc<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; nampak=<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">removeChild</span><span style="color: #000000;">&#40;</span>hijau_mc<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; nampak=<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p>Ctrl+Enter.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://arteraktiv.com/fai/wp-content/uploads/2010/05/mc_sample.swf" /><embed type="application/x-shockwave-flash" width="200" height="200" src="http://arteraktiv.com/fai/wp-content/uploads/2010/05/mc_sample.swf"></embed></object></p>
<p>ada yang blum jelas. atau kurang setuju silakan menulis comment</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/05/04/menggunakan-movieclip-dari-library-pada-adobe-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XMPP flex 4 client sample</title>
		<link>http://arteraktiv.com/2010/05/03/xmpp-flex-4-client-sample/</link>
		<comments>http://arteraktiv.com/2010/05/03/xmpp-flex-4-client-sample/#comments</comments>
		<pubDate>Sun, 02 May 2010 19:15:08 +0000</pubDate>
		<dc:creator>Agil</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[flash builder 4]]></category>
		<category><![CDATA[xiff]]></category>

		<guid isPermaLink="false">http://arteraktiv.com/?p=86</guid>
		<description><![CDATA[XMPP is an open standard protocol for instant message service. Actionscript 3.0 is a client side programming language. In this post we will try to make an xmpp chat client which not utilizes TLS connection, so we will able to connect to some servers providing non-TLS connection such as jabber.org, igniterealtime.org, etc. To begin we [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xmpp.org">XMPP</a> is an open standard protocol for instant message service. Actionscript 3.0 is a client side programming language. In this post we will try to make an xmpp chat client which not utilizes TLS connection, so we will able to connect to some servers providing non-TLS connection such as <a href="http://jabber.org">jabber.org</a>, <a href="http://igniterealtime.org">igniterealtime.org</a>, etc. To begin we need some requirement to use:</p>
<ol>
<li><a href="http://www.igniterealtime.org/projects/xiff/">XIFF</a>, an xmpp library for actionscript 3.0</li>
<li><a href="http://www.igniterealtime.org/projects/openfire/">Openfire</a>, an xmpp server (for testing your app locally)</li>
<li><a href="http://www.adobe.com/products/flashbuilder/">Flash Builder 4</a> or any equivalent flex editor (<a href="http://www.flashdevelop.org/">FlashDevelop</a>, netbeans+flexplugin)</li>
<li><a href="http://labs.arteraktiv.com/xiffsample/">This sample project</a>, right click to view source</li>
</ol>
<p>You can see the result <a title="xiff sample" href="http://labs.arteraktiv.com/xiffsample/">here</a>.</p>
<p>Comment, question, and suggestion are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://arteraktiv.com/2010/05/03/xmpp-flex-4-client-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

