<?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>Muller Digital &#124; Web Development &#187; Programming</title>
	<atom:link href="http://news.mullerdigital.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.mullerdigital.com</link>
	<description>Web Development</description>
	<lastBuildDate>Thu, 29 Dec 2011 15:10:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL remove duplicates</title>
		<link>http://news.mullerdigital.com/2011/12/09/mysql-remove-duplicates/</link>
		<comments>http://news.mullerdigital.com/2011/12/09/mysql-remove-duplicates/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 17:27:48 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=245</guid>
		<description><![CDATA[DELETE n1 FROM table n1, table n2 WHERE n1.id > 10000 AND n1.id < 11000 AND n1.id > n2.id AND n1.EMAIL = n2.EMAIL; The above MySQL query will delete duplicate email addresses between the id&#8217;s 10000 and 11000. Breaking the query into blocks of 1000 id&#8217;s will reduce strain the MySQL server.]]></description>
			<content:encoded><![CDATA[<p><code>DELETE n1 FROM table n1, table n2 WHERE n1.id > 10000 AND n1.id < 11000 AND n1.id > n2.id AND n1.EMAIL = n2.EMAIL;</code></p>
<p>The above MySQL query will delete duplicate email addresses between the id&#8217;s 10000 and 11000. Breaking the query into blocks of 1000 id&#8217;s will reduce strain the MySQL server.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2011/12/09/mysql-remove-duplicates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL find duplicates</title>
		<link>http://news.mullerdigital.com/2011/12/09/mysql-find-duplicates/</link>
		<comments>http://news.mullerdigital.com/2011/12/09/mysql-find-duplicates/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 17:23:08 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=242</guid>
		<description><![CDATA[select EMAIL, count(EMAIL) as cnt from TABLE group by EMAIL having cnt > 1 ORDER BY `cnt` DESC The above MySQL query will find and list the number of multiple duplicate emails in a table.]]></description>
			<content:encoded><![CDATA[<p><code>select EMAIL, count(EMAIL) as cnt<br />
from TABLE<br />
group by EMAIL<br />
having cnt > 1 ORDER BY `cnt` DESC</code></p>
<p>The above MySQL query will find and list the number of multiple duplicate emails in a table.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2011/12/09/mysql-find-duplicates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP imagick &#8211; website references, manuals and information</title>
		<link>http://news.mullerdigital.com/2011/09/07/php-imagick-website-references-manuals-and-information/</link>
		<comments>http://news.mullerdigital.com/2011/09/07/php-imagick-website-references-manuals-and-information/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 18:10:45 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[imagick]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=227</guid>
		<description><![CDATA[http://eclecticdjs.com/mike/tutorials/php/imagemagick/ http://jamesroberts.name/blog/tag/imagick/ Mikko&#8217;s blog imagick is a more advanced graphics library than the default GD for PHP, but the ImageMagick PHP library imagick is only documented on PHP.net comments, so using the library can be a bit challenging, but the sites above help in using the library.]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://eclecticdjs.com/mike/tutorials/php/imagemagick/" title="http://eclecticdjs.com/mike/tutorials/php/imagemagick/" target="_blank">http://eclecticdjs.com/mike/tutorials/php/imagemagick/</a></li>
<li><a href="http://jamesroberts.name/blog/tag/imagick/" title="http://jamesroberts.name/blog/tag/imagick/" target="_blank">http://jamesroberts.name/blog/tag/imagick/</a></li>
<li><a href="http://valokuva.org/?cat=1" title="http://valokuva.org/?cat=1" target="_blank">Mikko&#8217;s blog</a></li>
</ul>
<p>imagick is a more advanced graphics library than the default GD for PHP, but the ImageMagick PHP library imagick is only documented on <a href="http://php.net/manual/en/book.imagick.php" title="iMagick on PHP.net" target="_blank">PHP.net</a> comments, so using the library can be a bit challenging, but the sites above help in using the library.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2011/09/07/php-imagick-website-references-manuals-and-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple MySQL query with PHP</title>
		<link>http://news.mullerdigital.com/2011/05/31/multiple-mysql-query-with-php/</link>
		<comments>http://news.mullerdigital.com/2011/05/31/multiple-mysql-query-with-php/#comments</comments>
		<pubDate>Tue, 31 May 2011 15:55:05 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=216</guid>
		<description><![CDATA[// Enter multiple query string $query_str = " -- Update table UPDATE t SET id = id + 1; -- Insert into table INSERT INTO example (name, age) VALUES('John Doe', '23' ); "; // Explode string into separate queries $query = explode(';',$query_str); // Loop through exploded queries and execute foreach($query as $index => $sql) { [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
// Enter multiple query string<br />
$query_str = "<br />
-- Update table<br />
UPDATE t SET id = id + 1;<br />
-- Insert into table<br />
INSERT INTO example (name, age) VALUES('John Doe', '23' );<br />
";<br />
// Explode string into separate queries<br />
$query = explode(';',$query_str);<br />
// Loop through exploded queries and execute<br />
foreach($query as $index => $sql) {<br />
	$result = mysql_query($sql,$conn2) or userDisplayMessage(mysql_error().' '.__FILE__.':'.__LINE__);<br />
}<br />
</code><br />
Or, you can use <a href="http://www.php.net/manual/en/book.mysqli.php" target="_blank">mysqli</a> (MySQL Improved extension), which has a <a href="http://www.php.net/manual/en/mysqli.multi-query.php" target="_blank">mysqli_multi_query</a> function.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2011/05/31/multiple-mysql-query-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 change cursor to pointer or hand on any element</title>
		<link>http://news.mullerdigital.com/2010/11/09/ie6-change-cursor-to-pointer-or-hand-on-any-element/</link>
		<comments>http://news.mullerdigital.com/2010/11/09/ie6-change-cursor-to-pointer-or-hand-on-any-element/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:18:51 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=175</guid>
		<description><![CDATA[IE6 only supports :hover on &#60;a&#62; elements. To change the cursor to a pointer or hand on hover of any non-anchor element, say a div: In css div { cursor:hand; cursor:pointer; } Do not add the pseudo state &#8216;:hover&#8217;, and it will work cross browser.]]></description>
			<content:encoded><![CDATA[<p>IE6 only supports :hover on &lt;a&gt; elements. To change the cursor to a pointer or hand on hover of any non-anchor element, say a div:<br />
<em>In css</em><br />
<code><br />
div {<br />
cursor:hand;<br />
cursor:pointer;<br />
}</code><br />
Do not add the pseudo state &#8216;:hover&#8217;, and it will work cross browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/11/09/ie6-change-cursor-to-pointer-or-hand-on-any-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound after command in terminal has finished</title>
		<link>http://news.mullerdigital.com/2010/10/06/sound-after-command-in-terminal-has-finished/</link>
		<comments>http://news.mullerdigital.com/2010/10/06/sound-after-command-in-terminal-has-finished/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 19:40:19 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/2010/10/06/sound-after-command-in-terminal-has-finished/</guid>
		<description><![CDATA[Add &#8221; &#038;&#038; say Finished &#8220;(ignore the quotes) after any command in OSX terminal and you will hear a voice say &#8220;finished&#8221; when the command has finished executing. So a command like: sudo find / -name hosts* &#038;&#038; say &#8220;hosts files search complete&#8221; Would alert you when the find command has finished searching for hosts [...]]]></description>
			<content:encoded><![CDATA[<p>Add &#8221; &#038;&#038; say Finished &#8220;(ignore the quotes) after any command in OSX terminal and you will hear a voice say &#8220;finished&#8221; when the command has finished executing.<br />
So a command like:</p>
<p>sudo find / -name hosts* &#038;&#038; say &#8220;hosts files search complete&#8221;</p>
<p>Would alert you when the find command has finished searching for hosts files. This is a helpful trick when you don&#8217;t want to keep checking back at an executing command to see if it&#8217;s finished, or end-up forgetting you have one running.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/10/06/sound-after-command-in-terminal-has-finished/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coda &#8211; Error code 37 &#8211; &#8220;Host Key Changed for&#8230;&#8221;</title>
		<link>http://news.mullerdigital.com/2010/07/06/coda-error-code-37-host-key-changed-for/</link>
		<comments>http://news.mullerdigital.com/2010/07/06/coda-error-code-37-host-key-changed-for/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 20:35:52 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Products]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=159</guid>
		<description><![CDATA[Coda error code 37 is caused when a site&#8217;s ip address changes. This causes the SSH keys to no longer valid. It can be fixed by connecting via SSH with Terminal, inside Coda, and reading the response. The response will tell you what line needs to be deleted in the known_hosts file. The known_hosts file [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.panic.com/coda/" target="_blank">Coda</a> error code 37 is caused when a site&#8217;s ip address changes. This causes the SSH keys to no longer valid. It can be fixed by connecting via SSH with <strong>Terminal</strong>, inside Coda, and reading the response. The response will tell you what line needs to be deleted in the <a href="http://amath.colorado.edu/computing/unix/sshknownhosts.html" target="_blank">known_hosts</a> file. The known_hosts file is located /Users/user_name/.ssh/known_hosts</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/07/06/coda-error-code-37-host-key-changed-for/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow PHP to access files but not website visitors</title>
		<link>http://news.mullerdigital.com/2010/04/29/allow-php-to-access-files-but-not-website-visitors/</link>
		<comments>http://news.mullerdigital.com/2010/04/29/allow-php-to-access-files-but-not-website-visitors/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:56:09 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=135</guid>
		<description><![CDATA[Add the following to an .htaccess file, and all .php files under the .htaccess file will not be available via the web: &#60;FilesMatch "\.php$"&#62; Order deny,allow Deny from all &#60;/FilesMatch&#62; The files will be available through PHP though. As PHP is not requesting the files through Apache webserver, rather is it requesting include files via [...]]]></description>
			<content:encoded><![CDATA[<p>Add the following to an .htaccess file, and all .php files under the .htaccess file will not be available via the web:<br />
<code>&lt;FilesMatch "\.php$"&gt;<br />
 Order deny,allow<br />
 Deny from all<br />
&lt;/FilesMatch&gt;</code></p>
<p>The files will be available through PHP though. As PHP is not requesting the files through Apache webserver, rather is it requesting include files via the file system.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/04/29/allow-php-to-access-files-but-not-website-visitors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webcal link in IE</title>
		<link>http://news.mullerdigital.com/2010/03/08/webcal-link-in-ie/</link>
		<comments>http://news.mullerdigital.com/2010/03/08/webcal-link-in-ie/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 02:21:06 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Win32]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/2010/03/08/webcal-link-in-ie/</guid>
		<description><![CDATA[webcal links (eg. webcal://www.domain.com/calendar.ics)will only work in Internet Explorer if Outlook 2007 is installed on the users machine. Office 2003 or earlier do not install the support required to make webcal links active.]]></description>
			<content:encoded><![CDATA[<p>webcal links (eg. webcal://www.domain.com/calendar.ics)will only work in Internet Explorer if Outlook 2007 is installed on the users machine. Office 2003 or earlier do not install the support required to make webcal links active.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/03/08/webcal-link-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;This page contains both secure and nonsecure items&#8221; IE fix</title>
		<link>http://news.mullerdigital.com/2010/01/26/this-page-contains-both-secure-and-nonsecure-items-ie-fix/</link>
		<comments>http://news.mullerdigital.com/2010/01/26/this-page-contains-both-secure-and-nonsecure-items-ie-fix/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 17:09:10 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://news.mullerdigital.com/?p=124</guid>
		<description><![CDATA[Use a CGI proxy service on your secure site. Download CGIProxy. Upload to your sites cgi-bin folder (most hosting packages will have that set already). Once uploaded, change the permissions of the &#8216;nph-proxy.cgi&#8217; file to 755 (rwxr-xr-x) Owner=Read,Write,Excute &#160; Group=Read, No Write, Excute &#160; Everyone=Read, No Write, Execute. Visit the CGI script on your secure [...]]]></description>
			<content:encoded><![CDATA[<p>Use a CGI proxy service on your secure site. Download <a href="http://www.jmarshall.com/tools/cgiproxy/" target="_blank">CGIProxy</a>. Upload to your sites cgi-bin folder (most hosting packages will have that set already). Once uploaded, change the permissions of the &#8216;nph-proxy.cgi&#8217; file to 755 (rwxr-xr-x) Owner=Read,Write,Excute &nbsp; Group=Read, No Write, Excute &nbsp; Everyone=Read, No Write, Execute.<br />
Visit the CGI script on your secure address: https://www.yoursite.com/cgi-bin/nph-proxy.cgi<br />
Type in the address of the non-secure item you&#8217;re trying to show on your secure site. Uncheck &#8220;Show URL entry form&#8221;. Click &#8220;Begin Browsing&#8221;.<br />
After the page loads, you can copy the address from the address bar, and it will be using your secure address.<br />
Should look something like: https://www.yoursite.com/cgi-bin/nph-proxy.cgi/000000A/http/www.nonsecure-site.com/awesome-page.html<br />
Now paste that address in your site and no more IE warning.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.mullerdigital.com/2010/01/26/this-page-contains-both-secure-and-nonsecure-items-ie-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

