<?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>azwan.net</title>
	<atom:link href="http://azwan.net/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://azwan.net/blog</link>
	<description>tech.biz.life</description>
	<lastBuildDate>Sun, 20 May 2012 07:37:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>List all tables in a database</title>
		<link>http://azwan.net/blog/?p=463</link>
		<comments>http://azwan.net/blog/?p=463#comments</comments>
		<pubDate>Sun, 20 May 2012 07:37:14 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=463</guid>
		<description><![CDATA[To list all tables in the mysql database, you can use this SQL show tables;]]></description>
			<content:encoded><![CDATA[<p>To list all tables in the mysql database, you can use this SQL</p>
<p>show tables;</p>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=463</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily add related links to your blog post</title>
		<link>http://azwan.net/blog/?p=448</link>
		<comments>http://azwan.net/blog/?p=448#comments</comments>
		<pubDate>Sun, 26 Feb 2012 03:16:04 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=448</guid>
		<description><![CDATA[Use this easy-to-install widget to show more related posts within your blog post http://www.linkwithin.com]]></description>
			<content:encoded><![CDATA[<p>Use this easy-to-install widget to show more related posts within your blog post</p>
<p><a href="http://www.linkwithin.com/">http://www.linkwithin.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=448</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Criteria of great software</title>
		<link>http://azwan.net/blog/?p=442</link>
		<comments>http://azwan.net/blog/?p=442#comments</comments>
		<pubDate>Fri, 24 Feb 2012 04:21:38 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=442</guid>
		<description><![CDATA[While looking at a software, we can follow the following criteria to judge a software. Impressive and clean design Intuitive and easy to use (without even need a training) Error free (or at least with layman message) Smart on-screen guide (what to or not to key in, where to go next, what to expect) Fast [...]]]></description>
			<content:encoded><![CDATA[<p>While looking at a software, we can follow the following criteria to judge a software.</p>
<ol>
<li>Impressive and clean design</li>
<li>Intuitive and easy to use (without even need a training)</li>
<li>Error free (or at least with layman message)</li>
<li>Smart on-screen guide (what to or not to key in, where to go next, what to expect)</li>
<li>Fast performance &#8211; loading and processing time</li>
<li>Practical and well-designed logic and flow</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=442</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Barcode generator on Excel</title>
		<link>http://azwan.net/blog/?p=436</link>
		<comments>http://azwan.net/blog/?p=436#comments</comments>
		<pubDate>Thu, 17 Nov 2011 12:10:51 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[barcode]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=436</guid>
		<description><![CDATA[To use excel to generate a bar code is easy. 1. Download free barcode font 2. Copy the font files to c:\windows\fonts 3. Open an excel file with 2 columns. One column for normal character and another column for barcode. 4. On the second column, paste this formula =CONCATENATE(&#8220;*&#8221;,A1,&#8221;*&#8221;) For open office calc use this formula [...]]]></description>
			<content:encoded><![CDATA[<p>To use excel to generate a bar code is easy.</p>
<p>1. <a href="http://www.barcodesinc.com/free-barcode-font/" target="_blank">Download free barcode font</a></p>
<p>2. Copy the font files to c:\windows\fonts</p>
<p>3. Open an excel file with 2 columns. One column for normal character and another column for barcode.</p>
<p>4. On the second column, paste this formula =CONCATENATE(&#8220;*&#8221;,A1,&#8221;*&#8221;)</p>
<p>For open office calc use this formula  =CONCATENATE(&#8220;*&#8221;;A1;&#8221;*&#8221;)</p>
<p>5. Choose the &#8220;Free 3 of 9 Extended&#8221; font</p>
<p>6. Adjust the font size accordingly to get a bigger barcode size</p>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=436</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone CSS</title>
		<link>http://azwan.net/blog/?p=430</link>
		<comments>http://azwan.net/blog/?p=430#comments</comments>
		<pubDate>Mon, 07 Nov 2011 15:47:38 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone style]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile css]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=430</guid>
		<description><![CDATA[This CSS to be used to display website nicely on iPhone. Not tested on Android and other smart phones. Add this code on top of what ever css style you have. 1 2 3 4 5 &#60;!-- Start iPhone --&#62; &#60;meta name=&#34;viewport&#34; content=&#34;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&#34; /&#62; &#60;link rel=&#34;apple-touch-icon&#34; href=&#34;/images/money.png&#34; /&#62; &#60;link media=&#34;only screen and [...]]]></description>
			<content:encoded><![CDATA[<p>This CSS to be used to display website nicely on iPhone. Not tested on Android and other smart phones.</p>
<p>Add this code on top of what ever css style you have.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;!-- Start iPhone --&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&gt;
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/images/money.png&quot; /&gt;
&lt;link media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;/iphone.css&quot; type= &quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;!-- End iPhone --&gt;</pre></td></tr></table></div>

<p>In iphone.css file, just write the css code. For example</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">,</span>td<span style="color: #00AA00;">,</span>input<span style="color: #00AA00;">,</span>textarea<span style="color: #00AA00;">,</span>select<span style="color: #00AA00;">,</span>label <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6em</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
mainlink <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">3em</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.header</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.footer</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.sidebar</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mainlink</span> <span style="color: #00AA00;">&#123;</span>	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">150%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mainlink</span> A<span style="color: #3333ff;">:link </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mainlink</span> A<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mainlink</span> A<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.mainlink</span> A<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFFF66</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=430</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset root password for MySQL on windows</title>
		<link>http://azwan.net/blog/?p=423</link>
		<comments>http://azwan.net/blog/?p=423#comments</comments>
		<pubDate>Wed, 07 Sep 2011 10:36:47 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=423</guid>
		<description><![CDATA[If you have problem accessing your MySQL database with this error ERROR 1045: Access denied for user: &#8216;root@localhost&#8217; (Using password: NO) You can try reset your root password with the following steps: 1. Create a txt file with this content UPDATE mysql.user SET Password=PASSWORD('newpassword') WHERE User='root'; FLUSH PRIVILEGES; 2. Save the file as mysql-init.txt in [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problem accessing your MySQL database with this error<br />
<strong>ERROR 1045: Access denied for user: &#8216;root@localhost&#8217; (Using password: NO)</strong></p>
<p>You can try reset your root password with the following steps:</p>
<p>1. Create a txt file with this content</p>

<div class="wp_syntax"><div class="code"><pre class="msyql" style="font-family:monospace;">UPDATE mysql.user SET Password=PASSWORD('newpassword') WHERE User='root';
FLUSH PRIVILEGES;</pre></div></div>

<p>2. Save the file as mysql-init.txt in c:\ (or any directory you want)</p>
<p>3. Stop MySQL service</p>
<p>4. Start MySQL service in command prompt with this command line</p>

<div class="wp_syntax"><div class="code"><pre class="msyql" style="font-family:monospace;">&gt;c:\mysql\bin\mysqld --init-file=c:\\mysql-init.txt</pre></div></div>

<p>5. Remove the txt file in created in step 2</p>
<p>Note: You can/need to specify correct path for the file and mysql directory for step 2 and 4.</p>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=423</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL database auto backup on windows</title>
		<link>http://azwan.net/blog/?p=414</link>
		<comments>http://azwan.net/blog/?p=414#comments</comments>
		<pubDate>Mon, 05 Sep 2011 06:58:05 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[exe]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql bacup]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=414</guid>
		<description><![CDATA[To backup mysql database (all databases) can use this batch file Then you can compile the .bat file to become .exe file so that the password is hidden. Download bat to exe converter from CNET download Lastly, you can include the exe file to run in task scheduler You can have option to upload the [...]]]></description>
			<content:encoded><![CDATA[<p>To backup mysql database (all databases) can use <a href="http://www.redolivedesign.com/utah-web-designers-blog/2011/05/23/automated-mysql-backup-for-windows/">this batch file</a></p>
<p>Then you can compile the .bat file to become .exe file so that the password is hidden.</p>
<p><a href="http://t.co/aWoP37R">Download bat to exe converter from CNET download</a></p>
<p>Lastly, you can include the exe file to run in task scheduler</p>
<p>You can have option to upload the file via FTP to other server</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bat" style="font-family:monospace;">:: Start FTP files to remote server
:: Create the temporary FTP script file
&gt; script.ftp ECHO ftpusername
&gt;&gt;script.ftp ECHO ftppassword
&gt;&gt;script.ftp ECHO lcd /
&gt;&gt;script.ftp ECHO lcd /MySQLBackups/backupfiles
&gt;&gt;script.ftp ECHO binary
&gt;&gt;script.ftp ECHO prompt n
&gt;&gt;script.ftp ECHO put FullBackup.%backupdate%.zip
&gt;&gt;script.ftp ECHO bye
:: Use the temporary script for unattended FTP
:: Note: depending on your OS version you may have to add a '-n' switch
FTP -v -s:script.ftp ftphostcom.com
:: Overwrite the temporary file before deleting it
TYPE NUL &gt;script.ftp
DEL script.ftp
:: DONE FTP backup file to remote server</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=414</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database config for localhost and server</title>
		<link>http://azwan.net/blog/?p=407</link>
		<comments>http://azwan.net/blog/?p=407#comments</comments>
		<pubDate>Mon, 29 Aug 2011 02:17:03 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=407</guid>
		<description><![CDATA[To easily toggle database config for localhost and server, you can simply check whether you are accessing the local or server. 1 2 3 4 5 6 7 8 9 10 11 12 13 if &#40;preg_match&#40;&#34;/localhost/i&#34;, $_SERVER&#91;'SERVER_NAME'&#93;&#41;&#41; &#123; define &#40;'DBHOST','localhost'&#41;; define &#40;'DBNAME','localdbname'&#41;; define &#40;'DBUSER','localuser'&#41;; define &#40;'DBPASS','localpass'&#41;; define &#40;'DEV',TRUE&#41;; &#125; else &#123; define &#40;'DBHOST','localhost'&#41;; define &#40;'DBNAME','serverdbname'&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>To easily toggle database config for localhost and server, you can simply check whether you are accessing the local or server.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/localhost/i&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBHOST'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBNAME'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localdbname'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBUSER'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localuser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBPASS'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localpass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DEV'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBHOST'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBNAME'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'serverdbname'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBUSER'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'serveruser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DBPASS'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'serverpass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DEV'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=407</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting recaptcha to your form</title>
		<link>http://azwan.net/blog/?p=399</link>
		<comments>http://azwan.net/blog/?p=399#comments</comments>
		<pubDate>Sat, 27 Aug 2011 23:47:38 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[word verification]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=399</guid>
		<description><![CDATA[Captcha is good to reduce spam. One of most popular captcha used is recaptcha. This is how it looks like. Familiar? To implement it is very easy. Will take less than 10 minutes of your time. 1. Get your public and private key https://www.google.com/recaptcha/admin/create 2. Include class file Download recaptcha library file for PHP (with [...]]]></description>
			<content:encoded><![CDATA[<p>Captcha is good to reduce spam. One of most popular captcha used is recaptcha.</p>
<p>This is how it looks like. Familiar?<br />
<div id="attachment_403" class="wp-caption alignnone" style="width: 310px"><a href="http://azwan.net/blog/wp-content/uploads/2011/08/scr01.gif"><img src="http://azwan.net/blog/wp-content/uploads/2011/08/scr01-300x122.gif" alt="" title="captcha" width="300" height="122" class="size-medium wp-image-403" /></a><p class="wp-caption-text">captcha</p></div></p>
<p>To implement it is very easy. Will take less than 10 minutes of your time.</p>
<p>1. Get your public and private key</p>
<p><a href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha/admin/create</a></p>
<p>2. Include class file</p>
<p><a href="http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest">Download recaptcha library file for PHP (with some sample files)</a></p>
<p>3. Insert code in form page</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;form method=&quot;post&quot; action=&quot;verify.php&quot;&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
          <span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'recaptchalib.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #000088;">$publickey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;your_public_key&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// you got this from the signup page</span>
          <span style="color: #b1b100;">echo</span> recaptcha_get_html<span style="color: #009900;">&#40;</span><span style="color: #000088;">$publickey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>4. Insert code to validate code in process page</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'recaptchalib.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$privatekey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;your_private_key&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$resp</span> <span style="color: #339933;">=</span> recaptcha_check_answer <span style="color: #009900;">&#40;</span><span style="color: #000088;">$privatekey</span><span style="color: #339933;">,</span>
                                <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REMOTE_ADDR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
                                <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;recaptcha_challenge_field&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
                                <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;recaptcha_response_field&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$resp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_valid</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// What happens when the CAPTCHA was entered incorrectly</span>
    <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;The reCAPTCHA wasn't entered correctly. Go back and try it again.&quot;</span> <span style="color: #339933;">.</span>
         <span style="color: #0000ff;">&quot;(reCAPTCHA said: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$resp</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">error</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// Your code here to handle a successful verification</span>
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=399</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resume do&#8217;s and don&#8217;ts</title>
		<link>http://azwan.net/blog/?p=394</link>
		<comments>http://azwan.net/blog/?p=394#comments</comments>
		<pubDate>Fri, 19 Aug 2011 04:20:57 +0000</pubDate>
		<dc:creator>invtr</dc:creator>
				<category><![CDATA[business]]></category>
		<category><![CDATA[resume]]></category>

		<guid isPermaLink="false">http://azwan.net/blog/?p=394</guid>
		<description><![CDATA[If you are sending out resume to apply for job, please follow the following rules Prepare and send your resume in PDF format. With this your resume formatting will appear same all the time Please always include your LATEST and most PRESENTABLE photo Don&#8217;t name your file as resume.doc. Use resume_yourname.pdf instead. Remember not only [...]]]></description>
			<content:encoded><![CDATA[<p>If you are sending out resume to apply for job, please follow the following rules</p>
<ul>
<li>Prepare and send your resume in PDF format. With this your resume formatting will appear same all the time</li>
<li>Please always include your LATEST and most PRESENTABLE photo</li>
<li>Don&#8217;t name your file as resume.doc. Use resume_yourname.pdf instead. Remember not only you that send resume to apply for the job</li>
<li>Use email with your real name, not your cat&#8217;s name or whatever crazy name. For example abdul.rahman@gmail.com NOT setan_cute@gmail.com</li>
<li>Tell about your experience and what you HAVE DONE. Not about what subjects you took during your study. Describe the task, your role and other related information (e.g. technology used, party involved etc)</li>
<li>There is no limit of page for a resume. Don&#8217;t buy to idea that you need to limit to 1 page, 2 pages or maximum 4 pages. If you write the right thing, people will read it from beginning to the end</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://azwan.net/blog/?feed=rss2&#038;p=394</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

