<?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>IamRegin.com</title>
	<atom:link href="http://www.iamregin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamregin.com</link>
	<description>Random thoughts on web development, my name is Regin Valeriano and this is my weblog</description>
	<lastBuildDate>Tue, 24 Aug 2010 01:19:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Importing large databases on Wamp5 PHPmyAdmin, how?</title>
		<link>http://www.iamregin.com/2010/08/importing-large-databases-on-wamp5-phpmyadmin-how/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=importing-large-databases-on-wamp5-phpmyadmin-how</link>
		<comments>http://www.iamregin.com/2010/08/importing-large-databases-on-wamp5-phpmyadmin-how/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 01:19:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[importing large database]]></category>
		<category><![CDATA[large sql]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=168</guid>
		<description><![CDATA[Have a database bigger than 2MB? want to import them somewhere else? but you cant and PHPmyAdmin just gave you the dead end message below?

No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.

Have no fear, there&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Have a database bigger than 2MB? want to import them somewhere else? but you cant and PHPmyAdmin just gave you the dead end message below?</p>
<blockquote><p>
No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.
</p></blockquote>
<p>Have no fear, there&#8217;s a solution:</p>
<p>Look for the php.ini file -> c:/wamp/www/apache2/bin/php.ini</p>
<p>Then change the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M</pre></div></div>

<p>To these new values:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">post_max_size = 100M
upload_max_filesize = 100M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 100M</pre></div></div>

<p>Then restart wamp5 and retry importing&#8230;</p>
<p>Happy coding <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/08/importing-large-databases-on-wamp5-phpmyadmin-how/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set Webserver Directory Index via .htaccess</title>
		<link>http://www.iamregin.com/2010/08/how-to-set-webserver-directory-index-via-htaccess/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-set-webserver-directory-index-via-htaccess</link>
		<comments>http://www.iamregin.com/2010/08/how-to-set-webserver-directory-index-via-htaccess/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 13:39:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[.htacces]]></category>
		<category><![CDATA[deafult index file]]></category>
		<category><![CDATA[DirectoryIndex]]></category>
		<category><![CDATA[webserver directory index]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=166</guid>
		<description><![CDATA[What&#8217;s a webserver directory index anyway?
When an HTTP client (generally a Web browser) requests a URL that points to a directory structure instead of an actual Web page within the directory, the Web server will generally serve a general page, which is often referred to as a main or &#8220;index&#8221; page.
Most often index.html or index.php [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>What&#8217;s a webserver directory index anyway?</p>
<blockquote><p>When an HTTP client (generally a Web browser) requests a URL that points to a directory structure instead of an actual Web page within the directory, the Web server will generally serve a general page, which is often referred to as a main or &#8220;index&#8221; page.</p></blockquote>
<p>Most often index.html or index.php are used by developers, but we can set it to any file we want to with the help of .htaccess</p>
<p>on your .htaccess file write:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">DirectoryIndex home<span style="color: #339933;">.</span>html</pre></div></div>

<p>Above code is just telling that I want the file home.html be by default index page.</p>
<p>but you can also do this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">DirectoryIndex home<span style="color: #339933;">.</span>html index<span style="color: #339933;">.</span>html index<span style="color: #339933;">.</span>php</pre></div></div>

<p>Above is telling the server that to use home.html as my default index page and if not use index.html else use index.php and so on&#8230;</p>
<p>So that&#8217;s it, fairly easy&#8230;</p>
<p> <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/08/how-to-set-webserver-directory-index-via-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 404s redirect</title>
		<link>http://www.iamregin.com/2010/08/161/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=161</link>
		<comments>http://www.iamregin.com/2010/08/161/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 04:09:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[404 redirect]]></category>
		<category><![CDATA[joomla 404]]></category>
		<category><![CDATA[joomla custom 404]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=161</guid>
		<description><![CDATA[If you want to see the error page in theme design and don&#8217;t like redirecting to error page URL or duplicating HTML in the error page template, here is a way to apply your theme template to the error page.
First, put the following code in templates/system/error.php:
Dont forget to put it 
BEFORE THE DOC TYPE!


&#60;?php 
if [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>If you want to see the error page in theme design and don&#8217;t like redirecting to error page URL or duplicating HTML in the error page template, here is a way to apply your theme template to the error page.</p>
<p>First, put the following code in templates/system/error.php:</p>
<p>Dont forget to put it <strong>
<ul>BEFORE THE DOC TYPE!</ul>
<p></strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<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;">error</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">code</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'404'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location:www.domain.com/your-custom-error-page.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Thats it!</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/08/161/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating your own captcha images, security images on the fly</title>
		<link>http://www.iamregin.com/2010/07/creating-your-own-captcha-images-security-images-on-the-fly/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-your-own-captcha-images-security-images-on-the-fly</link>
		<comments>http://www.iamregin.com/2010/07/creating-your-own-captcha-images-security-images-on-the-fly/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 23:40:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[ceating your own captcha]]></category>
		<category><![CDATA[creating your own security image]]></category>
		<category><![CDATA[security images]]></category>
		<category><![CDATA[spam prevention]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=157</guid>
		<description><![CDATA[Here&#8217;s the code im using for all of the websites and projects  

&#160;
&#60;?php
session_start&#40;&#41;;
&#160;
$strlength = rand&#40;4,7&#41;;
&#160;
for&#40;$i=1;$i&#60;=$strlength;$i++&#41;&#123;
$textornumber = rand&#40;1,3&#41;;
&#160;
if&#40;$textornumber == 1&#41;&#123;
$captchastr .= chr&#40;rand&#40;49,57&#41;&#41;;
&#125;
if&#40;$textornumber == 2&#41;&#123;
$captchastr .= chr&#40;rand&#40;65,78&#41;&#41;;
&#125;
if&#40;$textornumber == 3&#41;&#123;
$captchastr .= chr&#40;rand&#40;80,90&#41;&#41;;
&#125;
&#160;
&#125;
&#160;
$randcolR = rand&#40;100,230&#41;;
$randcolG = rand&#40;100,230&#41;;
$randcolB = rand&#40;100,230&#41;;
&#160;
//initialize image $captcha is handle dimensions 200,50
$captcha = imageCreate&#40;200,50&#41;;
&#160;
$backcolor = imageColorAllocate&#40;$captcha, $randcolR, $randcolG, $randcolB&#41;;
&#160;
$txtcolor = imageColorAllocate&#40;$captcha, &#40;$randcolR - 20&#41;, &#40;$randcolG [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Here&#8217;s the code im using for all of the websites and projects <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$strlength</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #000088;">$strlength</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$textornumber</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</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: #000088;">$textornumber</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$captchastr</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">49</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">57</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$textornumber</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$captchastr</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">65</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">78</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$textornumber</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$captchastr</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">chr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">90</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$randcolR</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">230</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$randcolG</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">230</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$randcolB</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">230</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//initialize image $captcha is handle dimensions 200,50</span>
<span style="color: #000088;">$captcha</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imageCreate</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$backcolor</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imageColorAllocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #339933;">,</span> <span style="color: #000088;">$randcolR</span><span style="color: #339933;">,</span> <span style="color: #000088;">$randcolG</span><span style="color: #339933;">,</span> <span style="color: #000088;">$randcolB</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$txtcolor</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imageColorAllocate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$randcolR</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$randcolG</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$randcolB</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #000088;">$strlength</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$clockorcounter</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</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: #000088;">$clockorcounter</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$rotangle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">45</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$clockorcounter</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$rotangle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">315</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">360</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//$i*25 spaces the characters 25 pixels apart</span>
<span style="color: #990000;">imagettftext</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">14</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$rotangle</span><span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">,</span><span style="color: #000088;">$txtcolor</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;fonts/arial.ttf&quot;</span><span style="color: #339933;">,</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captchastr</span><span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #990000;">imageellipse</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$txtcolor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #990000;">imageellipse</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">25</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$backcolor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Send the headers (at last possible time)</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-type: image/png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Output the image as a PNG</span>
<span style="color: #990000;">imagePNG</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Delete the image from memory</span>
<span style="color: #990000;">imageDestroy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captcha</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span>captchastr<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$captchastr</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/07/creating-your-own-captcha-images-security-images-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable GD library on WAMP5 &#8211; simplier than you think&#8230;</title>
		<link>http://www.iamregin.com/2010/07/how-to-enable-gd-library-on-wamp5-simplier-than-you-think/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-enable-gd-library-on-wamp5-simplier-than-you-think</link>
		<comments>http://www.iamregin.com/2010/07/how-to-enable-gd-library-on-wamp5-simplier-than-you-think/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 23:36:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[create image on the fly]]></category>
		<category><![CDATA[enable gd library on wamp5]]></category>
		<category><![CDATA[gd library]]></category>
		<category><![CDATA[gd library on wamp5]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=151</guid>
		<description><![CDATA[How to enable GD library on Wamp5?
(This I assume you have running wamp5 on your system)
Click Wamp5 icon on lower right hand of your screen (see image)

Click PHP settings &#8230;

Click PHP extensions &#8230;

If there&#8217;s an triangle already showing right across php_gd2 GD is already running and you can now create image on the fly(via PHP), [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>How to enable GD library on Wamp5?</p>
<p><em>(This I assume you have running wamp5 on your system)</em></p>
<p>Click Wamp5 icon on lower right hand of your screen (see image)</p>
<p><a href="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-1.jpg"><img class="alignnone size-full wp-image-152" title="wamp5-1" src="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-1.jpg" alt="wamp5" width="182" height="335" /></a></p>
<p>Click PHP settings &#8230;</p>
<p><a href="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-2.jpg"><img class="alignnone size-full wp-image-153" title="wamp5-2" src="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-2.jpg" alt="wamp5" width="203" height="455" /></a></p>
<p>Click PHP extensions &#8230;</p>
<p><a href="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-3.jpg"><img class="alignnone size-full wp-image-154" title="wamp5-3" src="http://www.iamregin.com/wp-content/uploads/2010/07/wamp5-3.jpg" alt="wamp5" width="377" height="143" /></a></p>
<p>If there&#8217;s an triangle already showing right across php_gd2 GD is already running and you can now create image on the fly(via PHP), but if no triangle  it is not enabled and to enable it just click and restart your server <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thats it. Its really amazing right <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/07/how-to-enable-gd-library-on-wamp5-simplier-than-you-think/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Youtube embed code to pass w3c HTML validation? yes there&#8217;s a solution, see here!</title>
		<link>http://www.iamregin.com/2010/07/youtube-embed-code-to-pass-w3c-html-validation-yes-theres-a-solution-see-here/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=youtube-embed-code-to-pass-w3c-html-validation-yes-theres-a-solution-see-here</link>
		<comments>http://www.iamregin.com/2010/07/youtube-embed-code-to-pass-w3c-html-validation-yes-theres-a-solution-see-here/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 23:18:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[embed to pass html validation]]></category>
		<category><![CDATA[html validation]]></category>
		<category><![CDATA[youtube code passed html validation]]></category>
		<category><![CDATA[youtube code to pass w3c html validation]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=147</guid>
		<description><![CDATA[For those who scour the net for a simple solution for a problem called &#8220;Make my YouTube embed code pass w3c HTML validation&#8220;, your in the PERFECT place, because what you&#8217;re about to read is not only simple, but the perfect solution!
Very confident me will now show you how its done   &#8230;
The usual [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>For those who scour the net for a simple solution for a problem called &#8220;<strong>Make my YouTube embed code pass w3c HTML validation</strong>&#8220;, your in the PERFECT place, because what you&#8217;re about to read is not only simple, but the perfect solution!</p>
<p>Very confident me will now show you how its done <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230;</p>
<p>The usual Youtube embed code(do not pass w3c HTML validation)<br />
NOTE: where <strong>($vid)</strong> is your Youtube video ID</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;object width=&quot;430&quot; height=&quot;347&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/($vid)&amp;amp;hl=en_US&amp;amp;fs=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
&lt;embed src=&quot;http://www.youtube.com/v/($vid)&amp;amp;hl=en_US&amp;amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;430&quot; height=&quot;347&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre></div></div>

<p>Ok you see, when using this code to display video, it will never pass validation but instead will render validation error such as &#8220;there is no attribute allowfullscreen&#8221;, &#8220;width&#8221; among others.</p>
<p>But with the code below, you can perfectly validate your Youtube pages <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  see below and test it yourself.</p>
<p>NOTE: ($vid) is = to your Youtube video ID, for example http://www.youtube.com/v/<strong><em>RHzC7YOxkVY</em></strong>&amp;hl=en_US&amp;fs=1 the emphasized letters is your Youtube ID, So now presenting the code&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;object type=&quot;application/x-shockwave-flash&quot; width=&quot;430&quot; height=&quot;347&quot; data=&quot;http://www.youtube.com/v/($vid)&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/($vid)&quot; /&gt;&lt;/object&gt;</pre></div></div>

<p>Oh my, yes its much shorter, and its better!!! <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/07/youtube-embed-code-to-pass-w3c-html-validation-yes-theres-a-solution-see-here/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript concatenates instead of adding two form values? There&#8217;s an easy solution: parseInt() Javascript function</title>
		<link>http://www.iamregin.com/2010/07/javascript-concatenates-instead-of-adding-two-form-values-solution-parseint-javascript-function/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=javascript-concatenates-instead-of-adding-two-form-values-solution-parseint-javascript-function</link>
		<comments>http://www.iamregin.com/2010/07/javascript-concatenates-instead-of-adding-two-form-values-solution-parseint-javascript-function/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 04:07:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[javascript concaenates instead of adding two values]]></category>
		<category><![CDATA[javascript function]]></category>
		<category><![CDATA[parseInt();]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=139</guid>
		<description><![CDATA[Javascript concatenates instead of adding two form values?
Ok, lets test this  
SEE DEMO

&#60;form id=&#34;form2&#34; name=&#34;form2&#34; method=&#34;post&#34; action=&#34;#&#34; onsubmit=&#34;document.getElementById('total2').value=parseInt(document.getElementById('field12').value)+parseInt(document.getElementById('field22').value); return false;&#34;&#62;
  &#60;p&#62;
    &#60;input type=&#34;text&#34; name=&#34;field12&#34; id=&#34;field12&#34; /&#62;
  &#60;/p&#62;
  &#60;p&#62;
    &#60;input type=&#34;text&#34; name=&#34;field22&#34; id=&#34;field22&#34; /&#62;
  &#60;/p&#62;
  &#60;p&#62;
    &#60;input type=&#34;submit&#34; name=&#34;button&#34; id=&#34;button&#34; value=&#34;Add&#34; [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><strong>Javascript concatenates instead of adding two form values?</strong></p>
<p>Ok, lets test this <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="CustomScripts/Javascript_concatenates_instead_of_adding_two_form_values.php" target="_blank">SEE DEMO</a></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form id=&quot;form2&quot; name=&quot;form2&quot; method=&quot;post&quot; action=&quot;#&quot; onsubmit=&quot;document.getElementById('total2').value=parseInt(document.getElementById('field12').value)+parseInt(document.getElementById('field22').value); return false;&quot;&gt;
  &lt;p&gt;
    &lt;input type=&quot;text&quot; name=&quot;field12&quot; id=&quot;field12&quot; /&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;input type=&quot;text&quot; name=&quot;field22&quot; id=&quot;field22&quot; /&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;input type=&quot;submit&quot; name=&quot;button&quot; id=&quot;button&quot; value=&quot;Add&quot; /&gt;
  = 
  &lt;input name=&quot;total2&quot; type=&quot;text&quot; id=&quot;total2&quot; size=&quot;10&quot; /&gt;
  &lt;/p&gt;
&lt;/form&gt;</pre></div></div>

<p>True enough treat form values as string, so concatenates.</p>
<p>So, what should we do to make Javascript add those form values?</p>
<p>We can use Javascript function called parseInt().</p>
<p>The parseInt() function parses a string and returns an integer.</p>
<p>Ex: form.field2.value+form.field2.value (this will only concatenate)</p>
<p><a href="CustomScripts/Javascript_concatenates_instead_of_adding_two_form_values.php" target="_blank">SEE DEMO</a></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form id=&quot;form2&quot; name=&quot;form2&quot; method=&quot;post&quot; action=&quot;#&quot; onsubmit=&quot;document.getElementById('total2').value=parseInt(document.getElementById('field12').value)+parseInt(document.getElementById('field22').value); return false;&quot;&gt;
  &lt;p&gt;
    &lt;input type=&quot;text&quot; name=&quot;field12&quot; id=&quot;field12&quot; /&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;input type=&quot;text&quot; name=&quot;field22&quot; id=&quot;field22&quot; /&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;input type=&quot;submit&quot; name=&quot;button&quot; id=&quot;button&quot; value=&quot;Add&quot; /&gt;
  = 
  &lt;input name=&quot;total2&quot; type=&quot;text&quot; id=&quot;total2&quot; size=&quot;10&quot; /&gt;
  &lt;/p&gt;
&lt;/form&gt;</pre></div></div>

<p>Thats it! that should add two form values perfectly <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  feel free to post any question and or comments thanks.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/07/javascript-concatenates-instead-of-adding-two-form-values-solution-parseint-javascript-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to customize Magento&#8217;s currency symbol?</title>
		<link>http://www.iamregin.com/2010/06/how-to-customize-magentos-currency-symbol/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-customize-magentos-currency-symbol</link>
		<comments>http://www.iamregin.com/2010/06/how-to-customize-magentos-currency-symbol/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 03:59:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[edit magento currency symbol]]></category>
		<category><![CDATA[magento currency symbol]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=134</guid>
		<description><![CDATA[Editing Magento&#8217;s default currency symbol is relatively easy and can be done via admin.
But what if you wanted to display &#8220;USD&#8221; instead of &#8220;$&#8221;?
This too is easy enough for most of us-if you know where to look at!  
Ok ok, to edit or customize default currency symbol look into;

MAGENTO_ROOT/lib/Zend/Locale/Data/

Look for you locale, in most [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Editing Magento&#8217;s default currency symbol is relatively easy and can be done via admin.</p>
<p>But what if you wanted to display &#8220;USD&#8221; instead of &#8220;$&#8221;?</p>
<p>This too is easy enough for most of us-if you know where to look at! <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok ok, to edit or customize default currency symbol look into;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">MAGENTO_ROOT/lib/Zend/Locale/Data/</pre></div></div>

<p>Look for you locale, in most cases <strong>en.xml</strong> (which is english), download and open it in your favorite editor, replace below code</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;currency type=&quot;USD&quot;&gt;
    &lt;displayName&gt;US Dollar&lt;/displayName&gt;
    &lt;displayName count=&quot;one&quot;&gt;US dollar&lt;/displayName&gt;
    &lt;displayName count=&quot;other&quot;&gt;US dollars&lt;/displayName&gt;
    &lt;symbol&gt;$&lt;/symbol&gt;
&lt;/currency&gt;</pre></div></div>

<p>With this code:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;currency type=&quot;USD&quot;&gt;
    &lt;displayName&gt;US Dollar&lt;/displayName&gt;
    &lt;displayName count=&quot;one&quot;&gt;US dollar&lt;/displayName&gt;
    &lt;displayName count=&quot;other&quot;&gt;US dollars&lt;/displayName&gt;
    &lt;symbol&gt;USD&lt;/symbol&gt;
&lt;/currency&gt;</pre></div></div>

<p>I think you already noticed what we omit and replace on the code <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , easy enough, saved it and upload it to your server.</p>
<p>To make your life even more easier here&#8217;s a tip: you can find this line of code around line 3800 in en.xml</p>
<p>GOGOGO <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/06/how-to-customize-magentos-currency-symbol/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Where is Magento&#8217;s Customer Login Template?</title>
		<link>http://www.iamregin.com/2010/06/where-is-magentos-customer-login-template/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=where-is-magentos-customer-login-template</link>
		<comments>http://www.iamregin.com/2010/06/where-is-magentos-customer-login-template/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 03:43:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[amgento login]]></category>
		<category><![CDATA[find magento customer login file]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento customer login]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=130</guid>
		<description><![CDATA[hello everyone, I don&#8217;t think this post will do much, but certainly will save someone&#8217;s time finding the Magento&#8217;s Customer Login Template (login.phtml).
I&#8217;d like to share this because I spent hours trying to find this particular file and after long hours I finally found and edit it to my needs  
Here the location:

MAGENTO_ROOT/app/design/frontend/default/default/template/customer/form/

Look for [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>hello everyone, I don&#8217;t think this post will do much, but certainly will save someone&#8217;s time finding the Magento&#8217;s Customer Login Template (login.phtml).</p>
<p>I&#8217;d like to share this because I spent hours trying to find this particular file and after long hours I finally found and edit it to my needs <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here the location:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">MAGENTO_ROOT/app/design/frontend/default/default/template/customer/form/</pre></div></div>

<p>Look for the file login.phtml and that should be the one you looking for.<br />
Magento file structure can be deeper for plenty for us making it harder to manipulate. (at east as far im concern hehehe <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  go now and edit your login )</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/06/where-is-magentos-customer-login-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validating textfield to accept numbers and letters only, via Javascript</title>
		<link>http://www.iamregin.com/2010/05/validating-textfield-to-accept-numbers-and-letters-only-via-javascript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=validating-textfield-to-accept-numbers-and-letters-only-via-javascript</link>
		<comments>http://www.iamregin.com/2010/05/validating-textfield-to-accept-numbers-and-letters-only-via-javascript/#comments</comments>
		<pubDate>Mon, 31 May 2010 13:23:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[javascript validation]]></category>
		<category><![CDATA[validate alpha numeric only]]></category>
		<category><![CDATA[validate form to accept only alphanumeric]]></category>
		<category><![CDATA[validate form via javascript to accept only letter and numbers]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=128</guid>
		<description><![CDATA[Sometimes we wanted to validate user inputs, and more often than not we want to restrict then to only accept letters, numbers and spaces for a specific form field.
Today Ill show you how to do this via Javascript.
The below codes will demonstrate this for your quick understanding:

&#60;form id=&#34;form1&#34; name=&#34;form1&#34; onsubmit=&#34;if(/[^A-Za-z\d ]/.test(this.textfield.value)){alert('String should contain letters and [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Sometimes we wanted to validate user inputs, and more often than not we want to restrict then to only accept letters, numbers and spaces for a specific form field.</p>
<p>Today Ill show you how to do this via Javascript.</p>
<p>The below codes will demonstrate this for your quick understanding:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;form1&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;form1&quot;</span> onsubmit<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;if(/[^A-Za-z<span style="color: #000099; font-weight: bold;">\d</span> ]/.test(this.textfield.value)){alert('String should contain letters and numbers only');}else{alert('String passed');}&quot;</span> method<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;textfield&quot;</span> id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;textfield&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Input text here.&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;this.value=''&quot;</span> <span style="color: #339933;">/&gt;</span>
  <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;button&quot;</span> id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Submit&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></div>

<p>On submit event Javascript will test value of the textfield using &#8220;<strong>/[^A-Za-z\d ]/</strong>&#8220;, if any character is found other than letter, number and space it will return TRUE and alert us that it contains illegal character(s) (letter, number and space).</p>
<p>Please see <a href="http://iamregin.com/CustomScripts/validating_javascript_letter_and_numbers_only.htm" target="_blank"><strong>demo</strong></a></p>
<p>Easy huh, try it yourself. <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/validating-textfield-to-accept-numbers-and-letters-only-via-javascript/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How can I use custom font to my website?</title>
		<link>http://www.iamregin.com/2010/05/how-can-i-use-custom-font-to-my-website/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-can-i-use-custom-font-to-my-website</link>
		<comments>http://www.iamregin.com/2010/05/how-can-i-use-custom-font-to-my-website/#comments</comments>
		<pubDate>Sun, 30 May 2010 03:19:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[cutom font on my website]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[font-family]]></category>
		<category><![CDATA[how can I use custom font]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=126</guid>
		<description><![CDATA[Using custom font to your website is relatively easy to set-up, you will need the face-face (.ttf file) upload to your server and a little tweak on the CSS file.
How to do this? here&#8217;s the code to add to your CSS:

@font-face {
    font-family: &#34;palatino&#34;;
    src: url&#40;http://yourwebsite.com/path-to-font-file/palatino.ttf&#41; format&#40;&#34;truetype&#34;&#41;;
&#125;

The above example [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Using custom font to your website is relatively easy to set-up, you will need the face-face (.ttf file) upload to your server and a little tweak on the CSS file.</p>
<p>How to do this? here&#8217;s the code to add to your CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
    <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;palatino&quot;</span><span style="color: #00AA00;">;</span>
    src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">http://yourwebsite.com/path-to-font-file/palatino.ttf</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;truetype&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The above example use a font face named &#8220;Palatino&#8221; (you can replace this to any font that you like), the second like is to tell the file where if the we are going to use. www.yourwebsite.com and inside the folderr &#8220;path-to-font-file&#8221; and use the font face file palatino.ttf .</p>
<p>Save your CSS and upload the font face of your choice <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  go test it to your website its cool <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/how-can-i-use-custom-font-to-my-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How will I know if im on Joomla! home page or in innner page?</title>
		<link>http://www.iamregin.com/2010/05/how-will-i-know-if-im-on-joomla-home-page-or-in-innner-page/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-will-i-know-if-im-on-joomla-home-page-or-in-innner-page</link>
		<comments>http://www.iamregin.com/2010/05/how-will-i-know-if-im-on-joomla-home-page-or-in-innner-page/#comments</comments>
		<pubDate>Tue, 25 May 2010 02:38:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[how will I know if om on Joomla home page]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Joomla hoepage]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=122</guid>
		<description><![CDATA[As the title suggest, how will I know if I&#8217;m on Joomla! home page?
for example:

if&#40;'ImOnHomePage'&#41;&#123;
  do this...
&#125;else&#123;
  do this instead...
&#125;

A quick answer should be via PHP $_SERVER global variable:

&#60;?php
$uri = $_SERVER&#91;'REQUEST_URI'&#93;;
if &#40;$uri == &#34;/&#34; &#124;&#124; $uri == '/home.html'&#41; &#123;
  echo 'Im on home page';
&#125;else&#123;
  echo 'Im not on home page';
&#125;
?&#62;

Please before [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>As the title suggest, how will I know if I&#8217;m on Joomla! home page?</p>
<p>for example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ImOnHomePage'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">do</span> this<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: #b1b100;">do</span> this instead<span style="color: #339933;">...</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>A quick answer should be via PHP $_SERVER global variable:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$uri</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$uri</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;/&quot;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$uri</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'/home.html'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Im on home page'</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: #b1b100;">echo</span> <span style="color: #0000ff;">'Im not on home page'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Please before trying to update or change your <strong>templates/TemplateName/index.php</strong> file please do make a backup.  It can save your life <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/how-will-i-know-if-im-on-joomla-home-page-or-in-innner-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Page not found redirection via .HTACCESS, Custom &#8220;page not found&#8221; error page</title>
		<link>http://www.iamregin.com/2010/05/page-not-found-redirection-via-htaccess-custom-page-not-found-error-page/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=page-not-found-redirection-via-htaccess-custom-page-not-found-error-page</link>
		<comments>http://www.iamregin.com/2010/05/page-not-found-redirection-via-htaccess-custom-page-not-found-error-page/#comments</comments>
		<pubDate>Sun, 23 May 2010 14:46:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[bad request]]></category>
		<category><![CDATA[page not found errors]]></category>
		<category><![CDATA[page redirection via .htaccess]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=120</guid>
		<description><![CDATA[Hello everyone, today I decided to show how to redirect a visitor or visitors if page is not found on server or website.
This happens when a visitor misspelled a URL or when getting too snoopy on your website, and if indeed happens a default ugly &#8220;page not found error&#8221;  will be rendered by their [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Hello everyone, today I decided to show how to redirect a visitor or visitors if page is not found on server or website.</p>
<p>This happens when a visitor misspelled a URL or when getting too snoopy on your website, and if indeed happens a default ugly <strong>&#8220;page not found error&#8221; </strong> will be rendered by their browser.</p>
<p>To avoid ugly and unprofessional <strong>&#8220;page not found error&#8221;</strong> by their browser, we want to redirect them to our custom &#8220;page not found&#8221; page.  You still with me? hehehe. Good.</p>
<p>What I have in mind today is to do this via .htaccess</p>
<p>Step 1: Find .htaccess and open it on your text editor, if you do not have .htaccess, please create one.  This file starts with a period .htaccess please save it as is.</p>
<p>Step 2: Insert the below code to you .htaccess file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">ErrorDocument <span style="color: #cc66cc;">404</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//yourwebsite/custom-error-page.html</span></pre></div></div>

<p>For error page not found error type 404(bad request) the page will redirect to your <strong>custom-error-page.html</strong>, ofcourse this should be existing and you already put some custom message for your visitors.</p>
<p>Step 3: Save your .htaccess and custom error page and upload to your server.</p>
<p>Now test your cutom error page <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  -> The End&#8230;</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/page-not-found-redirection-via-htaccess-custom-page-not-found-error-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying array values using PHP for loop</title>
		<link>http://www.iamregin.com/2010/05/displaying-array-values-using-php-for-loop/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=displaying-array-values-using-php-for-loop</link>
		<comments>http://www.iamregin.com/2010/05/displaying-array-values-using-php-for-loop/#comments</comments>
		<pubDate>Thu, 20 May 2010 12:28:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[php for loops]]></category>
		<category><![CDATA[scripting loops]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=114</guid>
		<description><![CDATA[Hello, I decided to post a basic tutorial how to display array values using PHP for loop.
please see below code:

&#60;?php
&#160;
$idata=array&#40;1,2,3,4,5,6,7,8,9,10&#41;; //integer values
$tdata=array&#40;'Nathan','Alice','Kerry','John','Alicia'&#41;; //string values
&#160;
echo 'PHP: for loop';
&#160;
for&#40;$i=1; $i&#60;=count&#40;$idata&#41;; $i++&#41;&#123;
	echo $i.', ';
&#125;
&#160;
for&#40;$t=0; $t&#60;count&#40;$tdata&#41;; $t++&#41;&#123;
	echo $tdata&#91;$t&#93;.', ';
&#125;
&#160;
?&#62;

This will output:

&#60;h2&#62;PHP: for loop&#60;/h2&#62;
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, Nathan, Alice, Kerry, John, Alicia,

let&#8217;s disect for [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Hello, I decided to post a basic tutorial how to display array values using PHP for loop.</p>
<p>please see below code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$idata</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">9</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//integer values</span>
<span style="color: #000088;">$tdata</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nathan'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Alice'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Kerry'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'John'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Alicia'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//string values</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'PHP: for loop'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$idata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">.</span><span style="color: #0000ff;">', '</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$t</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$t</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tdata</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$t</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$tdata</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$t</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">', '</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This will output:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>PHP<span style="color: #339933;">:</span> <span style="color: #b1b100;">for</span> loop<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
<span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> Nathan<span style="color: #339933;">,</span> Alice<span style="color: #339933;">,</span> Kerry<span style="color: #339933;">,</span> John<span style="color: #339933;">,</span> Alicia<span style="color: #339933;">,</span></pre></div></div>

<p>let&#8217;s disect for loop:</p>
<pre lang"PHP">
for ( initialize a counter; conditional statement; increment a counter){
	do this code;
}
</pre>
<p>First we initialize a counter &#8211; in this case 1, then create a conditional &#8211; ($value<=$number_of_array_elements) and lastly increment until condition is met.</p>
<p>Nuff said, I think everything is here for you to understand PHP&#8217;s for loop <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/displaying-array-values-using-php-for-loop/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Getting image&#8217;s height and width via JavaScript</title>
		<link>http://www.iamregin.com/2010/05/getting-images-height-and-width-via-javascript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=getting-images-height-and-width-via-javascript</link>
		<comments>http://www.iamregin.com/2010/05/getting-images-height-and-width-via-javascript/#comments</comments>
		<pubDate>Wed, 05 May 2010 18:37:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[Find image height and width]]></category>
		<category><![CDATA[find image size via Javascript]]></category>
		<category><![CDATA[get width and Height via Javascript]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=109</guid>
		<description><![CDATA[How to get image&#8217;s height and width via JavaScript

&#60;img src=&#34;PathToYourImages/image.jpg&#34; id=&#34;image&#34;&#62;
&#160;
&#60;script language=&#34;Javascript&#34;&#62;
var Height = document.getElementById&#40;image&#41;.clientHeight;
var Width = document.getElementById&#40;image&#41;.clientWidth;
/*write value*/
document.writeln&#40;&#34;Height is: &#34;+Height+&#34; and width is: &#34;+Width&#41;;
&#60;/script&#62;

Easy? yes&#8230;
]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>How to get image&#8217;s height and width via JavaScript</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;PathToYourImages/image.jpg&quot;</span> id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;image&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> Height <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>image<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">clientHeight</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> Width <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>image<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">clientWidth</span><span style="color: #339933;">;</span>
<span style="color: #009966; font-style: italic;">/*write value*/</span>
document.<span style="color: #660066;">writeln</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Height is: &quot;</span><span style="color: #339933;">+</span>Height<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; and width is: &quot;</span><span style="color: #339933;">+</span>Width<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Easy? yes&#8230;</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/getting-images-height-and-width-via-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Embedding, Adding Yahoo Messenger Status, buttons on your webpages</title>
		<link>http://www.iamregin.com/2010/05/embedding-adding-yahoo-messenger-status-buttons-on-your-webpages/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=embedding-adding-yahoo-messenger-status-buttons-on-your-webpages</link>
		<comments>http://www.iamregin.com/2010/05/embedding-adding-yahoo-messenger-status-buttons-on-your-webpages/#comments</comments>
		<pubDate>Wed, 05 May 2010 17:47:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[embedding yahomessenger status]]></category>
		<category><![CDATA[yahoo messenger]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=101</guid>
		<description><![CDATA[


QUESTION #1: How can I add or embed my Yahoo Messenger status on my web pages?
Ans:
Add the following code to your HTML

&#60;a href=&#34;ymsgr:sendIM?YOUR_YM_ID&#34;&#62;&#60;img src=&#34;http://opi.yahoo.com/online?u=YOUR_YM_ID&#38;m=g&#38;t=2&#34; border=&#34;0&#34; alt=&#34;&#34; /&#62;&#60;/a&#62;

Whereas &#8220;YOUR_YM_ID&#8221; is = to your actual YM ID
and t=2 means use the icon number 2. 
QUESTION #2: Is there any other icon?
Ans:
YES, to view complete list of Yahoo [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><a href="ymsgr:sendIM?reginpv"><img src="http://opi.yahoo.com/online?u=reginpv&amp;m=g&amp;t=2" border="0" alt="" /></a></p>
<p><a href="ymsgr:sendIM?reginpv"><img src="http://opi.yahoo.com/online?u=reginpv&amp;m=g&amp;t=1" border="0" alt="" /></a></p>
<p><a href="ymsgr:sendIM?reginpv"><img src="http://opi.yahoo.com/online?u=reginpv&#038;m=g&#038;t=3" border="0" alt="" /></a></p>
<p>QUESTION #1: How can I add or embed my Yahoo Messenger status on my web pages?</p>
<p>Ans:<br />
<strong>Add the following code to your HTML</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ymsgr:sendIM?YOUR_YM_ID&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://opi.yahoo.com/online?u=YOUR_YM_ID&amp;m=g&amp;t=2&quot;</span> border<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;0&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Whereas <strong>&#8220;YOUR_YM_ID&#8221;</strong> is = to your actual YM ID<br />
and t=2 means use the icon number 2. </p>
<p>QUESTION #2: Is there any other icon?</p>
<p>Ans:<br />
YES, to view complete list of Yahoo Messenger Icon <a href="http://iamregin.com/CustomScripts/YahooMessengerIcons.php" target="_blank">CLICK HERE</a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/embedding-adding-yahoo-messenger-status-buttons-on-your-webpages/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Excel: if empty get another value from another cell?</title>
		<link>http://www.iamregin.com/2010/05/excel-if-empty-get-another-value-from-another-cell/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=excel-if-empty-get-another-value-from-another-cell</link>
		<comments>http://www.iamregin.com/2010/05/excel-if-empty-get-another-value-from-another-cell/#comments</comments>
		<pubDate>Sun, 02 May 2010 06:23:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[excel blank cells]]></category>
		<category><![CDATA[Excel formula]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=90</guid>
		<description><![CDATA[If a cell is empty or blank, get value from another cell.
For example c1=b1, if b1 is empty or blank, get a1&#8217;s value to display inside c1.
code:

=IF&#40;ISBLANK&#40;B1&#41;,A1,B1&#41;

Sample Image(b1 is empty):

you can see above c1 value is 10 which came from a1
Sample Image(b1 has value):

Now you can see if value for b1 is there c1 will [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>If a cell is empty or blank, get value from another cell.</p>
<p>For example <strong>c1=b1</strong>, if <strong>b1</strong> is empty or blank, get <strong>a1&#8217;s</strong> value to display inside <strong>c1</strong>.</p>
<p>code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">=</span><span style="color: #b1b100;">IF</span><span style="color: #009900;">&#40;</span>ISBLANK<span style="color: #009900;">&#40;</span>B1<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>A1<span style="color: #339933;">,</span>B1<span style="color: #009900;">&#41;</span></pre></div></div>

<p>Sample Image(b1 is empty):</p>
<p><a href="http://www.iamregin.com/wp-content/uploads/2010/05/1.jpg"><img class="size-full wp-image-91 alignnone" title="excel if blank cell" src="http://www.iamregin.com/wp-content/uploads/2010/05/1.jpg" alt="excel if blank cell" width="476" height="186" /></a></p>
<p>you can see above c1 value is 10 which came from a1</p>
<p>Sample Image(b1 has value):</p>
<p><a href="http://www.iamregin.com/wp-content/uploads/2010/05/2.jpg"><img class="alignnone size-full wp-image-92" title="excel formula" src="http://www.iamregin.com/wp-content/uploads/2010/05/2.jpg" alt="excel formula" width="477" height="184" /></a></p>
<p>Now you can see if value for b1 is there c1 will display b1 instead of a1 <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  cool huh&#8230;</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/05/excel-if-empty-get-another-value-from-another-cell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Embedding video and audio on webpage, Chrome still auto plays even autoplay is set to false? there&#8217;s an easy fix!</title>
		<link>http://www.iamregin.com/2010/04/embedding-video-and-audio-on-webpage-chrome-still-auto-plays-even-autoplay-is-set-to-false-theres-an-easy-fix/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=embedding-video-and-audio-on-webpage-chrome-still-auto-plays-even-autoplay-is-set-to-false-theres-an-easy-fix</link>
		<comments>http://www.iamregin.com/2010/04/embedding-video-and-audio-on-webpage-chrome-still-auto-plays-even-autoplay-is-set-to-false-theres-an-easy-fix/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 02:25:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[autostart]]></category>
		<category><![CDATA[autostart Chrome]]></category>
		<category><![CDATA[Embedding Audio and Video in Chrome]]></category>
		<category><![CDATA[embedding media]]></category>
		<category><![CDATA[embedding media in Chrome]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=87</guid>
		<description><![CDATA[Hello, Ive noticed and sure so have you, when embedding a video or audio on a webpage, Chrome still plays automatically even autostart is set to false (autostart=&#8221;false&#8221;).
Finding a quick fix on the matter is not easy, so if you reach this post then congratulations, your luck is changing  .  Ok I&#8217;m overly [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Hello, Ive noticed and sure so have you, when embedding a video or audio on a webpage, Chrome still plays automatically even autostart is set to false (autostart=&#8221;false&#8221;).</p>
<p>Finding a quick fix on the matter is not easy, so if you reach this post then congratulations, your luck is changing <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Ok I&#8217;m overly exaggerating hehehe, but this fix is so quick and simple you gonna hate yourself WHY you did not think of it before.</p>
<p>Ok enough of that, below is the code that will autostart in Chrome but not in FF</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>embed src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.website.com/pathtomedia/myaudio.mp3&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;40&quot;</span> autostart<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span> loop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span> controller<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p>Whats lacking here is an attribute that make Chrome identify the file type, FF indentifies this automatically. Ok the solution is to add <strong>type=&#8221;audio/mpeg&#8221;</strong> and your good to go.</p>
<p>Simple huh, I&#8217;m just typing stupid things to make this post a little longer hahaha, ok view thw complete code below.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>embed src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.website.com/pathtomedia/myaudio.mp3&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;40&quot;</span> autostart<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;audio/mpeg&quot;</span> loop<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;false&quot;</span> controller<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p>NOTE: Add the type right after the autostart attribute, Thanks and you can stop pulling your hair off now <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/04/embedding-video-and-audio-on-webpage-chrome-still-auto-plays-even-autoplay-is-set-to-false-theres-an-easy-fix/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Adding space before every capital letter in a string via PHP preg_replace() and regex</title>
		<link>http://www.iamregin.com/2010/04/adding-space-before-every-capital-letter-in-a-string-via-php-preg_replace-and-regex/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=adding-space-before-every-capital-letter-in-a-string-via-php-preg_replace-and-regex</link>
		<comments>http://www.iamregin.com/2010/04/adding-space-before-every-capital-letter-in-a-string-via-php-preg_replace-and-regex/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 12:44:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[What I have learned today]]></category>
		<category><![CDATA[preg_replce()]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[space before capital letter]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=83</guid>
		<description><![CDATA[Hello again everyone, I found this great regex which is very effective in adding a space before every capital letter.  You can think a lot of things where to use this function.
So without further blah blah,  see the function below  

&#60;?php
&#160;
function SpaceBeforeCapital&#40;$string&#41;&#123;
	return preg_replace&#40;'/(?&#60;!\ )[A-Z]/', ' $0', $string&#41;;
&#125;
&#160;
$SampleString = 'ReginValerianoWebDeveloper';
&#160;
echo SpaceBeforeCapital&#40;$SampleString&#41;;
&#160;
?&#62;

Result string below:

Regin Valeriano Web [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Hello again everyone, I found this great regex which is very effective in adding a space before every capital letter.  You can think a lot of things where to use this function.</p>
<p>So without further blah blah,  see the function below <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> SpaceBeforeCapital<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(?&lt;!\ )[A-Z]/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' $0'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$SampleString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ReginValerianoWebDeveloper'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> SpaceBeforeCapital<span style="color: #009900;">&#40;</span><span style="color: #000088;">$SampleString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Result string below:</p>
<blockquote><p>
Regin Valeriano Web Developer
</p></blockquote>
<p>NOTE:  Im not the original writer of the regex I just found it on the web, I think its interesting, gave it a try and it works <img src='http://www.iamregin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  now made as a function.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/04/adding-space-before-every-capital-letter-in-a-string-via-php-preg_replace-and-regex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Introducing www.greatjobs.ph! A great and easy way to find jobs online!</title>
		<link>http://www.iamregin.com/2010/04/introducing-www-greatjobs-pha-great-and-easy-way-to-find-jobs-online/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=introducing-www-greatjobs-pha-great-and-easy-way-to-find-jobs-online</link>
		<comments>http://www.iamregin.com/2010/04/introducing-www-greatjobs-pha-great-and-easy-way-to-find-jobs-online/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 12:11:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Found]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[job openings]]></category>
		<category><![CDATA[job opportunities]]></category>
		<category><![CDATA[job vacancies]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[manila jobs]]></category>
		<category><![CDATA[Philippine jobs]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.iamregin.com/?p=76</guid>
		<description><![CDATA[For jobseekers
The site is FREE and it is open to all Jobseekers.  All you need to do  is register and you will have full, unrestricted access to the greatest  jobs in the Philippines.
But that’s not all.
This site also allows international employers from around the world  to post “work at home” job openings, [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><strong>For jobseekers</strong></p>
<p>The site is FREE and it is open to all Jobseekers.  All you need to do  is register and you will have full, unrestricted access to the greatest  jobs in the Philippines.</p>
<p>But that’s not all.</p>
<p>This site also allows international employers from around the world  to post “work at home” job openings, this is a great news for ever growing  Pinoy freelancers out there.</p>
<p><strong>For Employers</strong></p>
<p>The site is FREE and it is open to all Employers.  Register Today and  you will have full, unrestricted access to the greatest applicants in  the Philippines.</p>
<p>In addition to posting open positions on the site you are also able  to review the growing list of resumes for that new employee.</p>
<p>We know there are other sites out there but we will work hard for  your business and our number one goal is your business success!</p>
<p>So now is the time to post that open position or hire that new help.  Go to <a title="register as employer" href="http://greatjobs.ph/register.php?user=employer">Employer  Registration Page</a> to register. Remember…It’s FREE!</p>
<p><strong>GO TO <a href="http://greatjobs.ph">WWW.GREATJOBS.PH</a> FOR MORE INFO</strong></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.iamregin.com/2010/04/introducing-www-greatjobs-pha-great-and-easy-way-to-find-jobs-online/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
