<?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>TECHiE TALKS</title>
	<atom:link href="http://www.icpep.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icpep.org</link>
	<description>Just another techie stuff</description>
	<lastBuildDate>Fri, 23 Jul 2010 04:53:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Bubble Sort and Graphics.h in Dev C++</title>
		<link>http://www.icpep.org/bubble-sort-and-graphics-h-in-dev-c/</link>
		<comments>http://www.icpep.org/bubble-sort-and-graphics-h-in-dev-c/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 00:49:20 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1101</guid>
		<description><![CDATA[Lately I have been searching  this post on the net about graphics.h in dev c++ and found few resources about it .  So I decided to write how to use graphics.h in dev-c++.  I am expecting that you have already installed bloodshed dev-cpp on your machine.  Graphics.h is a header file found in borlan c [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.icpep.org/wp-content/uploads/2010/07/dev-c++.jpg"><img class="size-full wp-image-1102 aligncenter" title="dev c++" src="http://www.icpep.org/wp-content/uploads/2010/07/dev-c++.jpg" alt="dev c++" width="472" height="293" /></a></p>
<p style="text-align: justify;">Lately I have been searching  this post on the net about graphics.h in dev c++ and found few resources about it .  So I decided to write how to use graphics.h in dev-c++.  I am expecting that you have already installed bloodshed dev-cpp on your machine.  Graphics.h is a header file found in borlan c but because of its late development devcpp is now the mostly used IDE and compiler in programming c++.</p>
<p style="text-align: justify;">Below are the steps on how to get graphics.h running on your machine,</p>
<ol>
<li>download <a href="icpep.org/downloads/graphics.h">graphics.h</a> and save it to the <strong>include</strong> folder where you installed dev-cpp (C:\Dev-Cpp\include)</li>
<li>Download <a title="libbgi" href="http://www.icpep.org/downloads/libbgi.a">libbgi.a</a> and save it in the <strong>lib </strong>folder where you installed dev-cpp (C:\Dev-Cpp\lib)</li>
<li>So when you have to create a program that needs the use of graphics.h  you must instruct the linker to link in certain libraries by going to <strong>projects &gt; project options &gt; parameters tab &gt; linker column </strong>copy the lines below and paste it on that column.</li>
</ol>
<pre style="padding-left: 30px;">-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32</pre>
<p>By then you should be able to use graphics.h. As a sample I created this bubble sort algorithm as an example on how to use graphics.h in c++.<span id="more-1101"></span></p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">
<div id="_mcePaste">#include &lt;iostream&gt;</div>
<div id="_mcePaste">#include &lt;graphics.h&gt;</div>
<p>#define PIXEL_COUNT 1000<br />
#define DELAY_TIME  1  /* in milliseconds */<br />
#define CLIP_ON     1</p>
<p>//using namespace std;</p>
<p>int main () {</p>
<p>int temp, x, toSort[300], loop, isSwapped=1;<br />
/* request autodetection */<br />
int gdriver = DETECT, gmode, errorcode;</p>
<p>/* initialize graphics and local variables */<br />
initgraph(&amp;gdriver, &amp;gmode, &#8220;&#8221;);</p>
<p>/* read result of initialization */<br />
errorcode = graphresult();</p>
<p>if (errorcode != grOk) {  /* an error occurred */</p>
<p>printf(&#8220;Graphics error: %s\n&#8221;, grapherrormsg(errorcode));<br />
printf(&#8220;Press any key to halt:&#8221;);<br />
getch();<br />
exit(1);               /* terminate with an error code */</p>
<p>}</p>
<p>/* Generate the numbers */<br />
for(x=0; x&lt;300; x++) {<br />
toSort[x] = rand() % 300 + 1;<br />
}</p>
<p>for(loop=0; (loop &lt;= 300)&amp;&amp; isSwapped == 1; loop++) {<br />
isSwapped = 0;<br />
for(x=0; x&lt;300; x++) {            if(toSort[x] &gt; toSort[x+1]) {</p>
<p>//swapping of data<br />
temp = toSort[x];<br />
toSort[x] = toSort[x+1];<br />
toSort[x+1] = temp;<br />
isSwapped = 1;</p>
<p>}<br />
std::cout &lt;&lt; loop &lt;&lt; &#8220;=&gt; &#8220;&lt;&lt; x &lt;&lt; &#8220;,&#8221; &lt;&lt; toSort[x] &lt;&lt; &#8221; &#8220;;</p>
<p>putpixel(x, toSort[x], 16776960);<br />
delay(DELAY_TIME);</p>
<p>}<br />
std::cout &lt;&lt; &#8220;\n\n&#8221;;<br />
if(isSwapped == 1) {<br />
cleardevice();<br />
}<br />
//loop++;<br />
}</p>
<p>//cout &lt;&lt; endl &lt;&lt; &#8220;\n\n\n&#8221;;<br />
std::cout &lt;&lt; &#8220;Loop Count: &#8221; &lt;&lt; loop &lt;&lt; &#8220;\n\n\n&#8221;;<br />
system(&#8220;pause&#8221;);<br />
return 0;<br />
}</p>
</div>
<p style="text-align: justify;">The program will have scattered points on the screen and will form a line as the loop iterates and at the end it will display how many loops are needed to sort the randomly generated numbers.</p>
<p style="text-align: justify;">If you have problems using the functions you can refer to this <a href="http://www.cs.colorado.edu/~main/bgi/doc/">link</a>.  I hope this helps in solving your problem about dev c++ graphics.h with the <strong>bubble sort algorithm</strong>.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Bubble Sort and Graphics.h in Dev C++" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Bubble+Sort+and+Graphics.h+in+Dev+C++" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/bubble-sort-and-graphics-h-in-dev-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saving .ico in Photoshop</title>
		<link>http://www.icpep.org/saving-ico-in-photoshop/</link>
		<comments>http://www.icpep.org/saving-ico-in-photoshop/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 23:23:28 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1086</guid>
		<description><![CDATA[Adobe Photoshop is one of the most advance tools in digital image editing and for developments as well such as icons and some other stuff.  Photoshop now is on CS5 which handles several new features and one is Content-Aware Fill where you can magically fill in spaces on digital images matching the tones, lightning and noise [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1087 aligncenter" title="Photoshop" src="http://www.icpep.org/wp-content/uploads/2010/07/cs.png" alt="Photoshop" width="256" height="256" /></p>
<p style="text-align: justify;">Adobe Photoshop is one of the most advance tools in digital image editing and for developments as well such as icons and some other stuff.  Photoshop now is on CS5 which handles several new features and one is <strong>Content-Aware Fill </strong>where you can magically fill in spaces on digital images matching the tones, lightning and noise of the images making it as if it existed on the image.  You can find more of the new features on their <a href="http://www.adobe.com/products/photoshop/photoshop/whatsnew/index.html?segment=photography">site</a>.<span id="more-1086"></span></p>
<p style="text-align: justify;">Photoshop has indeed grown to be a powerful tool but one thing I noticed without it is saving a .ico file out of the images that we developing.  This made me search for plugins and happy to say that I found one and I want to <a href="http://icpep.org/downloads/ico-plugin.zip">share</a> it to everyone because it is GNU licensed and free to share and download.  All you need to do is download the file and extract the files inside the zipped file, then copy the <strong>ICOFormat.8bi </strong>file and paste it on the file formats folder found inside your photoshop folder(<em>C:\Program Files\Adobe\Adobe Photoshop CS3\Plug-Ins\File Formats</em>).  You can now then save .ico files with your photoshop.</p>
<p style="text-align: justify;">
<p style="text-align: center;"><img class="alignnone size-full wp-image-1096" title="saving ico file" src="http://www.icpep.org/wp-content/uploads/2010/07/saving-ico-file1.jpg" alt="saving ico file" width="485" height="538" /></p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Saving .ico in Photoshop" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Saving+.ico+in+Photoshop" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/saving-ico-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware PHP GD Error</title>
		<link>http://www.icpep.org/slackware-php-gd-error/</link>
		<comments>http://www.icpep.org/slackware-php-gd-error/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 01:13:29 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux Webserver]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1072</guid>
		<description><![CDATA[In the past months I was able to handle a LAMP server, this is my second time to handle a UNIX based web server but this time its a lot different because I will will be the one to install and configure the web server.  Our System administrator was the one who installed the latest [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1074 aligncenter" title="slackware" src="http://www.icpep.org/wp-content/uploads/2010/06/slackware.png" alt="" width="342" height="359" /></p>
<p style="text-align: justify;">In the past months I was able to handle a LAMP server, this is my second time to handle a UNIX based web server but this time its a lot different because I will will be the one to install and configure the web server.  Our System administrator was the one who installed the latest version of slackware which is 13.1 on the machine, so all I need to do is have the web server up and running.</p>
<p style="text-align: justify;">Our system administrator did include the x packages when he installed slackware and this caused me a problem in running PHP because it gave me several errors in GD support.  The error I get was,</p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/lib/php/extensions/gd.so&#8217; &#8211; libxcb-xlib.so.0: cannot open shared object file: No such file or directory in Unknown on line 0</div>
<p>I was able to solve the problem with the following steps taken and was based from a <a href="http://www.linuxquestions.org/questions/linux-general-1/php-gd-problems-missing-libx11-so-6-%3D-how-to-get-it-577217/">linux forum</a> I really loved.<span id="more-1072"></span><br />
Download the packages by entering the following commands,</p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">
<ul>
<li> root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/xtrans-1.0.3-noarch-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libXdmcp-1.0.2-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libXau-1.0.3-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libX11-1.1.1-i486-4.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libXt-1.0.5-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libSM-1.0.3-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libICE-1.0.3-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libXpm-3.5.6-i486-1.tgz</li>
<li>root@icpep:~# wget http://slackware.cs.utah.edu/pub/slackware/slackware-12.0/slackware/x/libxcb-1.0-i486-2.tgz</li>
</ul>
</div>
<p>After downloading the files I installed them using <strong>pkgtool</strong> and select install packages from current directory and by there it will display the packages downloaded. Here is a sample of how to install it using <strong>pkgtool</strong>,</p>
<p style="text-align: center;"><img class="size-full wp-image-1073 aligncenter" title="slackon" src="http://www.icpep.org/wp-content/uploads/2010/06/slackon.jpg" alt="" width="529" height="605" /></p>
<p>After installing the packages restart your apache and PHP GD support should be working. To check type this command,</p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">root@icpep:~#php -m</div>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Slackware PHP GD Error" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Slackware+PHP+GD+Error" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/slackware-php-gd-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change a String or Character in MySQL</title>
		<link>http://www.icpep.org/change-a-string-or-character-in-mysql/</link>
		<comments>http://www.icpep.org/change-a-string-or-character-in-mysql/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 05:00:01 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1066</guid>
		<description><![CDATA[Knowing the right MySQL statement is the most important part in having thousands of data in your database, one false move and you can&#8217;t undo things.    If you want to change a string or character in your database and doing it manually in thousands or millions of entries then that should consume all of your [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1067 aligncenter" title="mysql" src="http://www.icpep.org/wp-content/uploads/2010/04/mysql.jpg" alt="" width="300" height="225" /></p>
<p style="text-align: justify;">Knowing the right MySQL statement is the most important part in having thousands of data in your database, one false move and you can&#8217;t undo things.    If you want to change a string or character in your database and doing it manually in thousands or millions of entries then that should consume all of your time.</p>
<p style="text-align: justify;">One example scenario is when you want to change all the entries containing a character &#8216;_&#8217; to this character &#8216;-&#8217; .  All you need to do is have a backup first on that specific table or database so that whatever false move you  will be doing, you can still have the data back.  After having the backup here is the SQL syntax that you should enter:</p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">UPDATE Table SET Column = Replace(Column, &#8216;find value&#8217;, &#8216;replacement value&#8217;) WHERE xxx</div>
<p>Where in my scenario:</p>
<div style="border: 2px solid #CECECE; padding: 5px; background: #F1F1F1;">UPDATE paging SET pagename = Replace(pagename, &#8216;_&#8217;, &#8216;-&#8217;)</div>
<p>There within less than a minute I was able to change all the data containing &#8216;_&#8217;.  It saved me a lot of time and I can continue coding some other stuff rather than editing the data manually.  Hope this helps and happy coding!</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Change a String or Character in MySQL" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Change+a+String+or+Character+in+MySQL" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/change-a-string-or-character-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thunderbird To Outlook</title>
		<link>http://www.icpep.org/thunderbird-to-outlook/</link>
		<comments>http://www.icpep.org/thunderbird-to-outlook/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 09:43:03 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1055</guid>
		<description><![CDATA[I have successfully exported Thunderbird email files on ms outlook 2007 on a Windows XP platform which can also be done in windows vista and windows 7 platform.  There are several steps on how to do it. 1.  First, you need to download and install this software:  IMAPSize 2. Locate your Thunderbird emails, usually it is located in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1063 aligncenter" title="thunderbird to outlook" src="http://www.icpep.org/wp-content/uploads/2010/04/thunderbird-to-outlook1.jpg" alt="" width="378" height="194" /></p>
<p style="text-align: justify;">I have successfully exported Thunderbird email files on ms outlook 2007 on a Windows XP platform which can also be done in windows vista and windows 7 platform.  There are several steps on how to do it.</p>
<p>1.  First, you need to download and install this software:  <a href="http://www.broobles.com/imapsize/th2outlook.php">IMAPSize<br />
</a>2. Locate your Thunderbird emails, usually it is located in this directory C:\Documents and Settings\<em><strong>user</strong></em>\Application Data\Thunderbird  or  you can copy paste the directory and change the <em><strong>user</strong></em> to your account name.  When you are in the application data folder of Thunderbird navigate to the mail folder of the email account you want to convert.  Make sure you make full backup on the mail folder before doing the conversion.<span id="more-1055"></span><br />
3.  Open IMAPSize software and go to the tools menu and select <span style="text-decoration: underline;">m</span>box2eml.<img class="size-full wp-image-1056    alignleft" title="thunderbird to outlook" src="http://www.icpep.org/wp-content/uploads/2010/04/thunderbird-to-outlook.jpg" alt="" width="193" height="146" /><a href="http://www.icpep.org/wp-content/uploads/2010/04/thunderbird-to-outlook.jpg"><br />
</a>4.  Select the files you want to convert, one example is the inbox.  The inbox file that contains all you emails is the one without the .msf extension.  And this also applies for drafts, sent items and templates. Attachment will be automatically converted and goes with the .eml file</p>
<p style="text-align: justify;"><img class="size-full wp-image-1057 alignleft" title="inbox file" src="http://www.icpep.org/wp-content/uploads/2010/04/inbox-file.jpg" alt="" width="288" height="207" /><br />
5.  After conversion, open <strong>Outlook Express </strong>on<strong> Vista </strong>or<strong> Win7 </strong>platform you can user Windows Live Mail.  Setup your email account on Outlook express.<br />
6.  Highlight all the emails that was converted by IMAPSize which is in .eml format.  This should should store all the emails in your outlook express account.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: left;"><img class="size-full wp-image-1058 alignleft" title="outlook express" src="http://www.icpep.org/wp-content/uploads/2010/04/outlook-express.jpg" alt="" width="398" height="329" /><br />
6.  For the last part of the process, you can import your outlook express account on MS Outlook 2007.  On the file menu select <strong>Import and Export </strong> and click next, Select <strong>Import form another program or file </strong>and click next.  Select <strong>Outlook Express 4.x, 5.x, 6.x or windows mail</strong>.  This will automatically detect you windows outlook express email accounts and download all the mails.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Thunderbird To Outlook" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Thunderbird+To+Outlook" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/thunderbird-to-outlook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Main Domain</title>
		<link>http://www.icpep.org/getting-main-domain/</link>
		<comments>http://www.icpep.org/getting-main-domain/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:04:13 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1046</guid>
		<description><![CDATA[Do you want to extract the main domain of a URL?  Here is a function that works well and can be modified easily.  I found this function while searching for a good Regular Expression to fulfill such result. &#60;?php function get_base_domain($url)  { $debug = 0; $base_domain = ''; $G_TLD = array( 'biz','com','edu','gov','info','int','mil','name','net','org','aero','asia','cat','coop','jobs','mobi','museum', 'pro','tel','travel','arpa','root','berlin','bzh','cym','gal','geo','kid','kids','lat','mail','nyc','post','sco','web','xxx', 'nato','example','invalid','localhost','test','bitnet','csnet','ip','local','onion','uucp', 'co' [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify; padding-left: 30px;"><img class="size-full wp-image-1047 aligncenter" title="php" src="http://www.icpep.org/wp-content/uploads/2010/04/php.jpg" alt="" width="300" height="225" /></p>
<p style="text-align: justify;">Do you want to extract the main domain of a URL?  Here is a function that works well and can be modified easily.  I found this function while searching for a good Regular Expression to fulfill such result.</p>
<pre class="php"><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> get_base_domain</span><span class="phpOperator">(</span>$url<span class="phpOperator">)</span>  <span class="phpOperator">{</span>
$debug <span class="phpOperator">=</span> 0;
$base_domain <span class="phpOperator">=</span> <span class="phpString">''</span><span class="phpText">;</span>
$G_TLD <span class="phpOperator">=</span> <span class="phpFunction">array</span><span class="phpOperator">(</span>
<span class="phpString">'biz'</span>,<span class="phpString">'com'</span>,<span class="phpString">'edu'</span>,<span class="phpString">'gov'</span>,<span class="phpString">'info'</span>,<span class="phpString">'int'</span>,<span class="phpString">'mil'</span>,<span class="phpString">'name'</span>,<span class="phpString">'net'</span>,<span class="phpString">'org'</span>,<span class="phpString">'aero'</span>,<span class="phpString">'asia'</span>,<span class="phpString">'cat'</span>,<span class="phpString">'coop'</span>,<span class="phpString">'jobs'</span>,<span class="phpString">'mobi'</span>,<span class="phpString">'museum'</span>,
<span class="phpString">'pro'</span>,<span class="phpString">'tel'</span>,<span class="phpString">'travel'</span>,<span class="phpString">'arpa'</span>,<span class="phpString">'root'</span>,<span class="phpString">'berlin'</span>,<span class="phpString">'bzh'</span>,<span class="phpString">'cym'</span>,<span class="phpString">'gal'</span>,<span class="phpString">'geo'</span>,<span class="phpString">'kid'</span>,<span class="phpString">'kids'</span>,<span class="phpString">'lat'</span>,<span class="phpString">'mail'</span>,<span class="phpString">'nyc'</span>,<span class="phpString">'post'</span>,<span class="phpString">'sco'</span>,<span class="phpString">'web'</span>,<span class="phpString">'xxx'</span>,
<span class="phpString">'nato'</span>,<span class="phpString">'example'</span>,<span class="phpString">'invalid'</span>,<span class="phpString">'localhost'</span>,<span class="phpString">'test'</span>,<span class="phpString">'bitnet'</span>,<span class="phpString">'csnet'</span>,<span class="phpString">'ip'</span>,<span class="phpString">'local'</span>,<span class="phpString">'onion'</span>,<span class="phpString">'uucp'</span>,
<span class="phpString">'co'</span> <span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">// country tlds <span class="phpOperator">(</span><span class="htmlText">source</span><span class="phpOperator">:</span><span class="htmlText"> http</span><span class="phpOperator">:</span>//en<span class="phpOperator">.</span>wikipedia.org/wiki/Country_code_top-level_domain<span class="phpOperator">)</span>
</span>$C_TLD <span class="phpOperator">=</span> <span class="phpFunction">array</span><span class="phpOperator">(</span>
<span class="phpString">'ac'</span>,<span class="phpString">'ad'</span>,<span class="phpString">'ae'</span>,<span class="phpString">'af'</span>,<span class="phpString">'ag'</span>,<span class="phpString">'ai'</span>,<span class="phpString">'al'</span>,<span class="phpString">'am'</span>,<span class="phpString">'an'</span>,<span class="phpString">'ao'</span>,<span class="phpString">'aq'</span>,<span class="phpString">'ar'</span>,<span class="phpString"><span class="phpKeyword">'as'</span></span>,<span class="phpString">'at'</span>,<span class="phpString">'au'</span>,<span class="phpString">'aw'</span>,<span class="phpString">'ax'</span>,<span class="phpString">'az'</span>,
<span class="phpString">'ba'</span>,<span class="phpString">'bb'</span>,<span class="phpString">'bd'</span>,<span class="phpString">'be'</span>,<span class="phpString">'bf'</span>,<span class="phpString">'bg'</span>,<span class="phpString">'bh'</span>,<span class="phpString">'bi'</span>,<span class="phpString">'bj'</span>,<span class="phpString">'bm'</span>,<span class="phpString">'bn'</span>,<span class="phpString">'bo'</span>,<span class="phpString">'br'</span>,<span class="phpString">'bs'</span>,<span class="phpString">'bt'</span>,<span class="phpString">'bw'</span>,<span class="phpString">'by'</span>,<span class="phpString">'bz'</span>,
<span class="phpString">'ca'</span>,<span class="phpString">'cc'</span>,<span class="phpString">'cd'</span>,<span class="phpString">'cf'</span>,<span class="phpString">'cg'</span>,<span class="phpString">'ch'</span>,<span class="phpString">'ci'</span>,<span class="phpString">'ck'</span>,<span class="phpString">'cl'</span>,<span class="phpString">'cm'</span>,<span class="phpString">'cn'</span>,<span class="phpString">'co'</span>,<span class="phpString">'cr'</span>,<span class="phpString">'cu'</span>,<span class="phpString">'cv'</span>,<span class="phpString">'cx'</span>,<span class="phpString">'cy'</span>,<span class="phpString">'cz'</span>,
<span class="phpString">'de'</span>,<span class="phpString">'dj'</span>,<span class="phpString">'dk'</span>,<span class="phpString">'dm'</span>,<span class="phpString"><span class="phpKeyword">'do'</span></span>,<span class="phpString">'dz'</span>,<span class="phpString">'ec'</span>,<span class="phpString">'ee'</span>,<span class="phpString">'eg'</span>,<span class="phpString">'er'</span>,<span class="phpString">'es'</span>,<span class="phpString">'et'</span>,<span class="phpString">'eu'</span>,<span class="phpString">'fi'</span>,<span class="phpString">'fj'</span>,<span class="phpString">'fk'</span>,<span class="phpString">'fm'</span>,<span class="phpString">'fo'</span>,
<span class="phpString">'fr'</span>,<span class="phpString">'ga'</span>,<span class="phpString">'gd'</span>,<span class="phpString">'ge'</span>,<span class="phpString">'gf'</span>,<span class="phpString">'gg'</span>,<span class="phpString">'gh'</span>,<span class="phpString">'gi'</span>,<span class="phpString">'gl'</span>,<span class="phpString">'gm'</span>,<span class="phpString">'gn'</span>,<span class="phpString">'gp'</span>,<span class="phpString">'gq'</span>,<span class="phpString">'gr'</span>,<span class="phpString">'gs'</span>,<span class="phpString">'gt'</span>,<span class="phpString">'gu'</span>,<span class="phpString">'gw'</span>,
<span class="phpString">'gy'</span>,<span class="phpString">'hk'</span>,<span class="phpString">'hm'</span>,<span class="phpString">'hn'</span>,<span class="phpString">'hr'</span>,<span class="phpString">'ht'</span>,<span class="phpString">'hu'</span>,<span class="phpString">'id'</span>,<span class="phpString">'ie'</span>,<span class="phpString">'il'</span>,<span class="phpString">'im'</span>,<span class="phpString">'in'</span>,<span class="phpString">'io'</span>,<span class="phpString">'iq'</span>,<span class="phpString">'ir'</span>,<span class="phpString">'is'</span>,<span class="phpString">'it'</span>,<span class="phpString">'je'</span>,
<span class="phpString">'jm'</span>,<span class="phpString">'jo'</span>,<span class="phpString">'jp'</span>,<span class="phpString">'ke'</span>,<span class="phpString">'kg'</span>,<span class="phpString">'kh'</span>,<span class="phpString">'ki'</span>,<span class="phpString">'km'</span>,<span class="phpString">'kn'</span>,<span class="phpString">'kr'</span>,<span class="phpString">'kw'</span>,<span class="phpString">'ky'</span>,<span class="phpString">'kz'</span>,<span class="phpString">'la'</span>,<span class="phpString">'lb'</span>,<span class="phpString">'lc'</span>,<span class="phpString">'li'</span>,<span class="phpString">'lk'</span>,
<span class="phpString">'lr'</span>,<span class="phpString">'ls'</span>,<span class="phpString">'lt'</span>,<span class="phpString">'lu'</span>,<span class="phpString">'lv'</span>,<span class="phpString">'ly'</span>,<span class="phpString">'ma'</span>,<span class="phpString">'mc'</span>,<span class="phpString">'md'</span>,<span class="phpString">'mg'</span>,<span class="phpString">'mh'</span>,<span class="phpString">'mk'</span>,<span class="phpString">'ml'</span>,<span class="phpString">'mm'</span>,<span class="phpString">'mn'</span>,<span class="phpString">'mo'</span>,<span class="phpString">'mp'</span>,<span class="phpString">'mq'</span>,
<span class="phpString">'mr'</span>,<span class="phpString">'ms'</span>,<span class="phpString">'mt'</span>,<span class="phpString">'mu'</span>,<span class="phpString">'mv'</span>,<span class="phpString">'mw'</span>,<span class="phpString">'mx'</span>,<span class="phpString">'my'</span>,<span class="phpString">'mz'</span>,<span class="phpString">'na'</span>,<span class="phpString">'nc'</span>,<span class="phpString">'ne'</span>,<span class="phpString">'nf'</span>,<span class="phpString">'ng'</span>,<span class="phpString">'ni'</span>,<span class="phpString">'nl'</span>,<span class="phpString">'no'</span>,<span class="phpString">'np'</span>,
<span class="phpString">'nr'</span>,<span class="phpString">'nu'</span>,<span class="phpString">'nz'</span>,<span class="phpString">'om'</span>,<span class="phpString">'pa'</span>,<span class="phpString">'pe'</span>,<span class="phpString">'pf'</span>,<span class="phpString">'pg'</span>,<span class="phpString">'ph'</span>,<span class="phpString">'pk'</span>,<span class="phpString">'pl'</span>,<span class="phpString">'pn'</span>,<span class="phpString">'pr'</span>,<span class="phpString">'ps'</span>,<span class="phpString">'pt'</span>,<span class="phpString">'pw'</span>,<span class="phpString">'py'</span>,<span class="phpString">'qa'</span>,
<span class="phpString">'re'</span>,<span class="phpString">'ro'</span>,<span class="phpString">'ru'</span>,<span class="phpString">'rw'</span>,<span class="phpString">'sa'</span>,<span class="phpString">'sb'</span>,<span class="phpString">'sc'</span>,<span class="phpString">'sd'</span>,<span class="phpString">'se'</span>,<span class="phpString">'sg'</span>,<span class="phpString">'sh'</span>,<span class="phpString">'si'</span>,<span class="phpString">'sk'</span>,<span class="phpString">'sl'</span>,<span class="phpString">'sm'</span>,<span class="phpString">'sn'</span>,<span class="phpString">'sr'</span>,<span class="phpString">'st'</span>,
<span class="phpString">'sv'</span>,<span class="phpString">'sy'</span>,<span class="phpString">'sz'</span>,<span class="phpString">'tc'</span>,<span class="phpString">'td'</span>,<span class="phpString">'tf'</span>,<span class="phpString">'tg'</span>,<span class="phpString">'th'</span>,<span class="phpString">'tj'</span>,<span class="phpString">'tk'</span>,<span class="phpString">'tl'</span>,<span class="phpString">'tm'</span>,<span class="phpString">'tn'</span>,<span class="phpString">'to'</span>,<span class="phpString">'tr'</span>,<span class="phpString">'tt'</span>,<span class="phpString">'tv'</span>,<span class="phpString">'tw'</span>,
<span class="phpString">'tz'</span>,<span class="phpString">'ua'</span>,<span class="phpString">'ug'</span>,<span class="phpString">'uk'</span>,<span class="phpString">'us'</span>,<span class="phpString">'uy'</span>,<span class="phpString">'uz'</span>,<span class="phpString">'va'</span>,<span class="phpString">'vc'</span>,<span class="phpString">'ve'</span>,<span class="phpString">'vg'</span>,<span class="phpString">'vi'</span>,<span class="phpString">'vn'</span>,<span class="phpString">'vu'</span>,<span class="phpString">'wf'</span>,<span class="phpString">'ws'</span>,<span class="phpString">'ye'</span>,<span class="phpString">'yu'</span>,
<span class="phpString">'za'</span>,<span class="phpString">'zm'</span>,<span class="phpString">'zw'</span>,<span class="phpString">'eh'</span>,<span class="phpString">'kp'</span>,<span class="phpString">'me'</span>,<span class="phpString">'rs'</span>,<span class="phpString">'um'</span>,<span class="phpString">'bv'</span>,<span class="phpString">'gb'</span>,<span class="phpString">'pm'</span>,<span class="phpString">'sj'</span>,<span class="phpString">'so'</span>,<span class="phpString">'yt'</span>,<span class="phpString">'su'</span>,<span class="phpString">'tp'</span>,<span class="phpString">'bu'</span>,<span class="phpString">'cs'</span>,<span class="phpString">'dd'</span>,<span class="phpString">'zr'</span>
<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">// get domain
</span>>if <span class="phpOperator">(</span> <span class="phpOperator">!</span>$full_domain <span class="phpOperator">=</span><span class="htmlText"> get_url_domain</span><span class="phpOperator">(</span>$url<span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="phpKeyword">
return </span>$base_domain<span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpComment">// now the fun
</span><span class="phpComment">//<span class="phpKeyword"> break </span>up domain, reverse
</span>$DOMAIN <span class="phpOperator">=</span> <span class="phpFunction">explode</span><span class="phpOperator">(</span><span class="phpString">'<span class="phpOperator">.</span>'</span>, $full_domain<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
if </span><span class="phpOperator">(</span> $debug <span class="phpOperator">)</span> <span class="phpFunction">print_r</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">)</span><span class="phpText">;</span>
$DOMAIN <span class="phpOperator">=</span> <span class="phpFunction">array_reverse</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
if </span><span class="phpOperator">(</span> $debug <span class="phpOperator">)</span> <span class="phpFunction">print_r</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">// first check<span class="phpKeyword"> for </span>ip address
</span>>if <span class="phpOperator">(</span> <span class="phpFunction">count</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">)</span> <span class="phpOperator"><span class="phpOperator">=</span>=</span> <span class="phpNumber">4</span> &#038;amp<span class="phpText">;</span>&#038;amp<span class="phpText">;</span> <span class="phpFunction">is_numeric</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">[</span><span class="phpNumber">0</span><span class="phpOperator">]</span><span class="phpOperator">)</span> &#038;amp<span class="phpText">;</span>&#038;amp<span class="phpText">;</span> <span class="phpFunction">is_numeric</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">[</span><span class="phpNumber">3</span><span class="phpOperator">]</span><span class="phpOperator">)</span> <span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="phpKeyword">
return </span>$full_domain<span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpComment">//<span class="phpKeyword"> if </span><span class="htmlText">only </span><span class="phpNumber">2</span> domain parts, that must be our domain
</span>>if <span class="phpOperator">(</span> <span class="phpFunction">count</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">)</span> <span class="phpOperator">&lt;</span><span class="phpOperator">=</span> <span class="phpNumber">2</span> <span class="phpOperator">)</span><span class="phpKeyword"> return </span>$full_domain<span class="phpText">;</span>
<span class="phpKeyword">
if </span><span class="phpOperator">(</span><span class="htmlText"> in_</span><span class="phpFunction">array</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">[</span><span class="phpNumber">0</span><span class="phpOperator">]</span>, $C_TLD<span class="phpOperator">)</span> &#038;amp<span class="phpText">;</span>&#038;amp<span class="phpText">;</span><span class="htmlText"> in_</span><span class="phpFunction">array</span><span class="phpOperator">(</span>$DOMAIN<span class="phpOperator">[</span><span class="phpNumber">1</span><span class="phpOperator">]</span>, $G_TLD<span class="phpOperator">)</span> &#038;amp<span class="phpText">;</span>&#038;amp<span class="phpText">;</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">2</span><span class="phpOperator">]</span> <span class="phpOperator">!</span><span class="phpOperator">=</span> <span class="phpString">'www'</span> <span class="phpOperator">)</span> <span class="phpOperator">{</span>
$full_domain <span class="phpOperator">=</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">2</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">.</span>'</span> <span class="phpOperator">.</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">1</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">.</span>'</span> <span class="phpOperator">.</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">0</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
else </span><span class="phpOperator">{</span>
$full_domain <span class="phpOperator">=</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">1</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">.</span>'</span> <span class="phpOperator">.</span> $DOMAIN<span class="phpOperator">[</span><span class="phpNumber">0</span><span class="phpOperator">]</span><span class="phpText">;</span>;
<span class="phpOperator">}</span>
<span class="phpComment">// did we succeed<span class="phpOperator">?</span>
</span>>return $full_domain<span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> get_url_domain</span><span class="phpOperator">(</span>$url<span class="phpOperator">)</span>  <span class="phpOperator">{</span>
$domain <span class="phpOperator">=</span> <span class="phpString">''</span><span class="phpText">;</span>
$_URL <span class="phpOperator">=</span> <span class="phpFunction">parse_url</span><span class="phpOperator">(</span>$url<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">// sanity check
</span>>if <span class="phpOperator">(</span> <span class="phpFunction">empty</span><span class="phpOperator">(</span>$_URL<span class="phpOperator">)</span> <span class="phpOperator">|</span><span class="phpOperator">|</span> <span class="phpFunction">empty</span><span class="phpOperator">(</span>$_URL<span class="phpOperator">[</span><span class="phpString">'host'</span><span class="phpOperator">]</span><span class="phpOperator">)</span> <span class="phpOperator">)</span>  <span class="phpOperator">{</span>
$domain <span class="phpOperator">=</span> <span class="phpString">''</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
else </span><span class="phpOperator">{</span>
$domain <span class="phpOperator">=</span> $_URL<span class="phpOperator">[</span><span class="phpString">'host'</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpKeyword">
return </span>$domain<span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span></pre>
<p>To test the code we can use the function,</p>
<pre class="php">$url  <span class="phpOperator">=</span> <span class="phpString">'http<span class="phpOperator">:</span><span class="phpComment">//www<span class="phpOperator">.</span>icpep.org'</span><span class="phpText">;</span>
</span><span class="phpFunction">echo</span> get_base_domain<span class="phpOperator">(</span>$url<span class="phpOperator">)</span> <span class="phpText">;</span> // icpep.org</pre>
<p><a href="http://icpep.org/wp-content/uploads/files/get.main.domain.txt">Click here to download</a>.</p>
<p style="text-align: justify;">This code really helped me a lot.  There are a lot of Regular expressions out there but this simple approach can break all those head breaking expressions.  Btw, this function is free of use and is under GNU licensing.   Hope this functions is of big help to you also, happy coding!</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Getting Main Domain" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Getting+Main+Domain" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/getting-main-domain/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PLDT&#8217;s Port 25 (SMTP)</title>
		<link>http://www.icpep.org/pldts-port-25-smtp/</link>
		<comments>http://www.icpep.org/pldts-port-25-smtp/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 14:27:41 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1040</guid>
		<description><![CDATA[Today, a friend and a colleague of mine called me and questioned me why she can&#8217;t send emails using her mail client which is Incredimail which is one cool mail client because of the effects and animation.  It really bothered me a lot because I can&#8217;t solve the problem without being there in the situation [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1043 aligncenter" title="email" src="http://www.icpep.org/wp-content/uploads/2010/04/email.jpg" alt="" width="485" height="371" /></p>
<p style="text-align: justify;">Today, a friend and a colleague of mine called me and questioned me why she can&#8217;t send emails using her mail client which is Incredimail which is one cool mail client because of the effects and animation.  It really bothered me a lot because I can&#8217;t solve the problem without being there in the situation and it is hard to explain things using a phone. So I went over to her place and to find out that PLDT changed their SMTP port to 587 which is not the usual port of SMTP.  But this is not only the solution, outgoing mail server should also be changed to smtpdsl4.pldtdsl.net instead of using your own outgoing mail server(<em>mail.icpep.org</em>).</p>
<p style="text-align: justify;">This has become an issue but still PLDT has no action for this.  This is really one problem especially to those people who are not that techie.  Hope PLDT will change it back to the usual port and find other ways on how to solve the spamming issues.</p>
<p style="text-align: justify;">To summarize it, you can configure your mail clients using the following information:</p>
<p style="text-align: justify; padding-left: 30px;"><strong>Outgoing mail server SMTP: </strong>smtpdsl4.pldtdsl.net<br />
<strong>UNCHECK</strong> &#8211; My outgoing server (SMTP) requires authentication<br />
<strong>USE Port:</strong> 587</p>
<p style="text-align: justify;">Hope this helps in solving your problem.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for PLDT's Port 25 (SMTP)" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+PLDT's+Port+25+(SMTP)" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/pldts-port-25-smtp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Boost Wireless Signal</title>
		<link>http://www.icpep.org/boost-wireless-signal/</link>
		<comments>http://www.icpep.org/boost-wireless-signal/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 12:36:17 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1028</guid>
		<description><![CDATA[If you want to boost the signal of your wireless linksys router all you need is configure the router.  You can type on the browser 192.168.1.1 which is the default IP address assigned on the router.   After logging in you can go to wireless then click advance settings. Most configuration in this area is based [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a style="border: 0px;" href="http://www.icpep.org/wp-content/uploads/2010/02/wireless-set-up.jpg"><img class="size-full wp-image-1029 aligncenter" style="border: 0px;" title="wireless set-up" src="http://www.icpep.org/wp-content/uploads/2010/02/wireless-set-up.jpg" alt="" width="576" height="364" /></a></p>
<p>If you want to boost the signal of your wireless linksys router all you need is configure the router.  You can type on the browser 192.168.1.1 which is the default IP address assigned on the router.   After logging in you can go to <strong>wireless </strong>then click <strong>advance settings. </strong>Most configuration in this area is based on default configuration, change the following value.</p>
<ul>
<li>Beacon Interval &#8211; 50</li>
<li>Fragmentation Threshold &#8211; 2304</li>
<li>RTS Threshold &#8211; 2304</li>
</ul>
<p>After setting the values you can save the configuration and turn off the router for several seconds.  Turn it on again to use the changes made on your router.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Boost Wireless Signal" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Boost+Wireless+Signal" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/boost-wireless-signal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Slackware Linux E-book</title>
		<link>http://www.icpep.org/slackware-linux-e-book/</link>
		<comments>http://www.icpep.org/slackware-linux-e-book/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 14:55:39 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ebook]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1020</guid>
		<description><![CDATA[Knowing a Linux distro is one asset of a network administrator, since then I seemed to be a die hard fan of knowing Linux.  The first linux distro I used was Red Hat and from the first time I saw it I was so amazed and at the same time surprised that such operating system [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1021 aligncenter" title="Slackware-Linux" src="http://www.icpep.org/wp-content/uploads/2009/12/Slackware-Linux.jpg" alt="Slackware-Linux" width="170" height="170" /></p>
<p style="text-align: center;">
<p style="text-align: justify;">Knowing a Linux distro is one asset of a network administrator, since then I seemed to be a die hard fan of knowing Linux.  The first linux distro I used was Red Hat and from the first time I saw it I was so amazed and at the same time surprised that such operating system exist.  By then I was a great fan of linux but sad to say I seldomly use the operating system because most of the tools used in school and work is windows based, though it can be ran through wine but running it in windows is different.</p>
<p style="text-align: justify;">Lately, my friends and colleagues installed a transparent proxy used for filtering sites accessed within the network.  They explained to me how the proxy functions and it was a very big interest to me especially that linux was involved.</p>
<p style="text-align: justify;">This was also a coincidence that in the previous week I was able to download the latest version of Slackware Linux v13.O.  I tried to install it but facing it in text based is something new to me because the previous flavors of linux I used comes with a graphical user interface making it easy for me to install and configure stuff. <span id="more-1020"></span></p>
<p style="text-align: justify;">So the first step I made was finding an ebook for slackware and I got lucky that surfing deeper in the net I found version 2 of Slackware.  Since the resources is so scarce I decided to upload the ebook here and have an easy download for it to help also others and have them a reference.  So if this is also your first time to start with Linux Slackware, let us journey together in finding the power of Linux Slackware in Network administration.  Hoping that we can share ideas on how to improve communication a lot safer and a lot faster.  Below is the link where you can download the ebook.</p>
<p style="text-align: justify;"><a href="http://www.icpep.org/ebook/slackbook.zip"><img class="alignnone size-full wp-image-1022" title="winzip" src="http://www.icpep.org/wp-content/uploads/2009/12/winzip.gif" border="0" alt="winzip" width="27" height="27" />Download Slacware Ebook V2.O </a></p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Slackware Linux E-book" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Slackware+Linux+E-book" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/slackware-linux-e-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filezilla Saved Passwords</title>
		<link>http://www.icpep.org/filezilla-saved-passwords/</link>
		<comments>http://www.icpep.org/filezilla-saved-passwords/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 07:26:09 +0000</pubDate>
		<dc:creator>paparts</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.icpep.org/?p=1015</guid>
		<description><![CDATA[Filezilla is an FTP Client used for transferring files from one host to the other or is used to exchange and manipulate files over a TCP/IP based network.  It is a free software downloadable on their official website filezilla-project.org.  Filezilla is one secure FTP client and so far the best FTP Client I have used.  [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1017 aligncenter" title="FileZilla" src="http://www.icpep.org/wp-content/uploads/2009/12/FileZilla.png" alt="FileZilla" width="108" height="108" /></p>
<p style="text-align: center;">
<p style="text-align: justify;">Filezilla is an FTP Client used for transferring files from one host to the other or is used to exchange and manipulate files over a TCP/IP based network.  It is a free software downloadable on their official website filezilla-project.org.  Filezilla is one secure FTP client and so far the best FTP Client I have used.  I already have tried several software before like SmartFTP.  SmartFTP is easy to use but it is not a free software, you need to buy it so you can use it.<span id="more-1015"></span></p>
<p style="text-align: justify;">Filezilla has a simple user interface and for the first time I used it,  it feels like I have been using the software for a while.</p>
<p style="text-align: justify;">You can store and manage your Websites using Filezilla with their site manager.  When we have a lot of sites to manage and forget the password we tend to search our mails again and look for the password because as what they say that you can not view your password in filezilla.   We&#8217;ll you&#8217;re wrong, passwords in filezilla can be viewed. If you have saved the login information on the site manager the here are some simple steps on how to view them .  First open filezilla and on the file menu Click Export and you will be prompted with 3 options, you can click the 3 options if you needed them.  But for now you can check the option Export Site Manager Entries.  Go to the directory where you saved the file FileZilla.xml.  Open the file using notepad or wordpad and there you can view your saved passwords.</p>
<p style="text-align: justify;">I hope I saved your day and always remember not to let anyone access your private files, Stay Secured!</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="allajosephcagadas@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Can You Buy Me a Beer? for Filezilla Saved Passwords" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://www.icpep.org/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="Buy Me a Beer" title="Buy Me a Beer" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=allajosephcagadas@gmail.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Can+You+Buy+Me+a+Beer?+for+Filezilla+Saved+Passwords" target="paypal">Did find the post very useful? Maybe you want to buy me a glass of beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.icpep.org/filezilla-saved-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.789 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-29 12:11:31 -->
