<?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>Pacecode Blog</title>
	<atom:link href="http://www.pacecode.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pacecode.com/blog</link>
	<description>Tips, Scripts and More...</description>
	<lastBuildDate>Sat, 03 Dec 2011 09:45:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Simple steps to set Master / Slave replication in MySQL Database</title>
		<link>http://www.pacecode.com/blog/2011/12/03/simple-steps-to-set-master-slave-replication-in-mysql-database/</link>
		<comments>http://www.pacecode.com/blog/2011/12/03/simple-steps-to-set-master-slave-replication-in-mysql-database/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 09:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[master slave configuration in mysql]]></category>
		<category><![CDATA[master slave replication]]></category>
		<category><![CDATA[mysql binary log activation]]></category>
		<category><![CDATA[mysql latest news]]></category>
		<category><![CDATA[mysql log activation]]></category>
		<category><![CDATA[mysql questions]]></category>
		<category><![CDATA[simple master slave configurations]]></category>
		<category><![CDATA[sql master slave]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=919</guid>
		<description><![CDATA[Why i have to do master-slave replication using MySQL? 1. One of the biggest advantages to have master-slave set up in MySQL is to be able to use master for all of the inserts, update and delete queries and slave for select queries. This will most probably speed up your application without having to diving [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why i have to do master-slave replication using MySQL?</strong></p>
<p>1. One of the biggest advantages to have master-slave set up in MySQL is to be able to use master for all of the inserts, update and delete queries and slave for select queries. This will most probably speed up your application without having to diving into optimizing all the queries or buying more hardware.</p>
<p>2. Do backups from slave: One of the advantages people overlook is that you can use MySQL slave to do backups from. That way site is not affected at all when doing backups.</p>
<p><strong>Goal: </strong>Master DB - Use db only for insert,delete and updated queries<br />
      Slave DB  - Use db only for select queries</p>
<p>There are several Master-Slave replication available in MySQL. Below is the one of the best Master-Slave replication.</p>
<p><strong>Note: </strong></p>
<p>1. Below configuration is only for a single database replication.<br />
2. Do the step 1 and step 2 in your master server and step 3 and step 4 slave servers.<br />
3. Before doing all steps, you must create database and repective tables in your master and slave server.</p>
<p><strong>Step 1: (Activate binary(bin) log in MySQL)</strong></p>
<p>vi /etc/my.cnf<br />
===============<br />
log-bin        = mysql-bin<br />
binlog-do-db    = databasename // give your database name<br />
server-id    = 1 // unique id depend upon your servers</p>
<p><strong>Step 2: (Creating a new user in Master) </strong></p>
<p>In mysql... login as root user.<span id="more-919"></span></p>
<p>CREATE USER username;<br />
GRANT replication SLAVE on *.* TO 'username'@'%' IDENTIFIED BY 'password'; </p>
<p><strong>Step 3: </strong></p>
<p>vi /etc/my.cnf<br />
==============</p>
<p>server-id        = 2<br />
master-host        = master ip address<br />
master-user        = username<br />
master-password        = password<br />
master-connect-retry    = 60<br />
replicate-do-db        = databasename</p>
<p><strong>Step 4:<br />
</strong><br />
In mysql console...</p>
<p>show slave status;<br />
start slave;</p>
<p>Hope this will help you!!!  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2011/12/03/simple-steps-to-set-master-slave-replication-in-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Execute php codes in your WordPress Page without Plug-ins!</title>
		<link>http://www.pacecode.com/blog/2011/10/30/execute-php-codes-in-your-wordpress-page-without-plug-ins/</link>
		<comments>http://www.pacecode.com/blog/2011/10/30/execute-php-codes-in-your-wordpress-page-without-plug-ins/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 08:42:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[create php pages in wordpress]]></category>
		<category><![CDATA[create wordpress templates]]></category>
		<category><![CDATA[execute php in wordpress pages]]></category>
		<category><![CDATA[steps to create wordpress php pages]]></category>
		<category><![CDATA[write php code in wp pages]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=906</guid>
		<description><![CDATA[Below are the simple steps to create a WordPress Page with capability to execute php code without any wordpress plug-ins! Step1 :  Goto your theme directory and create a page  template as follows in the screen shot! Step 2:  Save this file in your current theme directory. Step 3:  Go to WordPress Admin panel -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the simple steps to create a WordPress Page with capability to execute php code without any wordpress plug-ins!</p>
<p>Step1 :  Goto your theme directory and create a page  template as follows in the screen shot!</p>
<p><a href="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-1.jpg"><img class="aligncenter size-medium wp-image-907" title="create php pages - 1" src="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-1-300x231.jpg" alt="" width="300" height="231" /></a></p>
<p>Step 2:  Save this file in your current theme directory.<br />
<span id="more-906"></span><br />
Step 3:  Go to WordPress Admin panel -&gt; dashboard -&gt; Pages -&gt; Add New</p>
<p>Step 4:  Choose the template that you have created and publish!</p>
<p><a href="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-2.jpg"><img class="aligncenter size-medium wp-image-908" title="create php pages - 2" src="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-2-300x189.jpg" alt="" width="300" height="189" /></a></p>
<p>Step 5: You can see the published page in your site!</p>
<p><a href="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-3.jpg"><img class="aligncenter size-medium wp-image-909" title="create php pages - 3" src="http://www.pacecode.com/blog/wp-content/uploads/2011/10/create-php-pages-3-300x134.jpg" alt="" width="300" height="134" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2011/10/30/execute-php-codes-in-your-wordpress-page-without-plug-ins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-domain communications with JSONP using JavaScript and jQuery!</title>
		<link>http://www.pacecode.com/blog/2011/09/01/cross-domain-communications-with-jsonp-using-javascript-and-jquery/</link>
		<comments>http://www.pacecode.com/blog/2011/09/01/cross-domain-communications-with-jsonp-using-javascript-and-jquery/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 15:53:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[client side cross domain request]]></category>
		<category><![CDATA[cross domain ajax request]]></category>
		<category><![CDATA[cross domain request]]></category>
		<category><![CDATA[cross domain request types]]></category>
		<category><![CDATA[json ajax request]]></category>
		<category><![CDATA[json techniques]]></category>
		<category><![CDATA[jsonp for cross domain request]]></category>
		<category><![CDATA[jsonp request using prototype]]></category>
		<category><![CDATA[jsonp using javascript]]></category>
		<category><![CDATA[jsonp using jquery]]></category>
		<category><![CDATA[simple jsonp request]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=895</guid>
		<description><![CDATA[Asynchronous JavaScript and XML (Ajax) is the key technology driving the new generation of Web sites, popularly termed as Web 2.0 sites.Ajax allows for data retrieval in the background without interfering with the display and behavior of the Web application. Data is retrieved using the XMLHttpRequest function, which is an API that lets client-side JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Asynchronous JavaScript and XML (Ajax) is the key technology driving the new generation of Web sites, popularly termed as Web 2.0 sites.Ajax allows for data retrieval in the background without interfering with the display and behavior of the Web application. Data is retrieved using the XMLHttpRequest function, which is an API that lets client-side JavaScript make HTTP connections to remote servers.</p>
<p>This approach, however, does not allow cross-domain communication because of restrictions imposed by the browser. If you try to request data from a different domain, you will get a security error.</p>
<p><strong>The same-origin policy limitations:</strong></p>
<p>The same-origin policy prevents a script loaded from one domain from getting or manipulating properties of a document from another domain. That is, the domain of the requested URL must be the same as the domain of the current Web page.</p>
<p><strong>How to resolve?</strong></p>
<p><em><strong>Technique 1:</strong></em></p>
<p>One relatively simple way to overcome this limitation is to have the Web page request data from the Web server it originates from, and to have the Web server behave as a proxy relaying the request to the actual third-party servers. Although widely used, this technique isn’t scalable.</p>
<p><strong><em>Technique 2:</em></strong></p>
<p>Another way is to use frame elements to create new areas in the current Web page, and to fetch any third-party content using GET requests. After being fetched, however, the content in the frames would be subject to the same-origin policy limitations.</p>
<p><strong><em>Technique 3 (Using JSONP):</em></strong></p>
<p>A more promising way to overcome this limitation is to insert a dynamic script element in the Web page, one whose source is pointing to the service URL in the other domain and gets the data in the script itself. When the script loads, it executes.<br />
It works because the same-origin policy doesn’t prevent dynamic script insertions and treats the scripts as if they were loaded from the domain that provided the Web page. But if this script tries to load a document from yet another domain, it will fail. Fortunately, you can improve this technique by adding JavaScript Object Notation (JSON) to the mix.</p>
<p><em><strong>JSONP Using Javasript:</strong></em></p>
<p><em><strong>Your client-side code:</strong></em></p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;

&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;jsonp&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;span&gt;&lt;/span&gt;
&lt;script&gt;
//this function is the callback, it needs to be a global variable
function readResponse(response){
document.getElementsByTagName('SPAN')[0].innerHTML = response.time + ' is from  php file';
console.log(response);
}
(function(){
//note the "readResponse" at the end
var src = 'http://www.your-cross-domain.com/index.php?id=18&amp;callback=readResponse',
script = document.createElement('SCRIPT');
script.src = src;
document.body.appendChild(script);
})();

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><strong><em>Your server-side coding:</em></strong></p>
<pre>&lt;?php
$array = array("time"=&gt;time());
if($_GET['callback']){
header('Content-type: application/json');
echo $_GET['callback']."(".json_encode($array).")";
exit();
}
?&gt;</pre>
<p><strong><em>JSONP using jQuery:</em></strong></p>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style&gt;img{ height: 100px; float: left; }&lt;/style&gt;<br />
&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id="images"&gt;<br />
&lt;/div&gt;<br />
&lt;script&gt;<br />
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?", {<br />
tags: "cat",<br />
tagmode: "any",<br />
format: "json"<br />
}, function (data) {<br />
$.each(data.items, function (i, item) {<br />
$("&lt;img/&gt;").attr("src", item.media.m).appendTo("#images");<br />
if (i == 3) return false;<br />
});<br />
});<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2011/09/01/cross-domain-communications-with-jsonp-using-javascript-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need RSS feed parser for a wordpress site?</title>
		<link>http://www.pacecode.com/blog/2010/08/01/need-rss-feed-parser-for-a-wordpress-site/</link>
		<comments>http://www.pacecode.com/blog/2010/08/01/need-rss-feed-parser-for-a-wordpress-site/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 17:03:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php interview questions]]></category>
		<category><![CDATA[php questions]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[atom feed to html parser]]></category>
		<category><![CDATA[download rss feed parser]]></category>
		<category><![CDATA[download wordpress rss feed plugin]]></category>
		<category><![CDATA[free rss feed parser]]></category>
		<category><![CDATA[magpie rss feed atom parser]]></category>
		<category><![CDATA[magpie rss parser]]></category>
		<category><![CDATA[mappie wordpress rss feed parser]]></category>
		<category><![CDATA[wordpress rss feed parser]]></category>
		<category><![CDATA[wordpress rss feed plugin]]></category>
		<category><![CDATA[xml to html parser]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=874</guid>
		<description><![CDATA[Importing and displaying external RSS feeds on your site is a great way to share your online activity with your visitors. If you are active on Flickr, Delicious, Twitter, or Tumblr, your visitors will enjoy staying current with your updates. Many social media sites provide exclusive feeds for user-generated content that may be imported and [...]]]></description>
			<content:encoded><![CDATA[<p>Importing and displaying external RSS  feeds on your site is a great way to share your online activity with your visitors. If you are active on Flickr, Delicious, Twitter, or Tumblr, your visitors will enjoy staying current with your updates. Many social media sites provide exclusive feeds for user-generated content that may be imported and displayed on virtually any web page. In this article, you will learn three ways to import and display feed content on your WordPress-powered website — without installing yet another plugin.</p>
<li> Importing and displaying feeds with WordPress &amp; Magpie</li>
<p><strong>What is magpie?</strong><br />
MagpieRSS is an XML-based (expat) RSS parser in PHP. WordPress uses Magpie to parse RSS and Atom feeds and display them on your website. Magpie parses feeds for two different WordPress functions.</p>
<ul>
<li>wp_rss() - fetches and parses feeds for instant</li>
<li>fetch_rss() - fetches and parses feeds for advanced</li>
</ul>
<p>Ref Site: <a href="http://bit.ly/10DRni">Readmore</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2010/08/01/need-rss-feed-parser-for-a-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Password Text in Password Input Field</title>
		<link>http://www.pacecode.com/blog/2010/04/24/show-password-text-in-password-input-field/</link>
		<comments>http://www.pacecode.com/blog/2010/04/24/show-password-text-in-password-input-field/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 16:24:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[facebook javascript]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[facebook like password field]]></category>
		<category><![CDATA[jquery password text change]]></category>
		<category><![CDATA[js password text change]]></category>
		<category><![CDATA[password text in password field]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=864</guid>
		<description><![CDATA[As you know, the user login box of the website contains the following fields username and password. Furthermore, most of them put the “Username” inside user name field and “********” inside password field to save the space within designing.In this post I’ll show you how to show “Password” text in the password field. It doesn’t [...]]]></description>
			<content:encoded><![CDATA[<p>As you know, the user login box of the website contains the following fields username and password. Furthermore, most of them put the “Username” inside user name field and “********” inside password field to save the space within designing.In this post I’ll show you how to show “Password” text in the password field. It doesn’t actually does so but this tips will make it looks like so.</p>
<p><strong>How it's done</strong></p>
<p>The type of field cannot be changed with Javascript from type="text" to type="password" so there are actually two fields for the password: a regular password field, and a second plain text field with the default "Password" value.</p>
<p>When the page is loaded the CSS makes the plain text field hidden. Then the jQuery / js makes the password field hidden and the plain text field visible. It's best to do it this way so if Javascript is not enabled (or there's a Javascript error which causes the rest of the script to stop running) then the user still has a regular password field with obscured text.</p>
<p>When the user clicks the plain text field, the jQuery / JS code makes the plain text field hidden, the password field visible and puts focus on the password field. On blur, if the password field contains an empty value the plain text field is restored as the visible one to show the default value.</p>
<p><a href="http://www.pacecode.com/test.html" target="_blank">Demo</a></p>
<p><a href="http://www.pacecode.com/password-text-change.zip">Download </a>(Both jQuery type and js type)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2010/04/24/show-password-text-in-password-input-field/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ajax PHP Flat Calendar &#8211; Customizable PHP based event Calendar</title>
		<link>http://www.pacecode.com/blog/2009/04/26/ajax-php-calender-event-calendar/</link>
		<comments>http://www.pacecode.com/blog/2009/04/26/ajax-php-calender-event-calendar/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 14:40:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ajax calendar]]></category>
		<category><![CDATA[php calendar]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[ajax event calendar]]></category>
		<category><![CDATA[ajax php flat calendar]]></category>
		<category><![CDATA[customizable php flat calendar]]></category>
		<category><![CDATA[easy php calendar]]></category>
		<category><![CDATA[php flat type calendar]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=97</guid>
		<description><![CDATA[Are you looking for php based calendar script for your site? Here is the download link for this calendar. Hope this will help for you! Demo: AJAX PHP FLAT CALENDER Features: Ajax based PHP Calendar - No page reloading and Flat type calendar. Simple in Coding - Used very basic php and ajax script Easy [...]]]></description>
			<content:encoded><![CDATA[<p>Are you looking for php based calendar script for your site?</p>
<p><a href="http://www.pacecode.com/blog/wp-content/uploads/2009/04/ajaxcalender.zip">Here is the download link for this calendar</a>. Hope this will help for you!</p>
<p>Demo: <a title="Ajax Flat Calender Demo" href="http://pacecode.com/blog/ajax-calendar-demo/">AJAX PHP FLAT CALENDER</a></p>
<p><a href="http://www.pacecode.com/blog/wp-content/uploads/2009/04/ajax-php-calendar.jpg"><img class="alignright size-medium wp-image-98" title="ajax-php-calendar" src="http://www.pacecode.com/blog/wp-content/uploads/2009/04/ajax-php-calendar-300x163.jpg" alt="" width="300" height="163" /></a><br />
Features:</p>
<ol>
<li>Ajax based PHP Calendar - No page reloading and Flat type calendar.</li>
<li>Simple in Coding - Used very basic php and ajax script</li>
<li>Easy to customize for your web based php project.</li>
<li>Completely free to download and free to modify this script.</li>
<li>It works with PHP4 and PHP 5</li>
</ol>
<p>Installation:</p>
<ol>
<li>Extract this folder to your server directory.</li>
<li>Point out the directory(ajaxcalender) in your browser.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2009/04/26/ajax-php-calender-event-calendar/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Important MySQL Questions and Answers</title>
		<link>http://www.pacecode.com/blog/2008/12/25/important-mysql-questions-and-answers/</link>
		<comments>http://www.pacecode.com/blog/2008/12/25/important-mysql-questions-and-answers/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 14:56:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[interview questions]]></category>
		<category><![CDATA[mysql questions]]></category>
		<category><![CDATA[php questions]]></category>
		<category><![CDATA[important mysql questions with answers]]></category>
		<category><![CDATA[interviews question in mysql]]></category>
		<category><![CDATA[join queries in mysql]]></category>
		<category><![CDATA[mysql interview questions]]></category>
		<category><![CDATA[mysql questions and answers]]></category>
		<category><![CDATA[mysql tips and answers]]></category>
		<category><![CDATA[php and mysql questions]]></category>
		<category><![CDATA[subqueries in mysql]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=94</guid>
		<description><![CDATA[How many types of join are supported by mysql? Which are they? Explain: ans: there are three types of joins supported in mysql as inner, right and left. The inner join displays all the rows from both tables where match is found. Left join returns all the rows from first table even if the match [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How many types of join are supported by mysql? Which are they? Explain:</strong></p>
<p><strong>ans: </strong><span style="color: #333399;">there are three types of joins supported in mysql as inner, right and left.<br />
The inner join displays all the rows from both tables where match is found.<br />
Left join returns all the rows from first table even if the match is not found in second table.<br />
While the right join returns all the rows from second table even if match is not found in first table.</span></p>
<p><strong>What are the advantages of mysql comparing with oracle?</strong></p>
<p><span style="color: #333399;">MySql has many advantages in comparison to Oracle.</span></p>
<p><span style="color: #333399;">1 - MySql is Open source, which can be available any time</span></p>
<p><span style="color: #333399;">2 - MySql has no cost of development purpose.</span></p>
<p><span style="color: #333399;">3 - MySql has most of features , which oracle provides</span></p>
<p><span style="color: #333399;">4 - MySql day by day updating with new facilities.</span></p>
<p><span style="color: #333399;">5 - Good for small application.</span></p>
<p><span style="color: #333399;">6 - easy to learn and to become master.</span></p>
<p><span style="color: #333399;">7 - MySql has a good power these days.</span></p>
<p><span style="color: #333399;">even though MySql having so many advantages, Oracle is best database ever in Software development.</span></p>
<p><strong>What are the limitations of <a href="#">mysql</a> in Comparison of <a href="#">Oracle</a>?</strong></p>
<ul class="unIndentedList">
<li> <span style="color: #333399;">Mysql supports six different types of tables, four of which do not support transactions (MyISAM, MERGE, ISAM, and HEAP)</span></li>
<li><span style="color: #333399;"> MySQL only supports one index type</span></li>
<li><span style="color: #333399;"> Unlike Oracle, MySQL date data types can store invalid dates, do not support time zones, and the precision of time values is limited to one second.</span></li>
</ul>
<p><strong>How many drivers in <a href="javascript:void(0)">MYSQL</a>?</strong></p>
<p><span style="color: #333399;">There are eleven drivers in MYSQL .Six of them from MySQL AB and five by MYSQL Communities. They are1.PHP Driver2.ODBC Driver3.JDBC Driver4.ado.net5.mxj6.CAPI1PHP DRIVER2.PERL DRIVER3.PYTHON DRIVER4.RUBY DRIVER5.C++ WRAPPER</span></p>
<p><strong>How are triggers created in MySQL?</strong></p>
<p><span style="color: #333399;">CREATE TRIGGER `tgr_name` AFTER UPDATE ON `addresses` FOR EACH ROW begin</span></p>
<p><span style="color: #333399;">update products set countryName = new.countryName where products.shippingAddressId = old.id;</span></p>
<p><span style="color: #333399;">end;</span><span id="more-94"></span></p>
<p><strong>Use of triggers in MySQL:</strong></p>
<p><span style="color: #333399;">Triggers are programmable events that react to queries and reside directly on the database server. Triggers can be executed before or after INSERT, UPDATE or DELETE statements.</span></p>
<p><span style="color: #333399;"><strong>Ref:</strong> <a href="http://www.digitalpropulsion.org/Programming/Triggers_in_MySQL_5_0">http://www.digitalpropulsion.org/Programming/Triggers_in_MySQL_5_0</a></span></p>
<p><span style="color: #000000;"><strong>What are the data types available in MySQL?</strong></span></p>
<p><span style="color: #333399;">DATA TYPES in mysql </span></p>
<p><span style="color: #333399;"><strong>varchar </strong>=&gt; A variable section from 0 to 255 characters long.</span></p>
<p><span style="color: #333399;"><strong>tinyint</strong> =&gt; A string with a maximum length of 255 characters.</span></p>
<p><span style="color: #333399;"><strong>text</strong> =&gt; A string with a maximum length of 65535 characters.</span></p>
<p><span style="color: #333399;"><strong>date</strong> =&gt; YYYY-MM-DD.</span></p>
<p><span style="color: #333399;"><strong>smallint</strong> <strong>mediumint</strong> <strong>int</strong> =&gt;      -2147483648 to 2147483647 normal 0 to 4294967295 UNSIGNED.</span></p>
<p><span style="color: #333399;"><strong>bigint</strong> =&gt;      -9223372036854775808 to 9223372036854775807 normal 0 to 18446744073709551615 UNSIGNED.</span></p>
<p><span style="color: #333399;"><strong>float</strong> =&gt; A small number with a floating decimal point.</span></p>
<p><span style="color: #333399;"><strong>double</strong> =&gt; A large number with a floating decimal point.</span></p>
<p><span style="color: #333399;"><strong>decimal</strong> =&gt; A DOUBLE stored as a string , allowing for a fixed decimal point.</span></p>
<p><span style="color: #333399;"><strong>datetime</strong> =&gt; YYYY-MM-DD HH:MM:SS. timestamp =&gt; YYYYMMDDHHMMSS.</span></p>
<p><span style="color: #333399;"><strong>time</strong> =&gt;       HH:MM:SS. year</span></p>
<p><span style="color: #333399;"><strong>char</strong> =&gt; CHAR( ) A fixed section from 0 to 255 characters long.</span></p>
<p><span style="color: #333399;"><strong>tinyblob tinytext</strong></span></p>
<p><span style="color: #333399;"><strong>blob</strong> =&gt; A string with a maximum length of 65535 characters.BLOB stands for Binary Large OBject.</span></p>
<p><span style="color: #333399;"><strong>mediumblob</strong> =&gt; A string with a maximum length of 16777215 characters.</span></p>
<p><span style="color: #333399;"><strong>longblob</strong> =&gt; A string with a maximum length of 4294967295 characters.</span></p>
<p><span style="color: #333399;"><strong>longtext</strong> <strong>enum</strong> =&gt; Short for ENUMERATION which means that each column may have one of a specified possible values.</span></p>
<p><span style="color: #333399;"><strong>set</strong> =&gt; Similar to ENUM except each column may have more than one of the specified possible values. bool binary varbinary</span></p>
<p><strong>How is sub queries handled in MySQL?</strong></p>
<p><span style="color: #333399;">Sub queries in MySQL handled nested way, You can see the example and understand yourself -</span></p>
<p><span style="color: #333399;">SELECT name, headofstate, population FROM Country WHERE population=(SELECT MAX(population) FROM Country);</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2008/12/25/important-mysql-questions-and-answers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Problem with transparent image resizing? &#8211; PHP</title>
		<link>http://www.pacecode.com/blog/2008/12/03/problem-with-transparent-image-resizing/</link>
		<comments>http://www.pacecode.com/blog/2008/12/03/problem-with-transparent-image-resizing/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 17:33:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[php developers]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[animated image resize]]></category>
		<category><![CDATA[image resizing using php]]></category>
		<category><![CDATA[imagecreatetruecolor]]></category>
		<category><![CDATA[on the fly image resize]]></category>
		<category><![CDATA[open source image resize script]]></category>
		<category><![CDATA[transparent image resize]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=88</guid>
		<description><![CDATA[You will get black background if you resize a transparent image. To fix it, You need set alpha channel imagecolorallocatealpha to 127. With imagecolorallocatealpha, it will allocate a color for an image. Usage: int imagecolorallocatealpha ( resource image, int red, int green, int blue, int alpha) From PHP manual: imagecolorallocatealpha() behaves identically to imagecolorallocate() with [...]]]></description>
			<content:encoded><![CDATA[<p>You will get black background if you resize a transparent image. To fix it, You need set alpha channel imagecolorallocatealpha to 127. With imagecolorallocatealpha, it will allocate a color for an image.</p>
<p><strong>Usage:</strong><br />
int imagecolorallocatealpha ( resource image, int red, int green, int blue, int alpha)</p>
<p><strong>From PHP manual:</strong><br />
imagecolorallocatealpha() behaves identically to imagecolorallocate() with the addition of the transparency parameter alpha which may have a value between 0 and 127. 0 indicates completely opaque while 127<br />
indicates completely transparent. Returns FALSE if the allocation failed.</p>
<p>Before using it, you must set to false the blending mode for an image and set true the flag to save full alpha channel information.</p>
<p><strong>Example:</strong></p>
<p>&lt;?</p>
<p>$newImg = imagecreatetruecolor($nWidth, $nHeight);</p>
<p>imagealphablending($newImg, false);</p>
<p>imagesavealpha($newImg,true);</p>
<p>$transparent = imagecolorallocatealpha($newImg, 255, 255, 255, 127);</p>
<p>imagefilledrectangle($newImg, 0, 0, $nWidth, $nHeight, $transparent);</p>
<p>imagecopyresampled($newImg, $im, 0, 0, 0, 0, $nWidth, $nHeight, $imgInfo[0], $imgInfo[1]);</p>
<p>?&gt;</p>
<p><strong>Another way to fix this issue:</strong></p>
<p><strong>phpThumb() </strong>- Resize images on the fly</p>
<p><strong>Description: </strong>phpThumb() uses the GD library  to create thumbnails from images (JPEG, PNG, GIF, BMP, etc) on the fly. The output size is configurable (can be larger or smaller than the source), and the source may be the entire image or only a portion of the original image.</p>
<p><strong>Download:</strong> <a href="http://phpthumb.sourceforge.net/phpThumb.zip">Download</a></p>
<p><strong>Site:</strong> <a href="http://phpthumb.sourceforge.net/" title="phpThumb - a php thumbnail generator" rel="mediabox[800 600]">phpThumb()</a></p>
<p><strong>Demo:</strong> <a href="http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php" title="phpThumb Demo" rel="mediabox[800 600]">Demo</a></p>
<p><strong>Installation: </strong></p>
<p>1. unzip the folder and upload the content into the server<br />
2. give the correct path of the phpThumb.php and image path as per the following syntax</p>
<p><strong>Resize Syntax:</strong><br />
&lt;img src="../phpThumb.php?src=images/watermark.png&amp;bg=FFFFFF&amp;f=png" alt=""&gt;<br />
&lt;img src="../phpThumb.php?src=images/watermark.png&amp;bg=FFFFFF&amp;f=gif" alt=""&gt;<br />
&lt;img src="../phpThumb.php?src=images/watermark.png&amp;bg=FFFFFF&amp;f=jpeg" alt=""&gt;</p>
<p>where the bg=FFFFFF represents the bg color of your transparent image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2008/12/03/problem-with-transparent-image-resizing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Media Box tools package using Mootools JS.</title>
		<link>http://www.pacecode.com/blog/2008/10/30/media-box-tools-package-using-mootools-js/</link>
		<comments>http://www.pacecode.com/blog/2008/10/30/media-box-tools-package-using-mootools-js/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 18:23:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[facebook javascript]]></category>
		<category><![CDATA[ajax page refresh]]></category>
		<category><![CDATA[facebook developer zone]]></category>
		<category><![CDATA[fbjs page refresh]]></category>
		<category><![CDATA[fbjs script]]></category>
		<category><![CDATA[java script page refresh]]></category>
		<category><![CDATA[javascript for facebook developers]]></category>
		<category><![CDATA[part of page refresh]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=80</guid>
		<description><![CDATA[Media Box tools package using Mootools JS. Ref: http://iaian7.com/webcode/Mediabox Demo:open Yahoo Movies » Download link: MediaBox Download link I have created this package file for ready  to access. This package contains following list of files index.php css/mediabox.css js/mediabox.js js/swfobject.js js/mootools.js Installation: extract the zip file in to system. upload mediabox folder into your server. access [...]]]></description>
			<content:encoded><![CDATA[<p>Media Box tools package using Mootools JS.</p>
<p><strong>Ref</strong>: <a title="iaian7" rel="mediabox[800 600]" href="http://iaian7.com/webcode/Mediabox">http://iaian7.com/webcode/Mediabox</a></p>
<p><strong>Demo</strong>:<a title="Movies.Yahoo.com" rel="mediabox[800 600]" href="http://movies.yahoo.com">open Yahoo Movies »</a></p>
<p><strong>Download link:</strong> <a title="Mediabox package and download link" href="http://www.pacecode.com/blog/mediabox.zip" target="_blank">MediaBox Download link</a></p>
<p>I have created this package file for ready  to access. This package contains following  list of files</p>
<ul>
<li>index.php</li>
<li>css/mediabox.css</li>
<li>js/mediabox.js</li>
<li>js/swfobject.js</li>
<li>js/mootools.js</li>
</ul>
<p><strong>Installation:</strong></p>
<ul>
<li>extract the zip file in to system.</li>
<li>upload mediabox folder into your server.</li>
<li>access the mediabox  folder from the browser.</li>
</ul>
<p>Using the MooTools 1.11 JavaScript library, Media box lets  you open flash, video, and html content in a floating “lightbox” style window.</p>
<p>Mediabox will read Flickr, Google, MetaCafe, MySpace,  Revver, YouTube, Veoh, Viddler, and Vimeo links by automatically translating  them into embed code and inserting the video into the lightbox style effect.</p>
<p>Flash animation, flash video, QuickTime, windows media,  inline content and external html content is all automatically recognised as  well. Every link listed below is shown with the code used to make it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2008/10/30/media-box-tools-package-using-mootools-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with author feature in WordPress and author plug-in list</title>
		<link>http://www.pacecode.com/blog/2008/10/19/playing-with-author-feature-in-wordpress-and-author-plug-in-list/</link>
		<comments>http://www.pacecode.com/blog/2008/10/19/playing-with-author-feature-in-wordpress-and-author-plug-in-list/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 12:14:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php scripts]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress author]]></category>
		<category><![CDATA[wordpress author biography]]></category>
		<category><![CDATA[wordpress author feature]]></category>
		<category><![CDATA[wordpress author functions]]></category>
		<category><![CDATA[wordpress scripting tips]]></category>

		<guid isPermaLink="false">http://www.pacecode.com/blog/?p=68</guid>
		<description><![CDATA[If you have a wordpress blog with one or more author, then it is most important to list author details in the wordpress post pages. The followings functions will help you list out author details such as the_author the_author_description the_author_login the_author_firstname the_author_lastname the_author_nickname the_author_ID the_author_email the_author_url the_author_link (Version 2.1) the_author_aim the_author_yim the_author_posts the_author_posts_link wp_list_authors Okay, [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a wordpress blog with one or more author, then it  is most important to list author details in the wordpress post pages. The followings  functions will help you list out author details such as</p>
<ul>
<li>the_author</li>
<li>the_author_description</li>
<li>the_author_login</li>
<li>the_author_firstname</li>
<li>the_author_lastname</li>
<li>the_author_nickname</li>
<li>the_author_ID</li>
<li>the_author_email</li>
<li>the_author_url</li>
<li>the_author_link (Version 2.1)</li>
<li>the_author_aim</li>
<li>the_author_yim</li>
<li>the_author_posts</li>
<li>the_author_posts_link</li>
<li>wp_list_authors</li>
</ul>
<p>Okay, will discuss in detail below,</p>
<h2><strong>the_author </strong></h2>
<p><strong>Description</strong>:  it displays  Author's 'Public' Name</p>
<p><strong>Syntax</strong>: &lt;?php the_author(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt; this post was written by &lt;?php the_author(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_description</strong></h2>
<p><strong>Description:</strong> Displays the contents of the about yourself  field in an author's profile (Administration &gt; Profile &gt; Your Profile).  About yourself is a block of text often used to publicly describe the user and  can be quite long. This tag must be used within The Loop.</p>
<p><strong>Syntax:</strong> &lt;?php  the_author_description(); ?&gt;</p>
<pre><strong>Example:</strong> &lt;p&gt;Cindy biography: &lt;?php the_author_description(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_login</strong></h2>
<p><strong>Description:</strong> This tag displays the login name of the author  of a post. The login is also referred to as the Username an author uses to gain  access to a WordPress blog. This tag must be used within The Loop</p>
<p><strong>Note:</strong> It's  usually not a good idea to provide login information publicly. But it can be  used for some other  purposes</p>
<p><strong>Syntax:</strong> &lt;?php  the_author_login(); ?&gt;</p>
<pre><strong>Example:</strong> &lt;p&gt;Author username: &lt;?php the_author_login(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>The_author_firstname,  the_author_</strong> <strong>lastname, the_author_</strong> <strong>nickname</strong></h2>
<p><strong>Description</strong>:  The following tags display the name for the  author of a post. The First Name field is set in the user's profile  (Administration &gt; Profile &gt; Your Profile). This tag must be used within  The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php the_author_firstname(); ?&gt;,  &lt;?php the_author_nickname(); ?&gt;, &lt;?php the_author_lastname(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;This post was written by &lt;?php the_author_firstname(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_ID</strong></h2>
<p><strong>Description</strong>:  Displays the unique numeric user ID for the  author of a post; the ID is assigned by WordPress when a user account is  created. This tag must be used within The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_ID(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;a href="/blog/index.php?author=&lt;?php the_author_ID(); ?&gt;"&gt;View all</pre>
<pre>posts by &lt;?php the_author_nickname(); ?&gt;&lt;/a&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_email</strong></h2>
<p><strong>Description</strong>:  This tag displays the email address for the  author of a post. The E-mail field is set in the user's profile (Administration  &gt; Profile &gt; Your Profile). This function must be used within The Loop.</p>
<p>Note that the address  is <strong>not</strong> encoded or protected in any way from harvesting by spambots</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_email(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;a href="mailto:&lt;?php the_author_email(); ?&gt;"&gt;Contact the author&lt;/a&gt;</pre>
<pre><strong>Secure your author’s email:</strong></pre>
<pre>This example partially 'obfuscates' address by using the internal function antispambot()
to encode portions in HTML character entities (these are read correctly by your browser).
Note the example uses get_the_author_email() function, because the_author_email()
echoes the address before antispambot() can act upon it.</pre>
<pre>Eg: &lt;a href="mailto:&lt;?php echo antispambot(get_the_author_email()); ?&gt;"&gt;email</pre>
<pre> author&lt;/a&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_url</strong></h2>
<p><strong>Description</strong>:  This tag displays the URL to the Website for  the author of a post. The Website field is set in the user's profile  (Administration &gt; Profile &gt; Your Profile). This tag must be used within  The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_url(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;Author's web site:</pre>
<pre>&lt;a href="&lt;?php the_author_url(); ?&gt;"&gt;&lt;?php the_author_url(); ?&gt;&lt;/a&gt;&lt;/p&gt;</pre>
<pre><strong> </strong></pre>
<p>
<hr /></p>
<h2><strong>the_author_aim</strong></h2>
<p><strong>Description</strong>:  This tag displays the AOL Instant Messenger  screenname for the author of a post. The AIM field is set in the user's profile  (Administration &gt; Profile &gt; Your Profile). This tag must be used within  The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_aim(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;Contact me on AOL Instant Messenger: &lt;?php the_author_aim(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_yim</strong></h2>
<p><strong>Description</strong>: This  tag displays the Yahoo IM ID for the author of a post. The Yahoo IM field is  set in the user's profile (Administration &gt; Profile &gt; Your Profile). This  tag must be used within The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_yim(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;Contact me on Yahoo Messenger: &lt;?php the_author_yim(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_posts</strong></h2>
<p><strong>Description</strong>:  Displays the total number of posts an author  has published. Drafts and private posts aren't counted. This tag must be used  within The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_posts(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;&lt;?php the_author(); ?&gt; has blogged &lt;?php the_author_posts(); ?&gt;</pre>
<pre>posts&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>the_author_posts_link</strong></h2>
<p><strong>Description</strong>:  Displays a link to all posts by an author. The  link text is the user's Display name publicly as field. The results of clicking  on the presented link will be controlled by the Template Hierarchy of Author  Templates. This tag must be used within The Loop.</p>
<p><strong>Syntax</strong>: &lt;?php  the_author_posts_link(); ?&gt;</p>
<pre><strong>Example</strong>: &lt;p&gt;Other posts by &lt;?php the_author_posts_link(); ?&gt;&lt;/p&gt;</pre>
<p>
<hr /></p>
<h2><strong>wp_list_authors</strong></h2>
<p><strong>Description</strong>:  Displays a list of the blog's authors (users),  and if the user has authored any posts, the author name is displayed as a link  to their posts. Optionally this tag displays each author's post count and RSS  feed link.</p>
<p><strong>Syntax</strong>: &lt;?php  wp_list_authors('arguments'); ?&gt;</p>
<pre><strong>Example</strong>: &lt;?php $defaults = array(</pre>
<pre>          'optioncount' =&gt; false,</pre>
<pre>          'exclude_admin' =&gt; true,</pre>
<pre>          'show_fullname' =&gt; false,</pre>
<pre>          'hide_empty' =&gt; true,</pre>
<pre>          'feed' =&gt; ,</pre>
<pre>          'feed_image' =&gt;  ); ?&gt;</pre>
<pre>By default, the usage shows:</pre>
<pre>    * Does not display the count of the number of posts</pre>
<pre>    * Excludes the 'admin' author from the list</pre>
<pre>    * Does not display the full name (first and last) but displays the author nickname</pre>
<pre>    * Excludes users with no posts</pre>
<pre>    * No author feed text is displayed</pre>
<pre>    * No author feed image is displayed</pre>
<pre><strong>&lt;?php  wp_list_authors('show_fullname=1&amp;optioncount=1'); ?&gt;
</strong></pre>
<p>
<hr /></p>
<h2>Author image in every post - Plug in:</h2>
<p><strong>Description: </strong></p>
<div>Display image (if present) and/or name for the author of a post, or for all authors on the blog.</div>
<p><strong>for more info and downloads</strong>:http://coffee2code.com/wp-plugins/author-images/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pacecode.com/blog/2008/10/19/playing-with-author-feature-in-wordpress-and-author-plug-in-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

