<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" 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:series="http://unfoldingneurons.com/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"> <channel><title>Comments for David Walsh :: Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</title> <link /> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 15 May 2012 09:32:30 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DavidWalshComments" /><feedburner:info uri="davidwalshcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Comment on jQuery Comment Preview by michael kors factory outlet</title><link>/?p=3392#comment-32185</link> <dc:creator>michael kors factory outlet</dc:creator> <pubDate>Tue, 15 May 2012 09:32:30 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=3392#comment-32185</guid> <description>This articles helps me more.Thanks for your sharing,I will pay more attentions to your blog. Looking forward to your better and better articles.See you next time.
michael kors factory :http://www.michaelkorsfactorystore.com/</description> <content:encoded><![CDATA[<p>This articles helps me more.Thanks for your sharing,I will pay more attentions to your blog. Looking forward to your better and better articles.See you next time.<br
/> michael kors factory :<a
href="http://www.michaelkorsfactorystore.com/" rel="nofollow">http://www.michaelkorsfactorystore.com/</a></p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/enMtn3LAvlE" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Detect DOM Node Insertions with JavaScript and CSS Animations by Daniel</title><link>/?p=5425#comment-32184</link> <dc:creator>Daniel</dc:creator> <pubDate>Mon, 14 May 2012 17:25:03 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=5425#comment-32184</guid> <description>Yeah, this is just vanilla JS, it works all by itself, no framework required - and for the record, jQuery is not magical-unicorn-pixie code, it can't do a single thing JavaScript itself can't do...because it IS JavaScript.</description> <content:encoded><![CDATA[<p>Yeah, this is just vanilla JS, it works all by itself, no framework required &#8211; and for the record, jQuery is not magical-unicorn-pixie code, it can&#8217;t do a single thing JavaScript itself can&#8217;t do&#8230;because it IS JavaScript.</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/I29-Y1FXx2s" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Backup Your MySQL Database Using PHP by Marcus</title><link>/?p=336#comment-32183</link> <dc:creator>Marcus</dc:creator> <pubDate>Mon, 14 May 2012 16:01:31 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=336#comment-32183</guid> <description>Sharing my improvements:
(sorry - my linefeeds got smashed-up, I am trying to improve)
I programmed a small extension to handle numeric values explicitly.
This leads to:
- better standard conformity (no quotes for numeric values)
- less file space required (removing quotes)
- speedup (skip escaping for numeric values)HowTo:
1. Create an array with all numeric types.
2. Get attribute-types for actual table, strip redundant information (in brackets).
3. Setup an array $numflag indicating numeric datatype for each attribute
4. Assign numeric values without quotes.CODE Snippets:
&lt;code&gt;//1..at the top of function
$numtypes=array('tinyint','smallint','mediumint','int','bigint','float','double','decimal','real');//2.. at the top of table-loop
$typesarr=mysql_fetch_array(mysql_query('SHOW COLUMNS FROM '.$table));//3.. below 2
for($i=0; $i&lt;$num_fields; $i++) {
$acttype=trim(preg_replace('/\s*\([^)]*\)/', '', $typesarr[$i]['Type']));// strip brackets from type
if (is_numeric(array_search($acttype,$numtypes))){//numeric type false cannot be checked correctly
$numflag[$i]=1;}else{$numflag[$i]=0;}
}//4.. in the fields loop (innermost)
if ($numflag[$j]==1){$return.= $row[$j] ; } else{
$row[$j] = addslashes($row[$j]);
$row[$j]  = preg_replace("/\r\n/","\\r\\n",$row[$j]);
$return.= '"'.$row[$j].'"' ;
}
&lt;/code&gt;Thanks to David and all other Contributors
Marcus</description> <content:encoded><![CDATA[<p>Sharing my improvements:<br
/> (sorry &#8211; my linefeeds got smashed-up, I am trying to improve)<br
/> I programmed a small extension to handle numeric values explicitly.<br
/> This leads to:<br
/> - better standard conformity (no quotes for numeric values)<br
/> - less file space required (removing quotes)<br
/> - speedup (skip escaping for numeric values)</p><p>HowTo:<br
/> 1. Create an array with all numeric types.<br
/> 2. Get attribute-types for actual table, strip redundant information (in brackets).<br
/> 3. Setup an array $numflag indicating numeric datatype for each attribute<br
/> 4. Assign numeric values without quotes.</p><p>CODE Snippets:<br
/> <code></p><p>//1..at the top of function<br
/> $numtypes=array('tinyint','smallint','mediumint','int','bigint','float','double','decimal','real');</p><p>//2.. at the top of table-loop<br
/> $typesarr=mysql_fetch_array(mysql_query('SHOW COLUMNS FROM '.$table));</p><p>//3.. below 2<br
/> for($i=0; $i&lt;$num_fields; $i++) {<br
/> $acttype=trim(preg_replace('/\s*\([^)]*\)/', '', $typesarr[$i]['Type']));// strip brackets from type<br
/> if (is_numeric(array_search($acttype,$numtypes))){//numeric type false cannot be checked correctly<br
/> $numflag[$i]=1;}else{$numflag[$i]=0;}<br
/> }</p><p>//4.. in the fields loop (innermost)<br
/> if ($numflag[$j]==1){$return.= $row[$j] ; } else{<br
/> $row[$j] = addslashes($row[$j]);<br
/> $row[$j]  = preg_replace("/\r\n/","\\r\\n",$row[$j]);<br
/> $return.= '"'.$row[$j].'"' ;<br
/> }<br
/> </code></p><p>Thanks to David and all other Contributors<br
/> Marcus</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/oZjOdGvOoCs" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Backup Your MySQL Database Using PHP by Marcus</title><link>/?p=336#comment-32182</link> <dc:creator>Marcus</dc:creator> <pubDate>Mon, 14 May 2012 15:53:40 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=336#comment-32182</guid> <description>Sharing my improvements:
I programmed a small extension to handle numeric values explicitly.
This leads to:
- better standard conformity (no quotes for numeric values)
- less file space required (removing quotes)
- speedup (skip escaping for numeric values)HowTo:
1. Create an array with all numeric types.
2. Get attribute-types for actual table, strip redundant information (in brackets).
3. Setup an array $numflag indicating numeric datatype for each attribute
4. Assign numeric values without quotes.CODE Snippets:
&lt;code&gt;//1..at the top of function
$numtypes=array('tinyint','smallint','mediumint','int','bigint','float','double','decimal','real');//2.. at the top of table-loop
$typesarr=mysql_fetch_array(mysql_query('SHOW COLUMNS FROM '.$table));//3.. below 2
for($i=0; $i&lt;$num_fields; $i++) {
$acttype=trim(preg_replace('/\s*\([^)]*\)/', '', $typesarr[$i]['Type']));// strip brackets from type
if (is_numeric(array_search($acttype,$numtypes))){//numeric type false cannot be checked correctly
$numflag[$i]=1;}else{$numflag[$i]=0;}
}//4.. in the fields loop (innermost)
if ($numflag[$j]==1){$return.= $row[$j] ; } else{
$aarr[$j] = addslashes($row[$j]);
$aarr[$j]  = preg_replace("/\r\n/","\\r\\n",$row[$j]);
$return.= '"'.$row[$j].'"' ;
}
&lt;/code&gt;Thanks to David and all other Contributors
Marcus</description> <content:encoded><![CDATA[<p>Sharing my improvements:<br
/> I programmed a small extension to handle numeric values explicitly.<br
/> This leads to:<br
/> - better standard conformity (no quotes for numeric values)<br
/> - less file space required (removing quotes)<br
/> - speedup (skip escaping for numeric values)</p><p>HowTo:<br
/> 1. Create an array with all numeric types.<br
/> 2. Get attribute-types for actual table, strip redundant information (in brackets).<br
/> 3. Setup an array $numflag indicating numeric datatype for each attribute<br
/> 4. Assign numeric values without quotes.</p><p>CODE Snippets:<br
/> <code></p><p>//1..at the top of function<br
/> $numtypes=array('tinyint','smallint','mediumint','int','bigint','float','double','decimal','real');</p><p>//2.. at the top of table-loop<br
/> $typesarr=mysql_fetch_array(mysql_query('SHOW COLUMNS FROM '.$table));</p><p>//3.. below 2<br
/> for($i=0; $i&lt;$num_fields; $i++) {<br
/> $acttype=trim(preg_replace(&#039;/\s*\([^)]*\)/&#039;, &#039;&#039;, $typesarr[$i][&#039;Type&#039;]));// strip brackets from type<br
/> if (is_numeric(array_search($acttype,$numtypes))){//numeric type false cannot be checked correctly<br
/> $numflag[$i]=1;}else{$numflag[$i]=0;}<br
/> }</p><p>//4.. in the fields loop (innermost)<br
/> if ($numflag[$j]==1){$return.= $row[$j] ; } else{<br
/> $aarr[$j] = addslashes($row[$j]);<br
/> $aarr[$j]  = preg_replace(&quot;/\r\n/&quot;,&quot;\\r\\n&quot;,$row[$j]);<br
/> $return.= &#039;&quot;&#039;.$row[$j].&#039;&quot;&#039; ;<br
/> }<br
/> </code></p><p>Thanks to David and all other Contributors<br
/> Marcus</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/Kx1VYZ3pAaA" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on 9 Signs You Shouldn’t Hire THAT Web Guy by kcmr</title><link>/?p=173#comment-32181</link> <dc:creator>kcmr</dc:creator> <pubDate>Mon, 14 May 2012 13:36:29 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/9-signs-not-to-hire-that-web-guy/#comment-32181</guid> <description>The article is not completely a copy: he has omitted the first point "He calls himself a webmasters" for obvious reasons XD</description> <content:encoded><![CDATA[<p>The article is not completely a copy: he has omitted the first point &#8220;He calls himself a webmasters&#8221; for obvious reasons XD</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/DVIgdTa4Ql4" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on PHP Serialize() &amp; Unserialize() Issues by Kasimir</title><link>/?p=224#comment-32180</link> <dc:creator>Kasimir</dc:creator> <pubDate>Mon, 14 May 2012 13:21:11 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/php-serialize-unserialize-issues#comment-32180</guid> <description>This not only solves problems serializing data with quotes and stuff, but also is a solution if you want to save an array with different kinds of data (text and binary, for instance) and don't want to worry about corruption somewhere along the way.Yes, the downside is your data increases in size when encoding, but serious amounts of data should not be stored in serialized format in a database anyway. For small amounts, it's really not a big issue and a great solution.</description> <content:encoded><![CDATA[<p>This not only solves problems serializing data with quotes and stuff, but also is a solution if you want to save an array with different kinds of data (text and binary, for instance) and don&#8217;t want to worry about corruption somewhere along the way.</p><p>Yes, the downside is your data increases in size when encoding, but serious amounts of data should not be stored in serialized format in a database anyway. For small amounts, it&#8217;s really not a big issue and a great solution.</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/Fxs6N2iifjI" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Retrieve Your Gmail Emails Using PHP and IMAP by asd</title><link>/?p=2351#comment-32179</link> <dc:creator>asd</dc:creator> <pubDate>Mon, 14 May 2012 12:23:28 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=2351#comment-32179</guid> <description>&lt;code&gt;
/* output the email body */
$output.= ”.$message.”;}echo $output;
}/* close the connection */
imap_close($inbox);#######my full code####david walsh codewindow.addEvent(‘domready’,function() {
var togglers = $$(‘div.toggler’);
if(togglers.length) var gmail = new Fx.Accordion(togglers,$$(‘div.body’));
togglers.addEvent(‘click’,function() { this.addClass(‘read’).removeClass(‘unread’); });
//togglers[0].fireEvent(‘click’); //first one starts out read
});’;
$output.= ”.$overview[0]-&gt;subject.’ ‘;
$output.= ”.$overview[0]-&gt;from.”;
$output.= ‘on ‘.$overview[0]-&gt;date.”;
$output.= ”;/* output the email body */
$output.= ”.$message.”;}echo $output;
}/* close the connection */
imap_close($inbox);
&lt;/code&gt;</description> <content:encoded><![CDATA[<p><code><br
/> /* output the email body */<br
/> $output.= ”.$message.”;</p><p>}</p><p>echo $output;<br
/> }</p><p>/* close the connection */<br
/> imap_close($inbox);</p><p>#######my full code####</p><p>david walsh code</p><p>window.addEvent(‘domready’,function() {<br
/> var togglers = $$(‘div.toggler’);<br
/> if(togglers.length) var gmail = new Fx.Accordion(togglers,$$(‘div.body’));<br
/> togglers.addEvent(‘click’,function() { this.addClass(‘read’).removeClass(‘unread’); });<br
/> //togglers[0].fireEvent(‘click’); //first one starts out read<br
/> });</p><p>’;<br
/> $output.= ”.$overview[0]-&gt;subject.’ ‘;<br
/> $output.= ”.$overview[0]-&gt;from.”;<br
/> $output.= ‘on ‘.$overview[0]-&gt;date.”;<br
/> $output.= ”;</p><p>/* output the email body */<br
/> $output.= ”.$message.”;</p><p>}</p><p>echo $output;<br
/> }</p><p>/* close the connection */<br
/> imap_close($inbox);<br
/> </code></p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/TrIQeznb8ao" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Increase PHP Script Execution Time Limit Using ini_set() by Anon</title><link>/?p=308#comment-32178</link> <dc:creator>Anon</dc:creator> <pubDate>Mon, 14 May 2012 09:20:25 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=308#comment-32178</guid> <description>No, 10 minutes is not maximum execution time. I tried it out and script ran 45+ minutes before I stopped it myself.Just use:
&lt;code&gt;set_time_limit(0);&lt;/code&gt;
So there is no limit.</description> <content:encoded><![CDATA[<p>No, 10 minutes is not maximum execution time. I tried it out and script ran 45+ minutes before I stopped it myself.</p><p>Just use:<br
/> <code>set_time_limit(0);</code><br
/> So there is no limit.</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/TDDtF4kD_qk" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Detect DOM Node Insertions with JavaScript and CSS Animations by sasklacz</title><link>/?p=5425#comment-32177</link> <dc:creator>sasklacz</dc:creator> <pubDate>Mon, 14 May 2012 09:08:16 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=5425#comment-32177</guid> <description>why shouldn't it be ? Whole javascript here is just adding event listeners.</description> <content:encoded><![CDATA[<p>why shouldn&#8217;t it be ? Whole javascript here is just adding event listeners.</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/FJUUnyNla9A" height="1" width="1"/>]]></content:encoded> </item> <item><title>Comment on Better onChange with Dijit’s intermediateChanges by Tas</title><link>/?p=5211#comment-32172</link> <dc:creator>Tas</dc:creator> <pubDate>Sun, 13 May 2012 21:51:21 +0000</pubDate> <guid isPermaLink="false">http://davidwalsh.name/?p=5211#comment-32172</guid> <description>Ah, thanks for this! I think intermediateChanges should be true by default, just like in Flex. I do not understand why it isn't.</description> <content:encoded><![CDATA[<p>Ah, thanks for this! I think intermediateChanges should be true by default, just like in Flex. I do not understand why it isn&#8217;t.</p> <img src="http://feeds.feedburner.com/~r/DavidWalshComments/~4/hN-1Qv_2DJI" height="1" width="1"/>]]></content:encoded> </item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (Requested URI contains query)
Database Caching 2/12 queries in 0.011 seconds using disk: basic
Object Caching 730/742 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-15 04:36:32 -->

