
<?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>Green ComplexTroubleshooting | Green Complex</title>
	<atom:link href="http://green.cx/category/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://green.cx</link>
	<description></description>
	<lastBuildDate>Fri, 23 Dec 2011 17:12:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Broken ms-files.php in WordPress corrupting images</title>
		<link>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/</link>
		<comments>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 06:21:12 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://green.cx/?p=2531</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/77.original.png" width="659" height="87" alt="" title="Troubleshooting" /><br/>I upgraded nginx on my server and all was well, or so I thought&#8230;. (TL;DR at the bottom) Feeling good about my self I patted my back and went to bed. The next day I was writing a new post when after uploading a photo to WordPress it did not load in the editor. So after a [...]]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/77.original.png" width="659" height="87" alt="" title="Troubleshooting" /><br/><div id="attachment_1250" class="wp-caption alignleft" style="width: 160px"><a href="http://green.cx/files/2010/04/wordpress-logo.jpg"><img class="size-thumbnail wp-image-1250" title="wordpress-logo" src="http://green.cx/files/2010/04/wordpress-logo-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Wordpress 3.0 + Nginx </p></div>
<p>I upgraded nginx on my server and all was well, or so I thought&#8230;. (TL;DR at the bottom)</p>
<p>Feeling good about my self I patted my back and went to bed. The next day I was writing a new post when after uploading a photo to WordPress it did not load in the editor. So after a little struggling I figured out why non of the images from the /files/ directory in wordpress were working, but not until after I gave up trying to find the answer in Google.</p>
<p>I tried Googling all this to no avail: (Hopefully this will help some other Googler out there)</p>
<ul>
<li><strong>Ngnix not rewriting ms-files.php properly</strong></li>
<li>my nginx default conf for wordpress was faulty</li>
<li><strong>no errors in php for ms-files.php WPMU</strong></li>
<li><em><strong>ms-files.php corrupting images WPMU</strong></em></li>
<li>ms-files.php white (blank) screen of death</li>
</ul>
<div>After exhaustive rebuilding nginx config files for WordPress MU  I finally went back to poking at the blank screen&#8230;</div>
<div>When I loaded up Firefox I got &#8220;The image cannot be displayed because it contains errors&#8221; so I saved the file, and to my surprise is was actually a jpg full of data! And at first it looked fine, but as it turned out, is was incomplete. So I went back to Google and found a bug on the WordPress Core Trac Bug Reports.  <a title='Original Link: http://core.trac.wordpress.org/ticket/14730'  href="http://green.cx/?TieauOIL">http://core.trac.wordpress.org/ticket/14730</a></div>
<div>Eureka moment! As it turns out it was a known bug, by an unknown cause! I know mine was caused by upgrading nginx on ubuntu Lucid, and commenting out this line in fastcgi_prams config file. <em># fastcgi_param HTTPS $server_https;</em> It was added, and broke things so it was uneeded. But I think that as a side effect, it was truncating the output of ms-files.php.</div>
<div>TL;DR</div>
<div>So anyway the solution was a simple patch for ms-files.php to clear the buffers before and after reading the image file. (The entire patch is below, and goes at the very end of the file)</div>
<blockquote>
<div>
<table summary="Differences" cellspacing="0">
<thead>
<tr>
<th title="File wp-includes/ms-files.php"></th>
<td><em></em></td>
</tr>
</thead>
<tbody>
<tr>
<th>79</th>
<th>79</th>
<td>}</td>
</tr>
<tr>
<th>80</th>
<th>80</th>
<td></td>
</tr>
<tr>
<th>81</th>
<th>81</th>
<td>// If we made it this far, just serve the file</td>
</tr>
</tbody>
<tbody>
<tr>
<th></th>
<th>82</th>
<td><ins>ob_clean();</ins></td>
</tr>
<tr>
<th></th>
<th>83</th>
<td><ins>flush();</ins></td>
</tr>
</tbody>
<tbody>
<tr>
<th>82</th>
<th>84</th>
<td>readfile( $file );</td>
</tr>
</tbody>
<tbody>
<tr>
<th></th>
<th>85</th>
<td><ins>flush();</ins></td>
</tr>
</tbody>
<tbody>
<tr>
<th>83</th>
<th>86</th>
<td>?&gt;</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/wordpress-web-resources/broken-ms-files-php-in-wordpress-corrupting-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evernote 4 for Windows is here!</title>
		<link>http://green.cx/web-resources/evernote-4-for-windows-is-here/</link>
		<comments>http://green.cx/web-resources/evernote-4-for-windows-is-here/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 16:09:23 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Web Stuff]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[clips]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[lists]]></category>

		<guid isPermaLink="false">http://green.cx/?p=1842</guid>
		<description><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/>Evernote for Windows is our most popular version, used by hundreds of thousands of people everyday. Today, we’re excited to announce a major evolution in our Windows client: Evernote 4 . ]]></description>
			<content:encoded><![CDATA[<img src="http://green.cx/wp-content/blogs.dir/1/category-images/40.original.png" width="659" height="87" alt="" title="Web Stuff" /><br/><p style="text-align: left;">I absolutely love Evernote! I hope if you haven&#8217;t tried it yet you&#8217;ll give it a shot and see why it&#8217;s so useful. I have it on my Blackberry and Windows PC&#8217;s and it&#8217;s like my own little notebook everywhere I go.</p>
<p><img title="evernote" src="http://green.cx/files/2010/10/1bf9ea0dafernote.jpg.jpg" alt="" width="630" height="313" /><br />
Evernote for Windows is our most popular version, used by hundreds of thousands of people everyday. Today, we’re excited to announce a major evolution in our Windows client: <strong>Evernote 4</strong>. Here’s why we think this is the best version of Evernote yet.</p>
<p><a title='Original Link: http://www.evernote.com/about/download/get.php?file=Win'  href="http://green.cx/?rYI8q28i"><strong>Get Evernote 4 now »</strong></a></p>
<h3>Starting from scratch</h3>
<p>Evernote 4 is a major departure from Evernote 3.5 in every way. While 3.5 added tons of great new features, there were some problems we simply couldn’t fix: the blurry fonts, slow startup times, large memory footprint, and poor support for certain graphics cards were all issues that the technology behind 3.5 (Windows .net and WPF) was incapable of resolving. As a result, we ended up chasing down platform bugs rather than adding the great features our users wanted.</p>
<p>So we decided to start over from scratch, with fast, native C++ that we knew we could rely on. As you’ll see, the results are amazing. This new version will set a foundation for rapid improvement.</p>
<h3>Blazingly fast</h3>
<p>Evernote 4 is designed to give you a great experience on any computer that you use, whether you’re on a netbook, a five year old Windows XP machine or a super fast top-of-the-line Windows 7 computer.</p>
<p>On our test hardware, Evernote 4 <strong>starts five times faster, and uses half the memory</strong> of Evernote 3.5.</p>
<h3>Simply beautiful</h3>
<p>We redesigned every aspect of the user interface to be faster, simpler and more attractive. The new layout gets out of your way, so you can focus more of your attention on your notes and less on buttons and scrollbars. It also works better on various types of displays, aspect ratios and control devices. So, whether you use a mouse, keyboard or touchscreen to interact with your computer, you’ll have a great experience with Evernote 4.</p>
<p><img title="evernote_win-top" src="http://green.cx/files/2010/10/d3c2eeb235in-top.jpg.jpg" alt="" width="630" height="84" /></p>
<p>Here are a few of our favorite user interface improvements:</p>
<ul>
<li><strong>Space saving layout:</strong> The toolbar and menu bar are merged to take up less screen space. You can always switch to the old school layout in the Option menu.</li>
<li><strong>More responsive interface:</strong> Switching between notes, displaying searches, bringing Evernote into the foreground, and virtually all other interactions are much faster.</li>
<li><strong>Easier new note creation:</strong> We’ve added a New Note <em>split button</em>, which lets you pick the type of note you wish to create (text, ink or webcam). It will remember your selection for next time.</li>
<li><strong>Relocated Search Bar:</strong> Note search and the search description now reside directly over the note list—a more intuitive location. You can click the small arrow to open and close the search description. Closing the description gives you more room to view your notes list, opening it makes it easy to modify your search.</li>
<li><strong>Clearer note info:</strong> The note information panel is more crisp and clear with the title, notebook and source <a title="links" href="http://green.cx/links/">links</a> right up top. Just like the search panel, you can open the note information panel to access the details. Navigating through the note info panel and tagging notes using your keyboard is fast and efficient.</li>
<li><strong>More ways to interact:</strong> Evernote 4 supports multitouch gestures and many keyboard shortcuts.</li>
</ul>
<h3>And much much more…</h3>
<p>Much of Evernote 4 is focused on creating a great user experience and a powerful platform for <strong>huge</strong> new features in the coming months. Of course, we couldn’t launch something this big without adding a few gems:</p>
<p><strong>Improved clipping</strong></p>
<p>Clips are the most popular note-type in Evernote. So, for Evernote 4, we decided to give clipping a big upgrade. When clipping from Internet Explorer, Outlook and Firefox, you will now see a <em>New Clip</em> popup that lets you add tags and assign notebooks without leaving your current application. You can skip the dialog by holding down the Shift key.</p>
<p><em>Microsoft Outlook</em> users will love the support for clipping messages, attachments and even multiple emails. Clipping from Internet Explorer and Firefox now preserves more styles, works more reliability and also takes advantage of the New Clip window.</p>
<p><strong>Better editing</strong></p>
<p>We spent the last 9 months improving note editing, and this baby has some great new additions. We’ve got:</p>
<ul>
<li>Improved support for tables (including adding columns and rows).</li>
<li>Better support for bulleted and numbered lists.</li>
<li>Better copy-paste support to and from Internet Explorer, Office and other applications.</li>
<li>The note editor toolbar gives access to more colors and just looks sharp.</li>
</ul>
<p><strong>Smarter titles</strong></p>
<p>Evernote is now smarter about how it handles note titles. The app will make a guess based on the type of information you have in your note. For example, it may use the first line of a note or the title of a web clip. You can always go in and edit the titles to be whatever you like.</p>
<p><strong>Flexible printing</strong></p>
<p><img title="en4-printing" src="http://green.cx/files/2010/10/cef7f4f15dinting.jpg.jpg" alt="" width="629" height="317" /></p>
<p>When you’re printing one or more notes you can click “Options” and check off which parts of the note information you want to include in the printout.</p>
<p><strong>Windows 7: Jump Lists</strong></p>
<p>In addition to adopting a Windows 7 look and feel, we’ve incorporated new Windows 7 features including Jump Lists that allow you to pin Evernote into your task bar and quickly access Evernote, sync, find or add notes even when Evernote isn’t running.</p>
<p><strong>Windows 7: Auto-location</strong></p>
<p>Evernote 4 also makes the most of the new geo-location capabilities of Windows 7. You will now be able to easily set the location of your notes. Tap on “Click to set location…” in the note info panel and your computer will figure out where it is and set the location of the note.</p>
<h3>Hiding what you don’t need</h3>
<p>To make the most efficient use of your screen, certain elements are hidden until you need them:</p>
<ul>
<li><strong>Note info:</strong> Click the chevron near your note title to display note info.</li>
<li><strong>Search description:</strong> Click the chevron near the search bar to view and edit your search description.</li>
<li><strong>Zoom level:</strong> To adjust the size of thumbnails in Thumbnail view, bring your mouse near the bottom of the Note List. This displays the zoom control.</li>
<li><strong>Sync status:</strong> Whenever Evernote 4 synchronizes changes, a sync dialog appears along the lower right edge of the window.</li>
</ul>
<h3>Getting Evernote 4</h3>
<p><a title='Original Link: http://www.evernote.com/about/download/get.php?file=Win'  href="http://green.cx/?rYI8q28i"><strong>Evernote 4 is available now for download!</strong></a></p>
<p>Please note, installing Evernote 4 will replace your existing Evernote 3.5 installation.</p>
<p>We will publish an auto-update in the coming weeks for current Evernote 3.5 users who choose not to manually download Evernote 4.</p>
<p><strong>Firefox users:</strong> Check for updates to get the latest Evernote 4-compatible version of the Evernote Firefox Extension.</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/web-resources/evernote-4-for-windows-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Zip Handler in Windows7</title>
		<link>http://green.cx/troubleshooting/windows/fix-zip-handler-windows7/</link>
		<comments>http://green.cx/troubleshooting/windows/fix-zip-handler-windows7/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 11:00:46 +0000</pubDate>
		<dc:creator>+Jason</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Utility Applications]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://green.cx/?p=892</guid>
		<description><![CDATA[<br/>Sometimes our favorite Archive software (7Zip, WinRar, WinZip to name a few) can break the native Windows&#8217;s zipped folder behavior. To fix it back to the way it was before, just unregister zipfldr.dll and re-register it. To unregister Windows 7 built-in zip file compression, and then to re-register it, use these two commands in a CMD prompt opened [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Sometimes our favorite <a id="aptureLink_5WncVElBZY" title='Original Link: http://en.wikipedia.org/wiki/File%20archiver'  href="http://green.cx/?8Gc6m4d8">Archive software</a> (<a id="aptureLink_l1NkoRhy4Z" title='Original Link: http://en.wikipedia.org/wiki/7-Zip' rel='nofollow' href="http://green.cx/?pXXfGE_k">7Zip</a>, <a id="aptureLink_UzznCJIF92" title='Original Link: http://en.wikipedia.org/wiki/WinRAR' rel='nofollow' href="http://green.cx/?fPW5WYwX">WinRar</a>, <a id="aptureLink_1VIWor2K0V" title='Original Link: http://en.wikipedia.org/wiki/WinZip' rel='nofollow' href="http://green.cx/?H1FmNd2L">WinZip</a> to name a few) can break the native Windows&#8217;s zipped folder behavior. To fix it<span id="more-892"></span> back to the way it was before, just unregister <strong>zipfldr.dll</strong> and re-register it.</p>
<div id="attachment_905" class="wp-caption alignleft" style="width: 260px"><a rel="attachment wp-att-905" href="http://green.cx/troubleshooting/windows/fix-zip-handler-windows7/attachment/open-source-crave-3/"><img class="size-medium wp-image-905" title="open-source-crave-3" src="http://green.cx/wp-content/uploads/2010/02/open-source-crave-3-250x152.jpg" alt="" width="250" height="152" /></a><p class="wp-caption-text">7Zip is our friend</p></div>
<p>To unregister Windows 7 built-in zip file compression, and then to re-register it, use these two commands in a CMD prompt opened with Administrative privileges (&#8220;Command Prompt&#8221; under Accessories in the Start Menu, then right click and select Run as Administrator):</p>
<p>(Unregister Zipped Folders)<br />
<strong>regsvr32 /u zipfldr.dll</strong></p>
<p>(Reregister Zipped Folders)<br />
<strong>regsvr32 /i zipfldr.dll</strong></p>
<p>This is useful if you are installing a Zip program like 7Zip or WinRAR and the install blows up, you can use this to fix the way Windows handles Zip files.</p>]]></content:encoded>
			<wfw:commentRss>http://green.cx/troubleshooting/windows/fix-zip-handler-windows7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 105/134 queries in 0.057 seconds using apc

Served from: potpiedeluxe.com @ 2012-02-11 14:52:40 -->
