<?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>FanaticZine &#187; Development</title>
	<atom:link href="http://www.fanaticzine.com/index.php/category/web_desktop_application_developement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fanaticzine.com</link>
	<description>Creativity Simplified</description>
	<lastBuildDate>Wed, 09 Mar 2011 05:52:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Dump MySQL database with a row limit for tables</title>
		<link>http://www.fanaticzine.com/index.php/2010/09/dump-mysql-database-with-a-row-limit-for-tables/</link>
		<comments>http://www.fanaticzine.com/index.php/2010/09/dump-mysql-database-with-a-row-limit-for-tables/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 05:28:51 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Limit rows]]></category>
		<category><![CDATA[MySSQL database backup]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=333</guid>
		<description><![CDATA[Hey  Guys, Have you ever wondered how to get a copy of your production database, may be to setup your local development environment to look like your production ? biggest problem that you will face is deploying your database to  reflect your production database, because sometimes it might want to downloading Gigabytes to download a copy of your production database. [...]]]></description>
			<content:encoded><![CDATA[<p>Hey  Guys, Have you ever wondered how to get a copy of your production database, may be to setup your local development environment to look like your production ? biggest problem that you will face is deploying your database to  reflect your production database, because sometimes it might want to downloading Gigabytes to download a copy of your production database. The solution is for this is simple get a minimized copy or a version of the database where it gives you all the tables with a limited number of rows in each of them. sounds good ?</p>
<p>Okay then here is the trick..</p>
<p>We all know in MySQL there is an command line tool <strong>mysqldump </strong>where we can provide a few parameters into it and get a copy of any database. what we have to do is give it a little more parameters, then it will limit the number of rows copied from each table into your dump. so here is the command..</p>
<blockquote><p>mysqldump  -u  {Username}  -p       &#8211;opt  &#8211;where=&#8221;true LIMIT 500&#8243; {databasename} &gt; {dumpfilename.sql}</p></blockquote>
<p>once you press enter, it will ask you for the database password in the next line, provide the password.. you are done <img src='http://www.fanaticzine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Please note that <strong>mysqldump</strong> is located in the <strong>/bin</strong> folder of your mysql installation.</p>
<p><a href="http://www.fanaticzine.com/wp-content/uploads/2010/09/mysqldump.jpg"><img class="alignnone size-full wp-image-335" title="mysqldump" src="http://www.fanaticzine.com/wp-content/uploads/2010/09/mysqldump.jpg" alt="" width="589" height="410" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2010/09/dump-mysql-database-with-a-row-limit-for-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t connect to MySQL server on (10060)</title>
		<link>http://www.fanaticzine.com/index.php/2009/11/cant-connect-to-mysql-server-on-10060/</link>
		<comments>http://www.fanaticzine.com/index.php/2009/11/cant-connect-to-mysql-server-on-10060/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 05:43:20 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Error 10060]]></category>
		<category><![CDATA[MySQL server Remote connection]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=227</guid>
		<description><![CDATA[If you are trying connect to a remote MySQL server and if your MySQL client giving you the error message Can&#8217;t connect to MySQL server on &#8216;< Host name or IP address >&#8216; (10060) Check whether your Public IP is allowed to access server,whether your IP is in the Allowed host list.]]></description>
			<content:encoded><![CDATA[<p>If you are trying connect to a remote MySQL server and if your MySQL client giving you the error message </p>
<blockquote><p>Can&#8217;t connect to MySQL server on &#8216;< Host name or IP address >&#8216; (10060) </p></blockquote>
<p>Check whether your Public IP is allowed to access server,whether your IP is in the Allowed host list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2009/11/cant-connect-to-mysql-server-on-10060/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore MySQL Database Backup using command line</title>
		<link>http://www.fanaticzine.com/index.php/2009/07/restore-mysql-database-backup-using-command-line/</link>
		<comments>http://www.fanaticzine.com/index.php/2009/07/restore-mysql-database-backup-using-command-line/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 04:35:15 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Restore Backup file]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=192</guid>
		<description><![CDATA[If you are trying to restore a large database backup back to  your MySQL Server, You know that phpMyAdmin is NOT the best solution for the task, beacause of it&#8217;s execution limitaion settings it will reject your file being executed. So one way to archive this is to use the mysql command prompt interface. the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to restore a large database backup back to  your MySQL Server, You know that phpMyAdmin is NOT the best solution for the task, beacause of it&#8217;s execution limitaion settings it will reject your file being executed. So one way to archive this is to use the mysql command prompt interface. the syntaxt to back up your database unsing command links is.</p>
<p><strong>mysql -u {UserName} -p {TargetDatabase} &lt; {SourceDumpFile}</strong></p>
<p>{UserName} = Your Database username</p>
<p>{TargetDatabase}= Your Target Databse</p>
<p>{SourceDumpFile}=  Your  SQL Dump File</p>
<p>once you run the above line correctly. you should be prompt for a password, Enter your database password and continue. (the restoring time  depends on the size of your database, so be patient and a grab a coffee if it&#8217;s so large.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2009/07/restore-mysql-database-backup-using-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ERROR 2006 (HY000) at line 447: MySQL server has gone away</title>
		<link>http://www.fanaticzine.com/index.php/2009/07/error-2006-hy000-at-line-447-mysql-server-has-gone-away/</link>
		<comments>http://www.fanaticzine.com/index.php/2009/07/error-2006-hy000-at-line-447-mysql-server-has-gone-away/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 04:15:01 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ERROR 2006]]></category>
		<category><![CDATA[MySQL server has gone away]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=189</guid>
		<description><![CDATA[If you are getting the error ERROR 2006 (HY000) at line 447: MySQL server has gone away when you are trying to restore any MySQL backup on your command prompt. Try following Open the my.ini in C:\Windows\ or mysql/bin/my.cnf on XAMPP installation and modify the max_allowed_packet to  a higher value. (Probably  higher than your backup [...]]]></description>
			<content:encoded><![CDATA[<p>If you are getting the error <strong>ERROR 2006 (HY000) at line 447: MySQL server has gone away</strong> when you are trying to restore any MySQL backup on your command prompt. Try following</p>
<p>Open the <strong>my.ini</strong> in C:\Windows\ or<strong> mysql/bin/my.cnf </strong> on XAMPP installation and modify the <strong>max_allowed_packet </strong>to  a higher value. (Probably  higher than your backup file size)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2009/07/error-2006-hy000-at-line-447-mysql-server-has-gone-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TINY INT with LENGTH 1 holds only one BIT</title>
		<link>http://www.fanaticzine.com/index.php/2009/01/tiny-int-with-length-1-holds-only-one-bit/</link>
		<comments>http://www.fanaticzine.com/index.php/2009/01/tiny-int-with-length-1-holds-only-one-bit/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 08:32:53 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=70</guid>
		<description><![CDATA[Hi, Just wanted to warn about the TINYINT data type on MySQL, just in case if you use TINYINT type with a data length 1, Remember that filed can only hold a one BIT means, the field only can hold 1 OR 0. Cheers.]]></description>
			<content:encoded><![CDATA[<p>Hi, Just wanted to warn about the TINYINT data type on MySQL, just in case if you use TINYINT type with a data length 1, Remember that filed can only hold a one BIT means, the field only can hold 1 OR 0. <img src='http://www.fanaticzine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2009/01/tiny-int-with-length-1-holds-only-one-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion CFQUERY character escape issue solved</title>
		<link>http://www.fanaticzine.com/index.php/2008/12/coldfusion-cfquery-character-escape-issue-solved/</link>
		<comments>http://www.fanaticzine.com/index.php/2008/12/coldfusion-cfquery-character-escape-issue-solved/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 10:35:47 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[' to "]]></category>
		<category><![CDATA[CFQUERY]]></category>
		<category><![CDATA[Character Escape problem]]></category>
		<category><![CDATA[single-quote to double-quote problem]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=66</guid>
		<description><![CDATA[Today I was trying this ColdFusion Code, which derived me crazy for about hour, finally I found the solution for the problem. I&#8217;ll post this code, so if anybody go through the same, to make it little easy on them. ok here I go.. in my script I used a SQL query looks something like [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was trying this ColdFusion Code, which derived me crazy for about hour, finally I found the solution for the problem. I&#8217;ll post this code, so if anybody go through the same, to make it little easy on them. ok here I go..</p>
<p>in my script I used a  SQL query looks something like this,</p>
<p><span style="color: #800000;">&lt;cfset</span> strSQL=<span style="color: #339966;">&#8220;</span><span style="color: #339966;">SELECT * FROM TestTable WHERE test_id=</span><span style="color: #99cc00;"><span style="color: #339966;">&#8216;xx&#8217;&#8221;</span><span style="color: #800000;">&gt;</span></span></p>
<p><span style="color: #800000;">&lt;cfquery</span> <span style="color: #800000;">datasource=</span><span style="color: #0000ff;">&#8220;xxxxxx&#8221; </span> <span style="color: #800000;">name=</span><span style="color: #0000ff;">&#8220;xxxxxxx&#8221;</span> <span style="color: #800000;">result=</span><span style="color: #0000ff;">&#8220;xxxxx&#8221;</span><span style="color: #800000;"> &gt;</span><br />
#strSQL#<br />
<span style="color: #800000;">&lt;/cfquery&gt;</span></p>
<p>If you try something like that, it should should pop you a SQL error, if you look the query closely, you would notice that the CFQUERY executes the following command, which we passed in to it.</p>
<p>SELECT * FROM TestTable WHERE test_id=<span style="color: #ff0000;">&#8220;xx&#8221;</span></p>
<p>you should see that there is a differance between command which get executed and with the one passed in. Means it converts &#8221; <span style="color: #ff0000;">&#8216;</span> &#8221; character in to &#8221; <span style="color: #ff0000;">&#8220;</span> &#8221; this would pop a sql error,</p>
<p>The Reason for this is, CF has it&#8217;s automated character escape feature, if you send the above code, CF <span style="color: #ff0000;">DOES NOT ESCAPE </span>those characters, But CF Escape any character which are queted with single-quotes,</p>
<p>so the simple solution for the problem is to tell the CF to escape the special characters which are in the command, so this is how we doing to do it.</p>
<p><span style="color: #800000;">&lt;cfset</span> strSQL=<span style="color: #339966;">&#8220;</span><span style="color: #339966;">SELECT * FROM TestTable WHERE test_id=</span><span style="color: #99cc00;"><span style="color: #339966;">&#8216;xx&#8217;&#8221;</span><span style="color: #800000;">&gt;</span></span></p>
<p><span style="color: #800000;">&lt;cfquery</span> <span style="color: #800000;">datasource=</span><span style="color: #0000ff;">&#8220;xxxxxx&#8221; </span> <span style="color: #800000;">name=</span><span style="color: #0000ff;">&#8220;xxxxxxx&#8221;</span> <span style="color: #800000;">result=</span><span style="color: #0000ff;">&#8220;xxxxx&#8221;</span><span style="color: #800000;"> &gt;</span><br />
# <span style="color: #ff0000;">&#8216;#strSQL#&#8217;</span> #<br />
<span style="color: #800000;">&lt;/cfquery&gt;</span></p>
<p>Problem solved, your query should work now.. <img src='http://www.fanaticzine.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2008/12/coldfusion-cfquery-character-escape-issue-solved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>change date range of JQuery Datepicker</title>
		<link>http://www.fanaticzine.com/index.php/2008/11/change-date-range-of-jquery-datepicker/</link>
		<comments>http://www.fanaticzine.com/index.php/2008/11/change-date-range-of-jquery-datepicker/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 07:28:41 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Datepicker]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[set Year range]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=43</guid>
		<description><![CDATA[here is the code. this will set the datapicker year from 1956 to 2003.. [sourcecode language='javascript'] $(&#8216;#dateofbirth&#8217;).datepicker({ yearRange: &#8217;1956:2003&#8242; });[/sourcecode]]]></description>
			<content:encoded><![CDATA[<p>here is the code. this will set the datapicker year from 1956 to 2003..</p>
<p>[sourcecode language='javascript']<br />
$(&#8216;#dateofbirth&#8217;).datepicker({<br />
yearRange: &#8217;1956:2003&#8242;<br />
});[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2008/11/change-date-range-of-jquery-datepicker/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to format date, Jquery UI Datepicker</title>
		<link>http://www.fanaticzine.com/index.php/2008/11/how-to-format-date-jquery-ui-datepicker/</link>
		<comments>http://www.fanaticzine.com/index.php/2008/11/how-to-format-date-jquery-ui-datepicker/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 17:31:32 +0000</pubDate>
		<dc:creator>z7oofy</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Datepicker]]></category>
		<category><![CDATA[Format Date]]></category>

		<guid isPermaLink="false">http://www.fanaticzine.com/?p=11</guid>
		<description><![CDATA[Yes, if you are reading this artical, probably you also must have looking for same thing just like I did few mins ago, well let&#8217;s just not keep you searching no more.. so here it is [sourcecode language='javascript']$(&#8216;#txtDate&#8217;).datepicker({ dateFormat: &#8216;dd/mm/yy&#8217; });[/sourcecode] on this example I have used European data format (dd/mm/yy) , you can customize [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, if you are reading this artical, probably you also must have looking for same thing just like I did few mins ago, well let&#8217;s just not keep you searching no more.. so here it is<br />
[sourcecode language='javascript']$(&#8216;#txtDate&#8217;).datepicker({<br />
dateFormat: &#8216;dd/mm/yy&#8217;<br />
});[/sourcecode]<br />
on this example I have used European data format (dd/mm/yy) , you can customize your formatting using following parameters. (from JQuery UI documentation)</p>
<ul style="list-style-type: disc; list-style-image: none; list-style-position: outside; padding-left: 2em;">
<li>d &#8211; day of month (no leading zero)</li>
<li>dd &#8211; day of month (two digit)</li>
<li>D &#8211; day name short</li>
<li>DD &#8211; day name long</li>
<li>m &#8211; month of year (no leading zero)</li>
<li>mm &#8211; month of year (two digit)</li>
<li>M &#8211; month name short</li>
<li>MM &#8211; month name long</li>
<li>y &#8211; year (two digit)</li>
<li>yy &#8211; year (four digit)</li>
<li>&#8216;&#8230;&#8217; &#8211; literal text</li>
<li>&#8221; &#8211; single quote</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.fanaticzine.com/index.php/2008/11/how-to-format-date-jquery-ui-datepicker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

