<?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>Richard &#038; Stephanie Sipe &#187; Programming</title>
	<atom:link href="http://www.richandstephsipe.com/wordpress/category/technology/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richandstephsipe.com/wordpress</link>
	<description>Richard and Stephanie Sipe's Website</description>
	<lastBuildDate>Fri, 26 Mar 2010 21:37:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Drop Down Displaying Behind Flash Movie</title>
		<link>http://www.richandstephsipe.com/wordpress/2008/06/18/css-drop-down-displaying-behind-flash-movie/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2008/06/18/css-drop-down-displaying-behind-flash-movie/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 20:32:06 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2008/06/18/css-drop-down-displaying-behind-flash-movie/</guid>
		<description><![CDATA[I was recently working on a new gallery display using a flash interpretation of the Apple Cover Flow view. The problem I had was the flash movie swf content was displaying infront of the css drop down on the site. The css dropdown was built using divs and the flash content was in a div [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently working on a new gallery display using a flash interpretation of the Apple Cover Flow view. The problem I had was the flash movie swf content was displaying infront of the css drop down on the site. The css dropdown was built using divs and the flash content was in a div but it didn&#8217;t seem to matter the settings on those divs.</p>
<p>To get the flash to display behind the css drop down menu you just have to set the wmode property to transparent. This setting must be made both in the AC_FL_RunContent call and in the Flash Object or by choosing Transparent Window in the Publish Settings menu in flash. </p>
<p>[tags]flash,css[\tags]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2008/06/18/css-drop-down-displaying-behind-flash-movie/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PicLens Can Not Find photos.rss PicLens rss Feed</title>
		<link>http://www.richandstephsipe.com/wordpress/2008/05/19/piclens-can-not-find-photosrss-piclens-rss-feed/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2008/05/19/piclens-can-not-find-photosrss-piclens-rss-feed/#comments</comments>
		<pubDate>Mon, 19 May 2008 20:45:18 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2008/05/19/piclens-can-not-find-photosrss-piclens-rss-feed/</guid>
		<description><![CDATA[When I first tried to get PicLens enabled on my website photogallery I could not get the PicLens plugin to recognise my pictures rss feed. I had created my pictures.rss feed and instructed by the PicLens webmaster guide and pointed the page to the rss file using the link call at the top of my [...]]]></description>
			<content:encoded><![CDATA[<p>When I first tried to get PicLens enabled on my website <a href="http://www.richandstephsipe.com/wordpress/richard-stephanie-sipes-picture-gallery/">photogallery</a> I could not get the PicLens plugin to recognise my pictures rss feed. I had created my pictures.rss feed and instructed by the <a href="http://www.piclens.com/lite/webmasterguide.php">PicLens webmaster guide</a> and pointed the page to the rss file using the link call at the top of my page.</p>
<p><code>&lt;link id=&quot;gallery&quot; rel=&quot;alternate&quot; href=&quot;photos.rss&quot; type=&quot;application/rss+xml&quot;&gt;</code></p>
<p>I double checked the format of my photos.rss page but I still could not get PicLens to recognize it, and instead kept getting the error:</p>
<blockquote><p>&#8220;This site does not yet support PicLens.&#8221; </p></blockquote>
<p><strong>The Cause:</strong> I discovered was that my web host (GoDaddy Shared Hosting Plan) was not correctly serving the rss file. </p>
<p><strong>The Solution:</strong> Rename the photos.rss feed to photos.xml. Since the rss file is an XML file I knew it would be correctly served and would be hopefully be discovered by PicLens. For me changing the rss file to an xml file extension solved my &#8220;This site does not yet support PicLens&#8221; Error.</p>
<p>The second issue I discovered was that the webmaster guide does not list the guid field in the spec yet it is seems to be necessary for PicLens to match images on your site to the declarations in the rss feed. The guid field is included in the example photos.rss fied that comes with the downloadable webmaster guide which seemed to work unlike mine was so it was my clue the rss guid field was necessary. The rss spec clasifies the guid field as a unique identifier. I chose to use the filename as the guid for my photos.rss (photos.xml field as is the case for my setup) since it is unique and change the isPermaLink field to be true since it  is. I could have also used the ID field of that row in my Database but I figured the PermaLink provided me with more information.</p>
<p><code> &lt;guid isPermaLink=&quot;true&quot;&gt;picture_214_2_1211225557.jpg&lt;/guid&gt; </code></p>
<p>Let me know if this solves your PicLens error or if you have any others I may be able to help with.</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/PicLens" rel="tag">PicLens</a>, <a href="http://technorati.com/tag/photos.rss" rel="tag"> photos.rss</a>, <a href="http://technorati.com/tag/rss" rel="tag"> rss</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2008/05/19/piclens-can-not-find-photosrss-piclens-rss-feed/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Encrypt and Decrypt Strings in mySQL sql Queries</title>
		<link>http://www.richandstephsipe.com/wordpress/2008/02/06/encrypt-and-decrypt-strings-in-mysql-sql-queries/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2008/02/06/encrypt-and-decrypt-strings-in-mysql-sql-queries/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 00:22:23 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2008/02/06/encrypt-and-decrypt-strings-in-mysql-sql-queries/</guid>
		<description><![CDATA[Many times you need a quick encryption solution in a database but do not want the overhead of coding something more complex. mySQL provides you with a simple encryption solution directly in the sql query. 
TO ENCRYPT:
INSERT INTO users (user, pass) VALUES (&#8217;$username&#8217;, AES_ENCRYPT(&#8217;$pass&#8217;, &#8217;secret encryption key&#8217;));
TO DECRYPT:
SELECT user, AES_DECRYPT(pass, &#8217;secret encryption key&#8217;) FROM users
]]></description>
			<content:encoded><![CDATA[<p>Many times you need a quick encryption solution in a database but do not want the overhead of coding something more complex. mySQL provides you with a simple encryption solution directly in the sql query. </p>
<p>TO ENCRYPT:<br />
<strong>INSERT INTO users (user, pass) VALUES (&#8217;$username&#8217;, AES_ENCRYPT(&#8217;$pass&#8217;, &#8217;secret encryption key&#8217;));</strong></p>
<p>TO DECRYPT:<br />
<strong>SELECT user, AES_DECRYPT(pass, &#8217;secret encryption key&#8217;) FROM users</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2008/02/06/encrypt-and-decrypt-strings-in-mysql-sql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up osCommerce UPS XML Module w/ GoDaddy Shared Hosting</title>
		<link>http://www.richandstephsipe.com/wordpress/2008/02/05/setting-up-oscommerce-ups-xml-module-w-godaddy-shared-hosting/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2008/02/05/setting-up-oscommerce-ups-xml-module-w-godaddy-shared-hosting/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 00:04:30 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2008/02/05/setting-up-oscommerce-ups-xml-module-w-godaddy-shared-hosting/</guid>
		<description><![CDATA[I recently had all kinds of problems installing the UPS XML Shipping Module on my osCommerce shopping cart. I (thought I) followed the setup instructions correctly but every time I actually tried to checkout a shopping cart the shipping checkout page would hang and then I would get a mySQL timeout error. This error made [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had all kinds of problems installing the UPS XML Shipping Module on my osCommerce shopping cart. I (thought I) followed the setup instructions correctly but every time I actually tried to checkout a shopping cart the shipping checkout page would hang and then I would get a mySQL timeout error. This error made no sense because the mySQL database was mostly empty and the shipping query is not that intensive.</p>
<p>After much debugging and hair pulling I found the solution. Since the website is set up on a GoDaddy Shared Hosting plan, the curl call to the UPS XML api was failing. <a href="http://help.godaddy.com/article/289">GoDaddy Shared Hosting uses a curl proxy</a> and you must configure  any CURL requests to go through that proxy.</p>
<p>Below is the solution, which I am sad to say I found at the very end of the readme.txt document included with the UPS XML package AFTER I figured it out the HARD WAY! DOH and DOH. I am embarrassed to say I stopped reading the instructions when I thought I got to the end but the last last step is how to make it work with GoDaddy Hosting. Hopefully this post will save someone similar frustrations by being able to quickly find the solution with a google search!</p>
<p>From the readme.txt file &#8230;</p>
<p><code>----------------------------</p>
<p>STEP 12 ** FOR GODADDY HOSTING ONLY **</p>
<p>----------------------------</p>
<p>A number of people using GoDaddy for their hosting have found that the UPSXML module times out when getting rate quotes. This is due to the fact that GoDaddy uses a special setup for the https connections, namely a proxy server.</p>
<p>In that case (haven't tested this, but this is a compilation from the postings and uploads) change a part of the code in catalog/includes/modules/shipping/upsxml.php</p>
<p>Line 662-670</p>
<p>**REPLACE**</p>
<p>            // uncomment the next line if you get curl error 60: error setting certificate verify locations<br />
            // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br />
            // uncommenting the next line is most likely not necessary in case of error 60<br />
            // curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);</p>
<p>            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
            curl_setopt($ch, CURLOPT_HEADER, 0);<br />
            curl_setopt($ch, CURLOPT_POST, 1);<br />
            curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest);<br />
            curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout);</p>
<p>**WITH**</p>
<p>// BOF GODADDY STUFF<br />
            // uncomment the next line if you get curl error 60: error setting certificate verify locations<br />
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);<br />
            // uncommenting the next line is most likely not necessary in case of error 60<br />
            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);<br />
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
            curl_setopt($ch, CURLOPT_HEADER, 0);<br />
            curl_setopt($ch, CURLOPT_POST, 1);<br />
            curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest);<br />
            curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);<br />
            curl_setopt($ch, CURLOPT_TIMEOUT, 120);<br />
            curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);<br />
            curl_setopt ($ch, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");</p>
<p>// EOF GODADDY STUFF</code></p>
<p>Technorati Tags: <a href="http://technorati.com/tag/osCommerce" rel="tag">osCommerce</a>, <a href="http://technorati.com/tag/GoDaddy" rel="tag"> GoDaddy</a>, <a href="http://technorati.com/tag/curl" rel="tag"> curl</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2008/02/05/setting-up-oscommerce-ups-xml-module-w-godaddy-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mySQL Error #1421</title>
		<link>http://www.richandstephsipe.com/wordpress/2007/03/29/mysql-error-1421/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2007/03/29/mysql-error-1421/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 19:38:12 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2007/03/29/mysql-error-1421/</guid>
		<description><![CDATA[I was recently coding a PHP application that connected to and interacted with a mySQL server. One of my sql scripts was producing a mySQL Error 1421 that I had not seen before. Here is the sql that I was running, the error, the resolution, and the reason.
The SQL: 
INSERT INTO my_table(
&#160;field1, field2, field3, field4, [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently coding a PHP application that connected to and interacted with a mySQL server. One of my sql scripts was producing a mySQL Error 1421 that I had not seen before. Here is the sql that I was running, the error, the resolution, and the reason.</p>
<p><strong>The SQL:</strong> </p>
<blockquote><p><strong>INSERT INTO</strong> my_table(<br />
&nbsp;field1, field2, field3, field4, field5<br />
)<br />
<strong>SELECT</strong> (<br />
&nbsp;fieldA, fieldB, 1234, NOW(), fieldC<br />
)<br />
<strong>FROM</strong> my_table_two<br />
<strong>WHERE</strong> my_table_two.PK =1</p></blockquote>
<p><strong>The error:</strong></p>
<blockquote><p>MySQL said: Error#1241 &#8211; Operand should contain 1 column(s) </p></blockquote>
<p><strong>The resolution:</strong> Remove the Parentheses () around the second embedded SELECT statement so the statement is as follows. </p>
<blockquote><p><strong>INSERT INTO</strong> my_table(<br />
&nbsp;field1, field2, field3, field4, field5<br />
)<br />
<strong>SELECT</strong><br />
&nbsp;fieldA, fieldB, 1234, NOW(), fieldC<br />
<strong>FROM</strong> my_table_two<br />
<strong>WHERE</strong> my_table_two.PK =1</p></blockquote>
<p><strong>The reason the error occurs:</strong> When you ad parentheses () around the SELECT columns you create an ordered list of values or a <a href="http://en.wikipedia.org/wiki/Tuple">tuple</a>. The SELECT statement expects a list of individual values.   Or in simpler terms you are giving it the array[1][2] when it expects the values 1 and 2. You can recreate this error by running this sql statement SELECT 1,2 which will return 1 2 amazingly. Then run SELECT (1,2) which will return ERROR #1241 &#8211; Operand should contain 1 column(s). For me it occurred because I copied and pasted code from an insert statement to not have to retype all the fields and grabbed a little too much in my copy.</p>
<p><strong>The Cliff Notes Version</strong> If you get a mySQL ERROR 1241 then look for some unnecessary parentheses surrounding your SELECT statement and remove them!</p>
<p>Technorati Tags: <a href="http://technorati.com/tag/mySQL" rel="tag">mySQL</a>, <a href="http://technorati.com/tag/1241" rel="tag">1241</a>, <a href="http://technorati.com/tag/Error" rel="tag">Error</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2007/03/29/mysql-error-1421/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightbox with always visible Prev and Next Links</title>
		<link>http://www.richandstephsipe.com/wordpress/2007/01/05/lightbox-with-always-visible-prev-and-next-links/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2007/01/05/lightbox-with-always-visible-prev-and-next-links/#comments</comments>
		<pubDate>Fri, 05 Jan 2007 22:48:34 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2007/01/05/lightbox-with-always-visible-prev-and-next-links/</guid>
		<description><![CDATA[The Problem: Lightbox Prev and Next Navigation being visible onMouseOver is not obvious enough
After enabling Lightbox on my picture gallery I quickly realized that the onMouseOver Prev and Next on the Lightbox were way to confusing for my viewers    The problem with the design it the Prev and Next links on the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Problem: Lightbox Prev and Next Navigation being visible onMouseOver is not obvious enough</strong><br />
After enabling Lightbox on my <a title="Sipe Family Picture Gallery" href="http://www.richandstephsipe.com/pictureGallery.php">picture gallery</a> I quickly realized that the onMouseOver Prev and Next on the Lightbox were way to confusing for my viewers <img src='http://www.richandstephsipe.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The problem with the design it the Prev and Next links on the Lightbox pop-up are mystery navigation. If you don&#8217;t know to mouse over the right or left side of the image in order to get the links to appear, you don&#8217;t.</p>
<p><strong>The Solution: Change lightbox.css to make the navigation graphics always visible </strong><br />
My solution was to change the stylesheet (lightbox.css) to fix the display of the prev and next links to always be visible. I am OK with the prevLabel.gif and nextLabel.gif always showing on top of the image because it makes the navigation so much more obvious.</p>
<p>I know this fix is pretty obvious to the coder types but since many people who use the LightBox Library on their website are not so savvy I hope to take the mystery out of this fix. Simply:<br />
1) Download the new <a id="p84" href="http://www.richandstephsipe.com/wordpress/wp-content/uploads/2007/01/lightboxcss.txt">Lightbox CSS File</a>.<br />
2) Remove the .txt from the end of the filename.<br />
3) Make sure the nextLabel.gif and prevLabel.gif and blank.gif are pointed to in the right directory (if they are not in the ./img/ directory you need to change anywhere it says img/ to your directory name, for example images/)<br />
4) Upload the new lightbox.css file to replace the old one</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2007/01/05/lightbox-with-always-visible-prev-and-next-links/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Lightbox with iFrames Reloaded</title>
		<link>http://www.richandstephsipe.com/wordpress/2006/12/20/lightbox-with-iframes-reloaded/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2006/12/20/lightbox-with-iframes-reloaded/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 13:57:48 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2006/12/20/lightbox-with-iframes-reloaded/</guid>
		<description><![CDATA[I recently redesigned my picture gallery as part of moving my website to a WordPress powered site. As part of that redesign, I wanted to move my full size picture view to one that uses LightBox JS 2.0. That worked out smashingly until I decided that I wanted the home movies in my gallery to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently redesigned my <a title="Richard and Stephanie Sipe Picture Gallery" href="http://www.richandstephsipe.com/wordpress/richard-stephanie-sipes-picture-gallery/">picture gallery</a> as part of moving my website to a WordPress powered site. As part of that redesign, I wanted to move my full size picture view to one that uses <a title="LightBox JS v2.0" href="http://www.huddletogether.com/projects/lightbox2/">LightBox JS 2.0</a>. That worked out smashingly until I decided that I wanted the home movies in my gallery to also display in a LightBox frame.  Turns out that LightBox is coded to display image files and does not work out of the Box (har har har) for displaying movies.</p>
<p>After a quick google search I stumbled upon the MPOV blog and a post on <a title="MPOV Lightbox with Iframes" href="http://mpov.wordpress.com/2006/08/08/lightbox-with-iframes/">Lightbox with iframes</a>. I downloaded his script and plugged it in instead of my current lightbox.js file. It worked great to display the movies but wouldn&#8217;t display the images because of a bug. To display my Flash movies in the new iFrame LightBox JS v2.0 I just edited the existing link to the Flash created simple HTML file to include the rel=&#8221;lightbox&#8221; property. The HTML file is simply a file with an embedded Flash movie (.flv) playing file (.swf).</p>
<p>My issue with the new hacked LightBox was that although it now allowed me to define a height for the iFrame and Lightbox, it didn&#8217;t support setting the width of the iFrame and the LightBox and it would no longer display the images. So, when my Flash movie would load in LightBox it, depending on its size, would have a scroll bar. You can set the width at the top of the lightbox.js as the iFrameWidth variable but my videos are a variety of sizes so I needed to be able to dynamically set the width for the LightBox/iFrame.</p>
<p>No biggie, though, with the addition of a few lines of code the new Lightbox with iFrames now supports setting the height and width of the iFrame and therefore LightBox and it also now displays images <img src='http://www.richandstephsipe.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . To pass in the width and height use: rel=&#8221;lightbox|WIDTH|HEIGHT&#8221;. For instance if you want to display a 640px X 480px movie you would use rel=&#8221;lightbox|660|500&#8243; The script automatically adds the defined LightBox border (var = borderSize) x 2 to the width and height.</p>
<p>Download the new <a title="LightBox with iFrames Reloaded" target="_blank" href="http://www.richandstephsipe.com/wordpress/wp-content/uploads/2007/01/lightbox.txt">LightBox with iFrames Reloaded</a><br />
Install by changing the extension to .js from .txt and replace your existing lightbox.js file with the new one.<br />
Note: You will need the full LightBox v2.0 installed already which you can download from <a title="LightBox JS v2.0" href="http://www.huddletogether.com/projects/lightbox2/">here</a>.</p>
<p>For an example of using LightBox to open embedded Flash movies and standard JPG images check out our <a title="Richard and Stephanie Sipe Picture Gallery" href="http://www.richandstephsipe.com/wordpress/richard-stephanie-sipes-picture-gallery/">Picture Gallery</a>. Click on one of the movies links from the first page to see an iFrame + LightBox being used to display the Flash Video or one of the thousand pictures for the standard LightBox image usage.</p>
<p>Thanks to <a title="Lokesh Dhakar" href="http://huddletogether.com">Lokesh Dhakar</a> for the LightBox script and <a title="Tim Morgan" href="http://timmorgan.org">Tim Morgan</a> cool iFrame hack.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2006/12/20/lightbox-with-iframes-reloaded/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Create a favicon.ico with Photoshop</title>
		<link>http://www.richandstephsipe.com/wordpress/2006/12/01/create-a-faviconico-with-photoshop/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2006/12/01/create-a-faviconico-with-photoshop/#comments</comments>
		<pubDate>Sat, 02 Dec 2006 02:59:14 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2006/12/01/create-a-faviconico-with-photoshop/</guid>
		<description><![CDATA[Ever noticed that the little icon next to the URL in your address bar? For some websites the icon is customized and for others it is either blank or a default icon. That icon is actually pulled from a file on your webserver called favicon.ico. The favicon.ico file tells the browser what 16&#215;16 pixel icon [...]]]></description>
			<content:encoded><![CDATA[<p>Ever noticed that the little icon next to the URL in your address bar? For some websites the icon is customized and for others it is either blank or a default icon. That icon is actually pulled from a file on your webserver called favicon.ico. The favicon.ico file tells the browser what 16&#215;16 pixel icon to display when people browse to your website. The icon will also appear to the left of your favorite entry for any website with a favicon.ico.</p>
<p>So how do you get your own icon for your website? You need to create a file named favicon.ico and upload it to the main directory of your websierver. Sounds easy enough, right? Well almost, the only thing that makes this tricky is this very tiny image file is in a format most image editors can not save as a default. This little devious file is a Windows Icon Format file (.ico) which should spread dread into the hearts of MAC users everywhere. No fear, though, with a little plugin you can use good old Adobe Photoshop to create your very own favicon.ico file.</p>
<p>First, go to: <a target="_blank" href="http://www.telegraphics.com.au/sw/">this website </a>and download the ICO format plugin for your version of Photoshop (MAC and PC are different). Next, follow the included instructions to drop the ICO plugin into your Photoshop plugins folder. Now the fun part, get your self a 16&#215;16 pixel canvas and design your favicon.ico. A little hint is to use a canvas of 32&#215;32 and then change the image size right before you save so you can actually see what you are doing! Now, choose save as and select Windows Icon Format (ico) from the format dropdown box. Last upload your file to the home directory of your webserver.</p>
<p>The first thing I know you are going to do is go to your website to see your nifty new website icon! Sadly, though, there is a good chance you will not see it <img src='http://www.richandstephsipe.com/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Browsers are iffy on when they check for the new versions of favicon.ico. Some check when you refresh, some you have to clear the cache, some you have to bookmark the page, others you have to jump on one foot while left clicking!  Anyways, just give it some time and sometime your new image will pop up on your address bar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2006/12/01/create-a-faviconico-with-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macromedia Dreamweaver file_save.js error on line 45</title>
		<link>http://www.richandstephsipe.com/wordpress/2006/01/05/macromedia-dreamweaver-file_savejs-error-on-line-45/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2006/01/05/macromedia-dreamweaver-file_savejs-error-on-line-45/#comments</comments>
		<pubDate>Thu, 05 Jan 2006 22:52:00 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2006/01/05/macromedia-dreamweaver-file_savejs-error-on-line-45/</guid>
		<description><![CDATA[Problem:
Macromedia Dreamweaver file_save.js error on line 45 when changing and saving a template.
When It occurs:
Sometimes when changing a template Dreamweaver MX will issue an error on file_save.js on line 45. This error will not change any pages in your site with the new template and will also freeze Dreamweaver MX. You have to close and [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:</p>
<p>Macromedia Dreamweaver file_save.js error on line 45 when changing and saving a template.</p>
<p>When It occurs:</p>
<p>Sometimes when changing a template Dreamweaver MX will issue an error on file_save.js on line 45. This error will not change any pages in your site with the new template and will also freeze Dreamweaver MX. You have to close and then restart Dreamweaver to continue working. Once you get this file saving error on line 45 once Dreamweaver will issue this error every time you attempt to change the template.</p>
<p>Resolution:</p>
<p>1) Close Dreamweaver MX<br />
2) Rename your site directory to [Old Site DirectoryName]_somethingNew<br />
3) Open Dreamweaver MX<br />
3a) You will get an error because the site no longer exists. Ignore this.<br />
4) Delete Old Site from Dreamweaver&#8217;s site manager<br />
5) Close Dreamweaver<br />
6) Create a new directory named [Old Site DirectoryName]<br />
7) Using Windows Explorer Copy and Paste all the files from [Old Site DirectoryName]_somethingNew into [Old Site DirectoryName]<br />
 <img src='http://www.richandstephsipe.com/wordpress/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Start Dreamweaver MX<br />
9) Using the site manager create a new site to replace the one you deleted in step 4<br />
10) Dreamweaver will now rebuild the cache and your problem should be fixed</p>
<p>Why:</p>
<p>It seems to be a bug that occurs in the cache file. I have had problems when adding large values to tag fields so this could cause a buffer overrun or similar problem perhaps. I have found this solution combining a couple I have found on-line into one procedure which has worked now three times when I have had this file_save.js on line 45 error while using Macromedia Dreamweaver MX.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2006/01/05/macromedia-dreamweaver-file_savejs-error-on-line-45/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Remove duplicate rows / entries from a mySQL database table</title>
		<link>http://www.richandstephsipe.com/wordpress/2005/08/27/remove-duplicate-rows-entries-from-a-mysql-database-table/</link>
		<comments>http://www.richandstephsipe.com/wordpress/2005/08/27/remove-duplicate-rows-entries-from-a-mysql-database-table/#comments</comments>
		<pubDate>Sat, 27 Aug 2005 18:41:00 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.richandstephsipe.com/wordpress/2005/08/27/remove-duplicate-rows-entries-from-a-mysql-database-table/</guid>
		<description><![CDATA[Here is a fairly quick and painless way to remove duplicate rows from a mySQL database table.
To remove the duplicates in mySQL 3.23 and above we will move the non duplicates into a temporary table, then delete the old table, and rename the temporary table to the old table to finish the circle.
First Create the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a fairly quick and painless way to remove duplicate rows from a mySQL database table.</p>
<p>To remove the duplicates in mySQL 3.23 and above we will move the non duplicates into a temporary table, then delete the old table, and rename the temporary table to the old table to finish the circle.</p>
<p>First Create the temporary table and populate it with the values from the old table.</p>
<p><font color="#333333">NOTE: As of mySQL 3.23, you can create one table from another by adding a SELECT statement at the end of the CREATE TABLE statement :: CREATE TABLE new_tbl SELECT * FROM orig_tbl;</font></p>
<p><strong>CREATE TABLE newtable<br />
SELECT * FROM oldtable WHERE 1 GROUP BY [column to remove duplicates from];</strong></p>
<p>Now we have a newtable with all of the duplicates removed. So next we drop the old table (the one with all the duplicates still remaining)</p>
<p><strong>DROP TABLE oldtable;</strong></p>
<p>Now we just rename the newtable to the name of the oldtable so we don&#8217;t break our whole code base!</p>
<p><strong>RENAME TABLE newtable TO oldtable;</strong></p>
<p>Thats it, duplicates removed. With newer versions of mySQL and with other database engines such as Oracle 9 you can remove duplicates in a single statement and step but this method will still work (using any changes in the SQL commands necessary for your engine).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richandstephsipe.com/wordpress/2005/08/27/remove-duplicate-rows-entries-from-a-mysql-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

