<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>IamRegin.com</title>
	<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>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Importing large databases on Wamp5 PHPmyAdmin, how?</title>
		<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>
		<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>
			</item>
	<item>
		<title>How to set Webserver Directory Index via .htaccess</title>
		<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>
		<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>
			</item>
	<item>
		<title>Joomla 404s redirect</title>
		<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>
		<link>http://www.iamregin.com/2010/08/161/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=161</link>
			</item>
	<item>
		<title>Creating your own captcha images, security images on the fly</title>
		<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>
		<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>
			</item>
	<item>
		<title>How to enable GD library on WAMP5 &#8211; simplier than you think&#8230;</title>
		<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>
		<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>
			</item>
	<item>
		<title>Youtube embed code to pass w3c HTML validation? yes there&#8217;s a solution, see here!</title>
		<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>
		<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>
			</item>
	<item>
		<title>Javascript concatenates instead of adding two form values? There&#8217;s an easy solution: parseInt() Javascript function</title>
		<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>
		<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>
			</item>
	<item>
		<title>How to customize Magento&#8217;s currency symbol?</title>
		<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>
		<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>
			</item>
	<item>
		<title>Where is Magento&#8217;s Customer Login Template?</title>
		<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>
		<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>
			</item>
	<item>
		<title>Validating textfield to accept numbers and letters only, via Javascript</title>
		<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>
		<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>
			</item>
	<item>
		<title>How can I use custom font to my website?</title>
		<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>
		<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>
			</item>
	<item>
		<title>How will I know if im on Joomla! home page or in innner page?</title>
		<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>
		<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>
			</item>
	<item>
		<title>Page not found redirection via .HTACCESS, Custom &#8220;page not found&#8221; error page</title>
		<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>
		<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>
			</item>
	<item>
		<title>Displaying array values using PHP for loop</title>
		<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>
		<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>
			</item>
	<item>
		<title>Getting image&#8217;s height and width via JavaScript</title>
		<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>
		<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>
			</item>
	<item>
		<title>Embedding, Adding Yahoo Messenger Status, buttons on your webpages</title>
		<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>
		<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>
			</item>
	<item>
		<title>Excel: if empty get another value from another cell?</title>
		<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>
		<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>
			</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>
		<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>
		<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>
			</item>
	<item>
		<title>Adding space before every capital letter in a string via PHP preg_replace() and regex</title>
		<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>
		<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>
			</item>
	<item>
		<title>Introducing www.greatjobs.ph! A great and easy way to find jobs online!</title>
		<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>
		<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>
			</item>
</channel>
</rss>
