<?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>Sushant Danekar's Technical Stuff</title>
	<atom:link href="http://blogs.rediff.com/sushantdanekar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.rediff.com/sushantdanekar</link>
	<description>Paste, Search, Read and solve your problem.. Help me to solve your technical problems (PHP,MySQL,JavaScript,Magento, OSCMax Joomla jQuery EXTJs)</description>
	<lastBuildDate>Tue, 21 Sep 2010 11:34:31 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.13</generator>
	<item>
		<title>How slow your website is Check with this tool Yahoo! YSlow</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/09/21/how-slow-your-website-is-check-with-this-tool-yahoo-yslow/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/09/21/how-slow-your-website-is-check-with-this-tool-yahoo-yslow/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 11:34:31 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=66</guid>
		<description><![CDATA[Yahoo! YSlow YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages. YSlow is a Firefox add-on integrated with the Firebug web development tool. YSlow grades web page based on one of three predefined ruleset or a user-defined ruleset. It offers suggestions for [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2>Yahoo! YSlow</h2>
<p>YSlow analyzes web pages and suggests ways to improve their performance based on a set of<br />
 <a href="http://developer.yahoo.com/performance/rules.html">rules for high performance web pages</a>. YSlow is a<br />
 <a href="https://addons.mozilla.org/en-US/firefox/addon/5369">Firefox add-on</a> integrated with the<br />
 <a href="http://www.getfirebug.com/" target="_blank">Firebug</a> web<br />
development tool. YSlow grades web page based on one of three predefined<br />
 ruleset or a user-defined ruleset. It offers suggestions for improving<br />
the page&#8217;s performance, summarizes the page&#8217;s components, displays<br />
statistics about the page, and provides tools for performance analysis,<br />
including <a href="http://developer.yahoo.com/yslow/smushit/">Smush.it™</a> and <a href="http://jslint.com/">JSLint</a></p>
<p></p>
<p></p>
<p>MORE details on this link </p>
<p></p>
<p>http://developer.yahoo.com/yslow/</p>
<p><span> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/09/21/how-slow-your-website-is-check-with-this-tool-yahoo-yslow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Simple Rules for Speeding Up Websites.</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/08/23/my-simple-rules-for-speeding-up-websites/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/08/23/my-simple-rules-for-speeding-up-websites/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 14:59:38 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=60</guid>
		<description><![CDATA[Now a days website users are Impatients. Users can hit close button or refresh button if your website loading take more than a half minute. I have my own set of rules for speeding up the thjings.Have a look below for the list. Images. I noticed how many people don&#8217;t optimize their images properly, which [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Now a days website users are Impatients. Users can hit close button or refresh button if your website loading take more than a half minute.</p>
<p>I have my own set of rules for speeding up the thjings.<br />Have a look below for the list.</p>
<p><font style="font-family: Verdana; background-color: #FFFFFF; color: #770077; font-weight: bold;" size="5"><br />Images</font><font size="5">.</font></p>
<p>I noticed how many people don&#8217;t optimize their images properly, which results in extremely slow loading time. When you intend to publish your images online, you have to comprimise the quality — just face the fact you cannot use a 100KB image on a website layout. It&#8217;s not fair to your visitors.</p>
<p>Adding too many images in the design of webpages is just a making the site heavy. <br />Use less number of images and optimise the images for website. Adobe PhotoShop and Microsoft Picture Editor can be helpful for Resizing images to web-safe environment.&nbsp; Use Photoshop&#8217;s Save for web&#8230; option.</p>
<p>Also there is one myth about changing the image format.&nbsp; Just changing the image filename extension is not the really the format changin procedure.&nbsp; So use softwares to resize and reformat images. </p>
<p>Images are of different format&nbsp; See this link to know more about image formats its compression and quality. <br /><a target="_blank" href="http://inobscuro.com/tutorials/read/35/">(link);</a><br /><font style="font-family: Verdana; background-color: #FFFFFF; color: #770077; font-weight: bold;" size="5"><br style="background-color: #CCFFFF; font-weight: bold;">Place Css should be at the TOP</font></p>
<p>1) All your css should be called very first. This means put your link tags at the top in the head section.&nbsp; If css gets&nbsp; loaded first, its easy for browser to render the page with styles defined in css. So its a cool logic. Its like giving a bluprint to designer very first before explaining.</p>
<p><font style="font-weight: bold;" size="5"><span style="color: #770077;">Use Simple Layouts. Use uncomplicated tags. Avoid complex table structures.</span></font></p>
<p>Webmaster tries to make website look extraordinary and effective design. If design is cool and its code is complex browser actually takes time for drawing your design. <br />Making designs in&nbsp; only in DIV tags allow great speed to browsers.</p>
<p><font style="font-weight: bold;" size="5"><br style="font-weight: bold;"><span style="color: #770077;">Use Simple web colors OR&nbsp; use single rollover image.</span></font><font size="5"><br /></font></p>
<p>&nbsp;Try to use&nbsp; web colors or small sized images. Most of the time only one image is loaded and same&nbsp; is used with different cordinate and dimensions. Have a look here <br /><a target="_blank" href="http://www.vision.to/images/articles/buttons_tabs2.png">http://www.vision.to/images/articles/buttons_tabs2.png</a> or read this <a target="_blank" href="http://www.vision.to/single-image-tabs-with-three-state-rollover.php">article  </a></p>
<p><font style="font-weight: bold;" size="5"><span style="color: #770077;">Seperate files for Java Script and CSS.</span></font><br />This is very traditional method. But if developer is impatient he tries to find out the shortcut. So just create .js and .css&nbsp; files.<br />Inlined script and css are getting downloaded everytime..where as .Js and .css files are cached by browser.</p>
<p>These are some basic things. More detailed article can be viewed here <br /><a target="_blank" href="http://developer.yahoo.com/performance/rules.html">From Yahoo.com </a></p>
<p><span> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/08/23/my-simple-rules-for-speeding-up-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A content delivery network CDN</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/07/30/a-content-delivery-network-cdn/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/07/30/a-content-delivery-network-cdn/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 13:47:24 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Technologies]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=58</guid>
		<description><![CDATA[A content delivery network (CDN) is a collection of web servers distributed across multiple locations to deliver content more efficiently to users. The server selected for delivering content to a specific user is typically based on a measure of network proximity. For example, the server with the fewest network hops or the server with the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span>A content delivery network (CDN) is a collection of web servers distributed across multiple locations to deliver content more efficiently to users. The server selected for delivering content to a specific user is typically based on a measure of network proximity. For example, the server with the fewest network hops or the server with the quickest response time is chosen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/07/30/a-content-delivery-network-cdn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Altarnate Row Colors In HTML with CSS 3</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/07/27/altarnate-row-colors-in-html-with-css-3/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/07/27/altarnate-row-colors-in-html-with-css-3/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 13:46:50 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=52</guid>
		<description><![CDATA[All Developers all Designer already know about this concept. Reading the HTML Table become easy when&#160; rows are colored alternately. You may be wondering how this article have something new and different about coloring table odd and even table rows with css3. CSS3 do the magic and it will allow designer to define the color [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span><span> </span><span> </span>All Developers all Designer already know about this concept. </p>
<p>Reading the HTML Table become easy when&nbsp; rows are colored alternately.</p>
<p>You may be wondering how this article have something new and different about coloring table odd and even table rows with css3. </p>
<p>CSS3 do the magic and it will allow designer to define the color for odd numbered element and even numbered element. </p>
<p>Look at the following code and its output</p>
<p><span> </span><textarea cols="50" rows="20"> &lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.0 Transitional//EN&#8221;&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt; New Document &lt;/title&gt;&lt;meta name=&#8221;Generator&#8221; content=&#8221;EditPlus&#8221;&gt;&lt;meta name=&#8221;Author&#8221; content=&#8221;&#8221;&gt;&lt;meta name=&#8221;Keywords&#8221; content=&#8221;&#8221;&gt;&lt;meta name=&#8221;Description&#8221; content=&#8221;&#8221;&gt;&lt;style&gt;tr:nth-of-type(odd) {&nbsp; background-color:#ccc;} &lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp; &lt;/tr&gt;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp; &lt;/tr&gt;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp; &lt;/tr&gt;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp; &lt;/tr&gt;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;td&gt;test test test&lt;/td&gt;&nbsp; &lt;/tr&gt;&lt;/table&gt; &lt;/body&gt;&lt;/html&gt;</textarea></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/07/27/altarnate-row-colors-in-html-with-css-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML 5 and Audio, Video,  Made easy</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/07/24/html-5-and-audio-video-made-easy/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/07/24/html-5-and-audio-video-made-easy/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 07:53:46 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[html5 audio]]></category>
		<category><![CDATA[html5 new tags]]></category>
		<category><![CDATA[html5 video]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=45</guid>
		<description><![CDATA[How it will be if you have a simple tag Called and with just a simple Src parameter as we have in tag&#8230; HTML 5 comes with this tags. Now onwards it will be easy for HTML designer to Add Videos and Audios. The Audio Video Tags are interested because JavaScript Developer can Perform some [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>How it will be if you have a simple tag Called <audio> and <video> with just a simple Src parameter as we have in <img> tag&#8230; </p>
<p>HTML 5 comes with this tags.   Now onwards it will be easy for HTML designer to Add Videos and Audios. </p>
<p>The Audio Video Tags are interested because JavaScript Developer can Perform some operation and invoke some methods and events ! </p>
<p>The details of HTML 5 and Audio Tag is here </p>
<p>http://dev.opera.com/articles/view/html5-audio-radio-player/</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/07/24/html-5-and-audio-video-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Resizing Made Easy. Smart script</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/07/06/image-resizing-made-easy-smart-script/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/07/06/image-resizing-made-easy-smart-script/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 11:35:45 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Image Resize]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=42</guid>
		<description><![CDATA[Image resizing is big trouble for every project. I found a perfect script which almost cover every aspect of a developer. http://github.com/maxim/smart_resize_image/ This script re-size as per given WIDTH and / or HEIGHT. Output is in FILE as well as in TAG ( image object ) Following are the features.. &#160;&#160;&#160; * If you pass [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span>Image resizing is big trouble for every project. </p>
<p>I found a perfect script which almost cover every aspect of a developer.</p>
<p><a href="http://github.com/maxim/smart_resize_image/">http://github.com/maxim/smart_resize_image/</a></p>
<p></p>
<p>This script re-size as per given WIDTH and / or HEIGHT. </p>
<p>Output is in FILE as well as in TAG ( image object ) </p>
<p>Following are the features.. </p>
<p><span><br /></span>&nbsp;&nbsp;&nbsp; * If you pass width as 0 (zero) &#8212; this function will disregard width, and use height as constraint. Same vice versa.&nbsp;&nbsp;&nbsp; * If you set &#8220;proportional&#8221; to false &#8211; the function will simply stretch (or shrink) the image to its full constraints.&nbsp;&nbsp;&nbsp; * If one of the dimensions is set to zero, and proportional set to &#8220;false&#8221; &#8211; then the image will be forced to stretch or shrink the other dimension, and disregard the zeroed dimension (leave it the same).&nbsp;&nbsp;&nbsp; * If proportional is set to true &#8211; the image will resize to constraints proportionally, once again, with possibility to have either width or height set to zero.&nbsp;&nbsp;&nbsp; * The function can use either linux &#8220;rm&#8221; command, or php @unlink. Most probably you don&#8217;t need to ever use that flag, but on some setups &#8211; @unlink won&#8217;t work due to user access restrictions.&nbsp;&nbsp;&nbsp; * The function will simply replace the file that you give it, with the resized file.&nbsp;&nbsp;&nbsp; * The function supports gif, png, and jpeg, and preserves the transparency of gif and png images.&nbsp;&nbsp;&nbsp; * Tested on GD version 2.0.28 only.</p>
<p>Enjoy Smart Image Resizing .. </p>
<p>Regards<br />Sushant Danekar</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/07/06/image-resizing-made-easy-smart-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Order By Floating , integer ,Numbers</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-order-by-floating-integer-numbers/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-order-by-floating-integer-numbers/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:00:26 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[alphabetical order  for number]]></category>
		<category><![CDATA[Correct method for mysql order by for numeric fields]]></category>
		<category><![CDATA[MySQL Order By Number]]></category>
		<category><![CDATA[order By number]]></category>
		<category><![CDATA[wron order by result for float number]]></category>
		<category><![CDATA[wrong order by result for float number]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=36</guid>
		<description><![CDATA[Say we have 5 (five) records in the database table with the following values in the “price” field/column. 19.99 125 5.99 199 300 Execute this query .. SELECT * FROM `table` ORDER BY `price` ASC; If your result looks like in following list,&#160; you need my help 125 199 19.99 300 5.99 Use following query [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Say we have 5 (five) records in the database table with the following<br />
 values in the “price” field/column.</p>
<ul>
<li>19.99</li>
<li>125</li>
<li>5.99</li>
<li>199</li>
<li>300</li>
</ul>
<p><span class="kw1"><br />Execute this query .. <br /><br style="font-weight: bold;"><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;">SELECT</span></span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"><br />
 * </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="kw1">FROM</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"> </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="st0">`table`</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"> </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="kw1">ORDER</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"> </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="kw1">BY</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"> </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="st0">`price`</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;"><br />
 </span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;" class="kw1">ASC</span><span style="background-color: #CCCCCC; color: #770000; font-weight: bold;">;</span></p>
<p></p>
<p>If your result looks like in following list,&nbsp; you need my help <img src="http://blogs.rediff.com/sushantdanekar/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  </p>
<ul style="background-color: #CCCCCC;">
<li>125</li>
<li>199</li>
<li>19.99</li>
<li>300</li>
<li>5.99</li>
</ul>
<p>Use following query if your result comes in this way.. </p>
<p><br style="font-weight: bold;"><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="kw1">SELECT</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> * </span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="kw1">FROM</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> </span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="st0">`table`</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> </span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="kw1">ORDER</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> </span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="kw1">BY</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> ABS</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="br0">(</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="st0">`price`</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="br0">)</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;"> </span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;" class="kw1">ASC</span><span style="color: #770000; background-color: #CCCCCC; font-family: Courier New; font-weight: bold;">;</span></p>
<p>Thanks and Regards<br />Sushant Danekar </p>
<p><span> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-order-by-floating-integer-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Query Cache</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-query-cache/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-query-cache/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:55:04 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Caching]]></category>
		<category><![CDATA[MySQL Performance Optimization]]></category>
		<category><![CDATA[MySQL Query Cache]]></category>
		<category><![CDATA[Performance Optimization]]></category>
		<category><![CDATA[Query Caching]]></category>
		<category><![CDATA[Query Optimization]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=33</guid>
		<description><![CDATA[MySQL Query Cache Will MySQL supports Query Caching? The answer is “YES” MySQL supports query caching if done some changes in the configuration file my.ini Under [mysqld] section you can add, query_cache_type = #query_cache_value# #query_cache_value # can be any of the following, &#160;&#160;&#160; query_cache_type = 0 =&#62; Caching is disabled &#160;&#160;&#160; query_cache_type = 1 =&#62; [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span><font style="font-weight: bold;" size="4">MySQL Query Cache</font></p>
<p>Will MySQL supports Query Caching?</p>
<p><br style="font-weight: bold;"><span style="background-color: #FF0000; color: #FFFFFF; font-weight: bold;">The answer is “YES”</span><br style="color: #FFFFFF;"></p>
<p>MySQL supports query caching if done some changes in the configuration file my.ini</p>
<p>Under [mysqld] section you can add,<br /><span class="Apple-style-span" style="color: #4B6320; font-family: Helvetica; font-size: 13px;"><span class="Apple-style-span" style="font-family: Arial;"><br />
<blockquote style="margin: 0px; padding: 0px 10px; border-left: 6px solid #E8F4D3; border-right: 6px solid #E8F4D3; color: #92BA47;"><span class="Apple-style-span" style="font-style: italic;"></p>
<p>query_cache_type<br />
 = #query_cache_value#</span></p></blockquote>
<p></span></span></p>
<p>#query_cache_value # can be any of the following,</p>
<p><span style="background-color: #CCCCCC;">&nbsp;&nbsp;&nbsp; query_cache_type = 0 =&gt; Caching is disabled </span></p>
<p><span style="background-color: #CCCCCC;">&nbsp;&nbsp;&nbsp; query_cache_type = 1 =&gt; Caching is enabled for all queries</span> </p>
<p><span style="background-color: #CCCCCC;">&nbsp;&nbsp;&nbsp; query_cache_type = 2 =&gt; this requires adding the keyword SQL_CACHE to the queries that are to be cached </span><br style="background-color: #CCCCCC;"><br style="background-color: #CCCCCC;"><br style="background-color: #CCCCCC;"><span style="background-color: #CCCCCC;">If defined “query_cache_type = 2”, then caching will be enabled for the queries which is mentioned SQL_CACHE in it.</span></p>
<p>SELECT SQL_CACHE column1, column2 FROM table_name;</p>
<p>SELECT SQL_CACHE name, age FROM employees;</p>
<p><span class="Apple-style-span" style="color: #4B6320; font-family: Helvetica; font-size: 13px;"><span class="Apple-style-span" style="font-family: Arial;">For more information, Pls visit&nbsp;<span class="Apple-style-span" style="line-height: normal; font-family: Helvetica;"><a href="http://dev.mysql.com/doc/refman/6.0/en/query-cache.html">http://dev.mysql.com/doc/refman/6.0/en/query-cache.html</a></span></span></span><br /><span class="Apple-style-span" style="color: #4B6320; font-family: Helvetica; font-size: 13px;"></span><span class="Apple-style-span" style="font-style: italic;"></span><span class="Apple-style-span" style="color: #4B6320; font-family: Helvetica; font-size: 13px;">
<p class="MsoNormal" style="line-height: 1.4em; margin: 0px; height: 1%; overflow: visible;">
<p><span class="Apple-style-span" style="font-family: Arial;"><br />
<blockquote style="margin: 0px; padding: 0px 10px; border-left: 6px solid #E8F4D3; border-right: 6px solid #E8F4D3; color: #92BA47;"><span class="Apple-style-span" style="font-style: italic;"><br /></span></p></blockquote>
<p></span></p>
<p class="MsoNormal" style="line-height: 1.4em; margin: 0px; height: 1%; overflow: visible;"></p>
<p class="MsoNormal" style="line-height: 1.4em; margin: 0px; height: 1%; overflow: visible;"><span class="Apple-style-span" style="font-family: Arial;"></span></p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/04/28/mysql-query-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I add my PHP directory to the PATH  on Windows?</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/04/12/how-do-i-add-my-php-directory-to-the-path-on-windows/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/04/12/how-do-i-add-my-php-directory-to-the-path-on-windows/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 09:41:32 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WIndows]]></category>
		<category><![CDATA[Command line PHP]]></category>
		<category><![CDATA[DOS PHP]]></category>
		<category><![CDATA[PHP CLI]]></category>
		<category><![CDATA[PHP WINDOWS]]></category>
		<category><![CDATA[PHP windows command line]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=30</guid>
		<description><![CDATA[How do I add my PHP directory to the PATH on Windows? On Windows NT+ and Windows Server 2000+: Go to Control Panel and open the System icon (Start -&#62; Settings -&#62; Control Panel -&#62; System, or just Start -&#62; Control Panel -&#62; System for Windows XP/2003+) Go to the Advanced tab Click on the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span>
<dl class="qandaentry" id="faq.installation.addtopath" name="faq.installation.addtopath">
<dt><strong>How do I add my PHP directory to the <var class="varname"><var class="varname">PATH</var></var><br />
      on Windows?</p>
<p>    </strong></dt>
<dd class="answer">
<p class="para">
      On Windows NT+ and Windows Server 2000+:
      </p>
<ul class="itemizedlist">
<li class="listitem">
<p class="para">
        Go to Control Panel and open the System icon (Start -&gt;<br />
Settings<br />
        -&gt; Control Panel -&gt; System, or just Start -&gt; Control<br />
Panel<br />
        -&gt; System for Windows XP/2003+)
       </p>
</li>
<li class="listitem">
<p class="para">
        Go to the Advanced tab
       </p>
</li>
<li class="listitem">
<p class="para">
        Click on the &#8216;Environment Variables&#8217; button
       </p>
</li>
<li class="listitem">
<p class="para">
        Look into the &#8216;System Variables&#8217; pane
       </p>
</li>
<li class="listitem">
<p class="para">
        Find the Path entry (you may need to scroll to find it)
       </p>
</li>
<li class="listitem">
<p class="para">
        Double click on the Path entry
       </p>
</li>
<li class="listitem">
<p class="para">
        Enter your PHP directory at the end, including &#8216;;&#8217; before (e.g.<br />
        <i>;C:\php</i>)
       </p>
</li>
<li class="listitem">
<p class="para">
        Press OK
       </p>
</li>
</ul>
<p><a target="_self" href="http://www.php.net/manual/en/faq.installation.php">More information is here </a>OR </dd>
<dt>http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath</dt>
</dl>
<p><span> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/04/12/how-do-i-add-my-php-directory-to-the-path-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Table Delete with MySQL</title>
		<link>http://blogs.rediff.com/sushantdanekar/2010/04/12/cross-table-delete-with-mysql/</link>
		<comments>http://blogs.rediff.com/sushantdanekar/2010/04/12/cross-table-delete-with-mysql/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 07:52:26 +0000</pubDate>
		<dc:creator><![CDATA[Sushant Danekar]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cross Table Delete]]></category>
		<category><![CDATA[MySQL DELETE]]></category>

		<guid isPermaLink="false">http://blogs.rediff.com/sushantdanekar/?p=26</guid>
		<description><![CDATA[Cross Table Delete with MySQL DELETE product.* FROM product p LEFT JOIN productPrice pp ON p.productId = pp.productId WHERE pp.productId is null THIS IS POSSIBLE Deleting records with MySQL can be done by referencing records in another table by joining them together. This is useful if you need to delete data from one table based [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span> </span></p>
<p><span> </span><br />
<h1>Cross Table Delete with MySQL</h1>
<p>
<p style="background-color: #999999;"><code class="block">DELETE<br />
 product.*<br />
FROM product p<br />
LEFT JOIN productPrice pp<br />
ON p.productId = pp.productId<br />
WHERE pp.productId is null</code></p>
<p style="background-color: #999999;"><code class="block"></code></p>
<p style="background-color: #999999;"><code class="block">THIS IS POSSIBLE <br /></code></p>
<p>Deleting records with MySQL can be done by referencing records in<br />
another table by joining them together. This is useful if you need to<br />
delete data from one table based on the values in another, or if you<br />
want to delete records from one table where there are no associated<br />
records in the second table. Note that although the examples in this<br />
article show joins between two tables you can join three, four or more<br />
tables if required.</p>
<p>Using a join to delete records in MySQL is only possible with version<br />
 4.0 or higher. Unfortunately this is not possible using earlier<br />
versions of MySQL, ie 3.23 and earlier.</p>
<p>With MySQL you can do a cross table delete in one of two ways. The<br />
first is to use commas with an implicit inner join like in the example<br />
below. In these examples we&#8217;re using a product and productPrice table<br />
where product info is stored in the product table and price information<br />
in the productPrice table. Each table has a productId field which is<br />
what we&#8217;ll be joining them on.</p>
<p></p>
<p></p>
<p></p>
<p>With MySQL you can do a cross table delete in one of two ways. The first<br />
 is to use commas with an implicit inner join like in the example below.<br />
 In these examples we&#8217;re using a product and productPrice table where<br />
product info is stored in the product table and price information in the<br />
 productPrice table. Each table has a productId field which is what<br />
we&#8217;ll be joining them on.</p>
<p style="background-color: #CCCCCC;"></p>
<p style="background-color: #CCCCCC;"><code class="block">DELETE product.*, productPrice.*<br />
FROM product p, productPrice pp<br />
WHERE p.productId = pp.productId<br />
AND p.created &lt; '2004-01-01'</code></p>
<p></p>
<p>Note that you don&#8217;t necessarily need to delete all records from all<br />
tables in the query. The example above could just delete from the<br />
productPrice table by changing the first line to <code>delete product.*</code>.</p>
<p>You can also use a left join to delete records using MySQL. An<br />
example of this is using our product and productPrice tables below,<br />
where we are deleting all the records from the product table where there<br />
 is not an associated record in the productPrice table.</p>
<p></p>
<p style="background-color: #999999;"><code class="block">DELETE product.*<br />
FROM product p<br />
LEFT JOIN productPrice pp<br />
ON p.productId = pp.productId<br />
WHERE pp.productId is null</code></p>
<p>When testing these queries on a test database to make sure they actually<br />
 executed I discovered it appears you cannot use the alias names for the<br />
 data to delete (eg <code>delete p.*</code>) otherwise you get the error<br />
 <code>error 1066 not unique table/alias</code>. To fix this error type<br />
in the full table name instead of the alias.</p>
<p><a target="_blank" href="http://www.electrictoolbox.com/article/mysql/cross-table-delete/">Source Document is here </a></p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.rediff.com/sushantdanekar/2010/04/12/cross-table-delete-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.702 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2017-03-11 19:37:42 -->

<!-- Compression = gzip -->