<?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>Likesalmon.net &#187; Solutions</title>
	<atom:link href="http://likesalmon.net/category/solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://likesalmon.net</link>
	<description>Web development for designers</description>
	<lastBuildDate>Sat, 21 Jan 2012 20:40:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Disable WP E-Commerce scripts and stylesheets</title>
		<link>http://likesalmon.net/disable-wp-e-commerce-scripts-and-stylesheets/</link>
		<comments>http://likesalmon.net/disable-wp-e-commerce-scripts-and-stylesheets/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 21:02:00 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[E-Commerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=626</guid>
		<description><![CDATA[This comes straight outta the getShopped forums: http://getshopped.org/forums/topic/disable-all-wpsc-javascript-and-css-files-3/ via cannobbio. To disable all scripts and stylesheets, add this code to the functions.php file in your theme folder: // Remove Styles function childtheme_deregister_styles() { wp_deregister_style( 'wpsc-theme-css' ); wp_deregister_style( 'wpsc-theme-css-compatibility' ); wp_deregister_style( 'wpsc-product-rater' ); wp_deregister_style( 'wp-e-commerce-dynamic'); wp_deregister_style( 'wpsc-thickbox' ); wp_deregister_style( 'wpsc-gold-cart' ); } add_action( 'wp_print_styles', 'childtheme_deregister_styles', 100 [...]]]></description>
			<content:encoded><![CDATA[<p>This comes straight outta the getShopped forums: <a href="http://getshopped.org/forums/topic/disable-all-wpsc-javascript-and-css-files-3/" title="">http://getshopped.org/forums/topic/disable-all-wpsc-javascript-and-css-files-3/</a> via cannobbio.</p>
<p>To disable all scripts and stylesheets, add this code to the functions.php file in your theme folder:</p>
<p><code><br />
// Remove Styles<br />
function childtheme_deregister_styles() {<br />
	wp_deregister_style( 'wpsc-theme-css' );<br />
	wp_deregister_style( 'wpsc-theme-css-compatibility' );<br />
	wp_deregister_style( 'wpsc-product-rater' );<br />
	wp_deregister_style( 'wp-e-commerce-dynamic');<br />
	wp_deregister_style( 'wpsc-thickbox' );<br />
	wp_deregister_style( 'wpsc-gold-cart' );<br />
}<br />
add_action( 'wp_print_styles', 'childtheme_deregister_styles', 100 );</p>
<p>// Remove Scripts<br />
function childtheme_deregister_scripts() {<br />
	wp_deregister_script( 'wpsc-thickbox' );<br />
	wp_deregister_script( 'jquery-rating' );<br />
	wp_deregister_script( 'wp-e-commerce' );<br />
	wp_deregister_script( 'jQuery' );<br />
	wp_deregister_script( 'infieldlabel' );<br />
	wp_deregister_script( 'wp-e-commerce-ajax-legacy' );<br />
	wp_deregister_script( 'wp-e-commerce-dynamic' );<br />
	wp_deregister_script( 'livequery' );<br />
	wp_deregister_script( 'wp-e-commerce-legacy' );<br />
	wp_deregister_script( 'l10n' );<br />
	wp_deregister_script( 'wpsc-gold-cart' );<br />
}<br />
add_action( 'wp_print_scripts', 'childtheme_deregister_scripts', 100 );</p>
<p>// Remove Product List RSS<br />
remove_action('wp_head', 'wpsc_product_list_rss_feed');<br />
</code></p>
<p>Then expect things to get weird!  This will disable a lot of built-in functionality which you prolly want.  Fortunately you can easily pick and choose by leaving out the scripts and stylesheets you still need. I found that the most disruptive thing for my customisations was the Gold Cart stylesheet, which I disabled with this:</p>
<p><code><br />
// Remove gold cart css<br />
function childtheme_deregister_styles() {<br />
	wp_deregister_style( 'wpsc-gold-cart' );<br />
}<br />
add_action( 'wp_print_styles', 'childtheme_deregister_styles', 100 );<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/disable-wp-e-commerce-scripts-and-stylesheets/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP E-Commerce 3.8 and Thematic = no sidebars!</title>
		<link>http://likesalmon.net/wp-e-commerce-3-8-and-thematic-no-sidebars/</link>
		<comments>http://likesalmon.net/wp-e-commerce-3-8-and-thematic-no-sidebars/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 20:50:58 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=622</guid>
		<description><![CDATA[I just upgraded a client from WP E-Commerce 3.7 to 3.8 and all my sidebars disappeared! This is how I fixed it: Background info The freshest software First of all, I&#8217;m using a child theme of Thematic (version 0.9.7.7) and the latest versions of WP E-Commerce (3.8.6) and WordPress (3.2.1). I just downloaded everything today [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded a client from WP E-Commerce 3.7 to 3.8 and all my sidebars disappeared!  This is how I fixed it:</p>
<h2>Background info</h2>
<h3>The freshest software</h3>
<p>First of all, I&#8217;m using a child theme of Thematic (version 0.9.7.7) and the latest versions of WP E-Commerce (3.8.6) and WordPress (3.2.1).  I just downloaded everything today so its all freshy fresh.</p>
<h3>The issue</h3>
<p>I have widgets in my primary, secondary, and three subsidiary sidebars.  They show up on every page on my site except for the products page and single products pages.</p>
<h3>I tried everything!</h3>
<p>Before this fix I tried disabling all my plugins, which did nothing.  Then I tried some other themes: the default WordPress theme Twenty Eleven also had no sidebars on the products page, but Twenty Ten worked fine.  This was a clue.</p>
<h3>It prolly has something to do with&#8230;</h3>
<p>This function: dynamic_sidebar() is being overridden or whatever.  That&#8217;s all I got.</p>
<h2>The fix</h2>
<p>WP E-Commerce uses the page.php template for the products page and single products pages.  To get your sidebars back, copy the page.php file from themes/thematic/page.php folder to themes/<em>yourtheme</em>/page.php.  Comment out thematic_sidebar(); on line 10, like this:</p>
<p><code>// thematic_sidebar();</code></p>
<p>Then add these lines directly under the code you just commented out:</p>
<p><code>thematic_primary_aside();<br />
thematic_secondary_aside();</code></p>
<p>Save the file and view the products page, your primary and secondary sidebars should be there.  Now to get your footer widgets back, copy themes/thematic/footer.php to themes/<em>yourtheme</em>/footer.php.  Comment out thematic_footer(); on line 16, like this:</p>
<p><code>// thematic_footer();</code></p>
<p>Then add the following three lines right under that:</p>
<p><code>thematic_1st_subsidiary_aside();<br />
thematic_2nd_subsidiary_aside();<br />
thematic_3rd_subsidiary_aside();</code></p>
<p>Save the file, reload the page in your browser, and all your sidebar widgets should be there!</p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/wp-e-commerce-3-8-and-thematic-no-sidebars/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A fix for WP e-Commerce error: &#8220;The following directories are not writable&#8221;</title>
		<link>http://likesalmon.net/a-fix-for-wp-e-commerce-error-the-following-directories-are-not-writable/</link>
		<comments>http://likesalmon.net/a-fix-for-wp-e-commerce-error-the-following-directories-are-not-writable/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 04:23:50 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Wordpress plugins]]></category>
		<category><![CDATA[WP e-Commerce]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=490</guid>
		<description><![CDATA[If you get this error: The following directories are not writable: * /var/www/mysite/wp-content/uploads/wpsc/downloadables/ * /var/www/mysite/wp-content/uploads/wpsc/previews/ * /var/www/mysite/wp-content/uploads/wpsc/product_images/ * /var/www/mysite/wp-content/uploads/wpsc/product_images/thumbnails/ * /var/www/mysite/wp-content/uploads/wpsc/category_images/ * /var/www/mysite/wp-content/uploads/wpsc/upgrades/ You won't be able to upload any images or files here. You will need to change the permissions on these directories to make them writable. When you click on &#8220;Products&#8221; in WP [...]]]></description>
			<content:encoded><![CDATA[<p>If you get this error:</p>
<pre>
The following directories are not writable:

    * /var/www/mysite/wp-content/uploads/wpsc/downloadables/
    * /var/www/mysite/wp-content/uploads/wpsc/previews/
    * /var/www/mysite/wp-content/uploads/wpsc/product_images/
    * /var/www/mysite/wp-content/uploads/wpsc/product_images/thumbnails/
    * /var/www/mysite/wp-content/uploads/wpsc/category_images/
    * /var/www/mysite/wp-content/uploads/wpsc/upgrades/

You won't be able to upload any images or files here.
You will need to change the permissions on these directories
 to make them writable.</pre>
<p>When you click on &#8220;Products&#8221; in WP e-Commerce, then I am about to make your day.</p>
<h2>The fix</h2>
<p>For whatever reason, the plugin isn&#8217;t able to create those directories itself.  So first create the following files:</p>
<ul>
<li>mysite/wp-content/uploads/</li>
<li>mysite/wp-content/uploads/wpsc/</li>
<li>mysite/wp-content/uploads/wpsc/category_images/</li>
<li>mysite/wp-content/uploads/wpsc/downloadables/</li>
<li>mysite/wp-content/uploads/wpsc/previews/</li>
<li>mysite/wp-content/uploads/wpsc/product_images/</li>
<li>mysite/wp-content/uploads/wpsc/upgrades/</li>
</ul>
<p>Then set those files to the correct permissions:</p>
<p><code>$ chmod -R 777 mysite/wp-content/uploads/wpsc/</code></p>
<p><em>Now</em> click on &#8220;Products&#8221; and the error should be gone!.</p>
<h2>One more thing</h2>
<p><em>Edited 3/14/2011</em></p>
<p>The final step is to secure your installation:</p>
<p><code>$ chmod -R 775 mysite/wp-content/uploads/wpsc/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/a-fix-for-wp-e-commerce-error-the-following-directories-are-not-writable/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use Image Magick to batch convert .png files to .gif</title>
		<link>http://likesalmon.net/use-image-magick-to-batch-convert-png-files-to-gif/</link>
		<comments>http://likesalmon.net/use-image-magick-to-batch-convert-png-files-to-gif/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 21:17:36 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Imagemagick]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=456</guid>
		<description><![CDATA[I just checked, and W3Counter puts global Internet Explorer 6 usage at just 5.78%. This is a pretty good argument for not supporting it anymore with my websites, but I still do it. Maybe its just habit, or maybe its because I&#8217;ve become really fast at dealing with IE6 and its many deficiencies so its [...]]]></description>
			<content:encoded><![CDATA[<p>I just checked, and <a href="http://www.w3counter.com/globalstats.php" title="Browser usage stats">W3Counter</a> puts global Internet Explorer 6 usage at just 5.78%.  This is a pretty good argument for not supporting it anymore with my websites, but I still do it.  Maybe its just habit, or maybe its because I&#8217;ve become really fast at dealing with IE6 and its many deficiencies so its just not that big a deal.</p>
<h2>Just ignore it</h2>
<p>One thing that sames me time is the way I handle .png files in IE6: I don&#8217;t.  IE6 can&#8217;t handle transparency in .png files, but instead of using a script to fix it (which has never really worked for me) I just copy all the pertinent css to a file called IE6.css, which I load via <a href="http://www.quirksmode.org/css/condcom.html" title="Quirksmode">conditional comments</a>.  I change all the image filenames to .gif like this:</p>
<h3>style.css</h3>
<p><code>#content {<br />
background: transparent url('images/background.<strong>png</strong>') repeat-y top left;<br />
}</code></p>
<h3>ie6.css</h3>
<p><code>#content {<br />
background: transparent url('images/background.<strong>gif</strong>') repeat-y top left;<br />
}</code></p>
<h2>The Magick</h2>
<p>Then I batch convert all my .png files with Image Magick and place them in a special folder, like this:</p>
<p><code>$ mkdir gifs</code><br />
<code>$ mogrify -path gifs/ -format gif *.png</code></p>
<p>The resulting gif files are much lower quality than the png&#8217;s, but at least IE6 users can see the site.  Besides, they&#8217;re used to the Internet looking like crap.</p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/use-image-magick-to-batch-convert-png-files-to-gif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Esoteric PHP Knowledge</title>
		<link>http://likesalmon.net/esoteric-php-knowledge/</link>
		<comments>http://likesalmon.net/esoteric-php-knowledge/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 04:55:19 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=376</guid>
		<description><![CDATA[I&#8217;m writing a WordPress plugin right now and I keep running into all these crazy PHP-specific operators and such that don&#8217;t seem to be in the manual. Or at least I can&#8217;t find them. I&#8217;ll make a little collection here. Q and A Q: What does the ampersand (&#8216;&#038;&#8217;) do when it precedes a variable? [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing a WordPress plugin right now and I keep running into all these crazy PHP-specific operators and such that don&#8217;t seem to be in the manual.  Or at least I can&#8217;t find them.  I&#8217;ll make a little collection here.</p>
<h2>Q and A</h2>
<dl>
<dt>Q: What does the ampersand (&#8216;&#038;&#8217;) do when it precedes a variable? Like when you see <code>$foo = &#038;$bar</code>?</dt>
<dd>A: According to Byron Bennett on <a href="http://www.whypad.com/posts/php-what-is-the-ampersand-preceding-variables/193/" title="">Whypad</a>, the &#8216;&#038;&#8217; sets up a reference to the original variable instead of copying it&#8217;s value.  So if I start with:</p>
<p><code>$bar = 'bass';</code></p>
<p>And then pull one of these: </p>
<p><code>$foo = &$bar;</code></p>
<p>But then decide:</p>
<p><code>$bar = 'boo';</code></p>
<p><code>$foo</code> will now also be assigned &#8216;boo&#8217;.  If I had left off the &#8216;&#038;&#8217;, $foo would still equal the original value of $bar, &#8216;bass&#8217;.</dd>
<dt>Q: What does the &#8216;@&#8217; symbol do?</dt>
<dd>A: &#8216;@&#8217; is the error suppression operator in PHP.  You can use it on operators and functions like  (this answer came from the comments in that very same <a href="http://www.whypad.com/posts/php-what-is-the-ampersand-preceding-variables/193/" title="">Whypad</a> post)</dd>
<dt>Q: $log = &#038;new MockLog(); // Wha?!</dt>
<dd>Found this in the <a href="http://www.simpletest.org/en/start-testing.html" title="">SimpleTest</a> tutorial and it confused the heck out of me.  Apparently its a typo!  According to Steve on <a href="http://www.justskins.com/forums/diffrence-between-and-new-137126.html" title="">JustSkins</a>, it should be:</p>
<p><code>$log =&#038; new MockLog();</code></p>
<p>So =&#038; is an &#8220;assignment operator that creates a reference&#8221;.  Which also doesn&#8217;t make much sense.  But then Hilarion breaks it down:</p>
<blockquote><p>
The difference is:</p>
<p><code>$MyObject = new Object();</code></p>
<p>does:<br />
1. creates Object<br />
2. makes a copy of it (not using the class standard constructor)<br />
3. assigns the copy to $MyObject variable</p>
<p><code>$MyObject = &#038; new Object();</code></p>
<p>does:<br />
1. creates Object<br />
2. assigns the object to $MyObject variable
</p></blockquote>
<p>Nice.</dd>
<dt>Q: Help!  I have two colons in my function!</dt>
<dd>A: If you see one of these &#8216;<code>::</code>&#8216; or maybe <code>parent::mymethod();</code>, you have found yourself the Scope Resolution Operator&#0153;.  This operator can call a method of a class, <em>even if the class hasn&#8217;t been instantiated yet</em>.  I haven&#8217;t run across this in other languages and I find it totally fascinating.  The <a href="http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php" title="">PHP manual</a> actually has a pretty good example of what&#8217;s going on here:</p>
<pre>
<code>
&lt;?php
class A {
    function example() {
        echo "I am the original function A::example().\n";
    }
}

class B extends A {
    function example() {
        echo "I am the redefined function B::example().\n";
        A::example(); // could be written: parent::example();
    }
}

// there is no object of class A.
// this will print
//   I am the original function A::example().
A::example();

// create an object of class B.
$b = new B;

// this will print
//   I am the redefined function B::example().
//   I am the original function A::example().
$b->example();
?&gt;
</code></pre>
<p>See?! See how <code>A::example()</code> yanked that method right out of the A class and used it before A was even assigned to to an object?  Crazy.</dd>
<dt>Q: What&#8217;s the best way to remove a value from an array?</dt>
<dd>
</dd>
<p>A: You could use <code>array_slice()</code> or <code>array_splice()</code>, but as this <a href="http://xmouse.ithium.net/2004/removing-values-from-a-php-array" title="xmouse blog">pithy and informative post</a> points out, they&#8217;re not great.  Fortunately, using <code>unset($array[i])</code> to remove the value and <code>$array = array_values($array)</code> to re-index the array is fast and works great!
</dl>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/esoteric-php-knowledge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imagemagick: use montage to proof images</title>
		<link>http://likesalmon.net/imagemagick-use-montage-to-proof-images/</link>
		<comments>http://likesalmon.net/imagemagick-use-montage-to-proof-images/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 03:51:47 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Imagemagick]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=359</guid>
		<description><![CDATA[The following command will create an image called montage.png that is a collection of all the .png files in the current directory. Images larger than 150px on a side will be resized, but aspect ratio is preserved. The images are separated by a 2px offset. $ montage *.png -geometry 150x150\>+2+2 montage.png]]></description>
			<content:encoded><![CDATA[<p>The following command will create an image called montage.png that is a collection of all the .png files in the current directory.  Images larger than 150px on a side will be resized, but aspect ratio is preserved.  The images are separated by a 2px offset.</p>
<p><code>$ montage *.png -geometry 150x150\>+2+2 montage.png</code></p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/imagemagick-use-montage-to-proof-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Magick: Resize a batch of images so they all come out square, and preserve filenames</title>
		<link>http://likesalmon.net/image-magick-resize-a-batch-of-images-so-they-all-come-out-square-and-preserve-filenames/</link>
		<comments>http://likesalmon.net/image-magick-resize-a-batch-of-images-so-they-all-come-out-square-and-preserve-filenames/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 04:05:12 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Imagemagick]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=331</guid>
		<description><![CDATA[The following command will shrink all .jpg&#8217;s in the current directory that are larger than 500px and center them on a square 500x500px canvas. Since the aspect ratio of the original images will be preserved and not all of the originals are square, the left over space will be filled with an off-white color. All [...]]]></description>
			<content:encoded><![CDATA[<p>The following command will shrink all .jpg&#8217;s in the current directory that are larger than 500px and center them on a square 500x500px canvas.  Since the aspect ratio of the original images will be preserved and not all of the originals are square, the left over space will be filled with an off-white color.  All the modified images will be placed in a directory called &#8216;resized&#8217;.  Original filenames will be preserved.</p>
<p><code>mogrify -path resized -resize 500x500\> -background 'rgb(217,215,202)' -extent 500x500 -gravity center *.jpg</code></p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/image-magick-resize-a-batch-of-images-so-they-all-come-out-square-and-preserve-filenames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Magick: Resize a batch of images and preserve the original file names</title>
		<link>http://likesalmon.net/image-magick-resize-a-batch-of-images-and-preserve-the-original-file-names/</link>
		<comments>http://likesalmon.net/image-magick-resize-a-batch-of-images-and-preserve-the-original-file-names/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 03:21:50 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Imagemagick]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=327</guid>
		<description><![CDATA[The following command will resize any and all .jpg&#8217;s in the current directory that are larger than 500px on either side and put them in a file called &#8216;resized&#8217;. Aspect ratios will be respected, and the same filenames will be used for the modified images. mogrify -path resized -resize 500&#62;x500\&#62; *.jpg Yes, you have to [...]]]></description>
			<content:encoded><![CDATA[<p>The following command will resize any and all .jpg&#8217;s in the current directory that are larger than 500px on either side and put them in a file called &#8216;resized&#8217;.  Aspect ratios will be respected, and the same filenames will be used for the modified images.</p>
<p><code>mogrify -path resized -resize 500&gt;x500\&gt; *.jpg</code></p>
<p>Yes, you have to use <code>mogrify</code> and not <code>convert</code> because only <code>mogrify</code> excepts the <code>-path</code> command.  And I&#8217;m pretty sure it&#8217;s important to escape the greater than symbols in the <code>-path</code> argument like I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/image-magick-resize-a-batch-of-images-and-preserve-the-original-file-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use source to import large .sql files</title>
		<link>http://likesalmon.net/use-source-to-import-large-sql-files/</link>
		<comments>http://likesalmon.net/use-source-to-import-large-sql-files/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:38:41 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=307</guid>
		<description><![CDATA[Its true, don&#8217;t waste your time with strange scripts and such if you&#8217;re trying to upload an .sql file that exceeds the limit. Just give up and use source. Note: don&#8217;t be confused that I don&#8217;t capitalise my MySQL commands. Its my silent protest against standard MySQL syntax: I think capitalising commands you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Its true, don&#8217;t waste your time with strange scripts and such if you&#8217;re trying to upload an .sql file that exceeds the limit.  Just give up and use <code>source</code>. <em>Note: don&#8217;t be confused that I don&#8217;t capitalise my MySQL commands.  Its my silent protest against standard MySQL syntax: I think capitalising commands you have to type over and over is dumb.  SOURCE is the same as source.</em></p>
<ol>
<li>Upload the .sql file to your server somewhere, preferably with <a href="http://likesalmon.net/lftp-is-awesome/" title="lftp is awesome!">lftp</a></li>
<li>ssh to your server: <code>$ ssh  username@username.hostname.com</code></li>
<li>Start mysql: <code>$ mysql -u <em>username</em> -p </code>, then enter your password</li>
<li>Find the correct table: <code>$ show databases;</code></li>
<li>Access the database you want to import to: <code>$ use <em>databasename</em>;</code></li>
<li>And finally the source command: <code>$ source <em>path/to/filename.sql</em></code></li>
</ol>
<p>I used several sources for this, but <a href="http://www.johnon.com/import-large-file-into-mysql/" title="John Andrews: Import Large File into MySQL">John Andrews</a> was the angriest.</p>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/use-source-to-import-large-sql-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The better way to install LAMP on Ubuntu Karmic 9.10</title>
		<link>http://likesalmon.net/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/</link>
		<comments>http://likesalmon.net/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 03:30:44 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://likesalmon.net/?p=295</guid>
		<description><![CDATA[All this comes from here: https://help.ubuntu.com/community/ApacheMySQLPHP In the teminal: $ sudo tasksel install lamp-server $ sudo apt-get install phpmyadmin $ sudo gedit /etc/apache2/apache2.conf Add the following to the end of this file:  &#8220;Include /etc/phpmyadmin/apache.conf&#8221; Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value. I used 64M, but that may be overkill.]]></description>
			<content:encoded><![CDATA[<p>All this comes from here:</p>
<p><a href="https://help.ubuntu.com/community/ApacheMySQLPHP" title="Ubuntu is rad, right?">https://help.ubuntu.com/community/ApacheMySQLPHP</a></p>
<p>In the teminal:</p>
<ul>
<li>$ sudo tasksel install lamp-server</li>
<li>$ sudo apt-get install phpmyadmin</li>
<li>$ sudo gedit /etc/apache2/apache2.conf
<ul>
<li>Add the following to the end of this file:  &#8220;Include /etc/phpmyadmin/apache.conf&#8221;</li>
</ul>
</li>
<li>Edit the /etc/php5/apache2/php.ini file and increase the <em>memory_limit</em> value.  I used 64M, but that may be overkill.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://likesalmon.net/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

