<?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>Some Pixels &#187; Think</title>
	<atom:link href="http://blog.somepixels.net/category/think/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.somepixels.net</link>
	<description>UX, Dev, Tech and so on...</description>
	<lastBuildDate>Sat, 15 Dec 2012 02:44:00 +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>502 Proxy Error / Uploading from Apache (mod_proxy) to Tomcat 7</title>
		<link>http://blog.somepixels.net/2012/12/502-proxy-error-uploading-from-apache-mod_proxy-to-tomcat-7/</link>
		<comments>http://blog.somepixels.net/2012/12/502-proxy-error-uploading-from-apache-mod_proxy-to-tomcat-7/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 02:43:19 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=595</guid>
		<description><![CDATA[I&#8217;ve been working on a product lately where we need a reverse proxy from the Apache, serving our static content, to the Tomcat 7 where our API is. We&#8217;re using mod_proxy to do the job and everything is hosted on Amazon&#8217;s EC2. Everything was working perfectly, but sometime ago we&#8217;ve started to see some errors, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a product lately where we need a reverse proxy from the Apache, serving our static content, to the Tomcat 7 where our API is. We&#8217;re using 	<em>mod_proxy</em><br />
 to do the job and everything is hosted on Amazon&#8217;s EC2.</p>
<p>Everything was working perfectly, but sometime ago we&#8217;ve started to see some errors, when uploading big files, like this:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Proxy Error<br />
<br />
The proxy server received an invalid response from an upstream server.<br />
The proxy server could not handle the request POST /app/api/upload.<br />
<br />
Reason: Error reading from remote server<br />
<br />
Apache/2.2.22 (Amazon) Server at our_app_server.com Port 443</div></td></tr></tbody></table></div>
<p>We started looking for solutions to this problem and tried a lot of things, like configuring the timeout on Apache&#8217;s <em>httpd.conf</em>:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Configuring the timeout<br />
Timeout 2400<br />
ProxyTimeout 2400<br />
<br />
# Configuring the reverse proxy<br />
ProxyPass /app http://localhost:8080/app<br />
ProxyPassReverse /app http://localhost:8080/app</div></td></tr></tbody></table></div>
<p>After we&#8217;ve changed the timeout, it got a little better, but didn&#8217;t solve the problem completely. So, after a lot more googling, we found out that this error on Apache&#8217;s log:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">(103)Software caused connection abort: proxy: pass request body failed</div></td></tr></tbody></table></div>
<p>is caused by a malformed server response and, to ignore it, we could set this option on our <em>httpd.conf</em>:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ProxyBadHeader Ignore</div></td></tr></tbody></table></div>
<p>After this change, it finally revealed to us the real problem:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)<br />
&nbsp; &nbsp; &nbsp; &nbsp; javax.servlet.http.HttpServlet.service(HttpServlet.java:641)<br />
&nbsp; &nbsp; &nbsp; &nbsp; javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:312)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:324)</div></td></tr></tbody></table></div>
<p>We started looking for the solution again and found a interesting Tomcat setting called <em>disableUploadTimeout</em>. People usually think you should set it as <em>true</em>, since the name is a little confusing, but if you <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation" target="_blank">read the docs</a> you&#8217;ll see that the default is <em>true</em> and you have to set it <em>false</em> if you want the timeout to be longer for uploads. Now this is my <em>Connector</em> at Tomcat&#8217;s <em>conf/server.xml</em> file:</p>
<div class="codecolorer-container text railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot; URIEncoding=&quot;UTF-8&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connectionTimeout=&quot;60000&quot; disableUploadTimeout=&quot;false&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;redirectPort=&quot;8443&quot; /&gt;</div></td></tr></tbody></table></div>
<p>If you&#8217;re having the same problem, I hope this post has saved your life&#8230; ;]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/12/502-proxy-error-uploading-from-apache-mod_proxy-to-tomcat-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stop accidentally quitting Apps (CMD+Q)</title>
		<link>http://blog.somepixels.net/2012/11/stop-accidentally-quitting-apps-cmdq/</link>
		<comments>http://blog.somepixels.net/2012/11/stop-accidentally-quitting-apps-cmdq/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 19:09:16 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=586</guid>
		<description><![CDATA[Have you ever accidentally hit CMD+Q, instead of CMD+W, on your Mac and closed the entire App when you really wanted to close just one tab? I know you did! So now I&#8217;ll teach you how to prevent that! Just follow these steps and thank me later&#8230; Open &#8220;System Preferences&#8221; Select &#8220;Keyboard&#8221; And &#8220;Keyboard Shortcuts&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever accidentally hit CMD+Q, instead of CMD+W, on your Mac and closed the entire App when you really wanted to close just one tab? I know you did!</p>
<p>So now I&#8217;ll teach you how to prevent that! Just follow these steps and thank me later&#8230; <img src='http://blog.somepixels.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ol>
<li>Open &#8220;System Preferences&#8221;</li>
<li>Select &#8220;Keyboard&#8221;</li>
<li>And &#8220;Keyboard Shortcuts&#8221;</li>
<li>Now click at &#8220;Application Shurtcuts&#8221; to add a new custom shortcut</li>
<li>Click on the &#8220;plus&#8221; sign</li>
<li>Select the App you want to &#8220;protect&#8221;</li>
<li>On &#8220;Menu Title&#8221;, enter the <em>exact</em> label from the menu option to exit the app you selected. (eg. On Google Chrome, it&#8217;s &#8220;Quit Google Chrome&#8221;. In some other apps, it&#8217;s just &#8220;Quit&#8221;)</li>
<li>On &#8220;Keyboard Shurtcut&#8221;, type something safe. Like CONTROL + COMMAND + Q</li>
</ol>
<p>You can use this tip to change any other shortcut or even add shortcuts to menu options without one previously assigned.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/11/stop-accidentally-quitting-apps-cmdq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xiki: A shell console on steroids</title>
		<link>http://blog.somepixels.net/2012/09/xiki-a-shell-console-on-steroids/</link>
		<comments>http://blog.somepixels.net/2012/09/xiki-a-shell-console-on-steroids/#comments</comments>
		<pubDate>Fri, 14 Sep 2012 18:51:59 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=584</guid>
		<description><![CDATA[Wow&#8230; I don&#8217;t even have words to describe Xiki. Just watch the introductory video, it&#8217;s amazing!! o_O]]></description>
			<content:encoded><![CDATA[<p>Wow&#8230; I don&#8217;t even have words to describe <a href="http://xiki.org/" target="_blank">Xiki</a>. Just watch the introductory video, it&#8217;s amazing!!</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/bUR_eUVcABg" frameborder="0" allowfullscreen></iframe></p>
<p>o_O</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/09/xiki-a-shell-console-on-steroids/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable Auto Correct and Auto Capitalize on mobile inputs</title>
		<link>http://blog.somepixels.net/2012/09/disable-auto-correct-and-auto-capitalize-on-mobile-inputs/</link>
		<comments>http://blog.somepixels.net/2012/09/disable-auto-correct-and-auto-capitalize-on-mobile-inputs/#comments</comments>
		<pubDate>Wed, 12 Sep 2012 03:42:10 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=575</guid>
		<description><![CDATA[When you&#8217;re developing web apps for mobile devices, you usually don&#8217;t want the iOS/Android to auto correct or auto capitalize all your inputs, like user name or e-mail. To disable these features, you can use: 1&#60;input type=&#34;text&#34; autocorrect=&#34;off&#34; autocapitalize=&#34;off&#34; autocomplete=&#34;off&#34; /&#62; The autocorrect and autocapitalize attributes works on the iPhone or the iPad, and the [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re developing web apps for mobile devices, you usually don&#8217;t want the iOS/Android to auto correct or auto capitalize all your inputs, like user name or e-mail. To disable these features, you can use:</p>
<div class="codecolorer-container html4strict railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> autocorrect<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;off&quot;</span> autocapitalize<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;off&quot;</span> autocomplete<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;off&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>The <code class="codecolorer text railscasts"><span class="text">autocorrect</span></code> and <code class="codecolorer text railscasts"><span class="text">autocapitalize</span></code> attributes works on the iPhone or the iPad, and the <code class="codecolorer text railscasts"><span class="text">autocomplete</span></code> is for any device running Android.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/09/disable-auto-correct-and-auto-capitalize-on-mobile-inputs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Escape any String to be &#8220;Regular-Expression-safe&#8221;</title>
		<link>http://blog.somepixels.net/2012/09/escape-any-string-to-be-regular-expression-safe/</link>
		<comments>http://blog.somepixels.net/2012/09/escape-any-string-to-be-regular-expression-safe/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 12:44:44 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=557</guid>
		<description><![CDATA[In Ruby, there is a method called Regexp.escape that escapes any String to be used inside a Regular Expression. This is useful when you want to get the user input and use it inside a RegExp, without breaking it. In JavaScript, there is no such method, but I found this nice little snippet to create [...]]]></description>
			<content:encoded><![CDATA[<p>In Ruby, there is a method called <code class="codecolorer ruby railscasts"><span class="ruby"><span style="color:#CC00FF; font-weight:bold;">Regexp</span>.<span style="color:#9900CC;">escape</span></span></code> that escapes any String to be used inside a Regular Expression. This is useful when you want to get the user input and use it inside a RegExp, without breaking it.</p>
<p>In JavaScript, there is no such method, but <a href="http://stackoverflow.com/a/3561711/328204" target="_blank">I found</a> this nice little snippet to create one:</p>
<div class="codecolorer-container javascript railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RegExp.<span style="color: #660066;">escape</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> s.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">-/</span>\\<span style="color: #339933;">^</span>$<span style="color: #339933;">*+?</span>.<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">|</span><span style="color: #009900;">&#91;</span>\<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">/</span>g<span style="color: #339933;">,</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\\</span>$&amp;'</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Now using:</p>
<div class="codecolorer-container javascript railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span> RegExp.<span style="color: #660066;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;jQuery-[1.8]&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;gi&quot;</span> <span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
<p>Will result <code class="codecolorer text railscasts"><span class="text">/jQuery\-\[1\.8\]/gi</span></code> <img src='http://blog.somepixels.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>This snippet is very useful and you can probably port it to any other language.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/09/escape-any-string-to-be-regular-expression-safe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evernote Dropbox</title>
		<link>http://blog.somepixels.net/2012/08/evernote-dropbox/</link>
		<comments>http://blog.somepixels.net/2012/08/evernote-dropbox/#comments</comments>
		<pubDate>Fri, 31 Aug 2012 14:01:22 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=550</guid>
		<description><![CDATA[I&#8217;ve started using the nice Screen Capture Chrome extension to grab some screenshots for my Evernote web design inspiration collection. The problem is that this extension can&#8217;t send the screenshots directly to Evernote, so I needed to do it manually all the time. After some research, I&#8217;ve come up with a better solution to the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started using the nice <a href="https://chrome.google.com/webstore/detail/cpngackimfmofbokmjmljamhdncknpmg" target="_blank">Screen Capture</a> Chrome extension to grab some screenshots for my Evernote web design inspiration collection. The problem is that this extension can&#8217;t send the screenshots directly to Evernote, so I needed to do it manually all the time.</p>
<p>After some research, I&#8217;ve come up with a better solution to the problem. I&#8217;ve developed a small AppleScript to check a folder for new files and e-mail those files to Evernote:</p>
<div class="codecolorer-container applescript railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="applescript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #0066ff;">adding</span> <span style="color: #0066ff;">folder</span> <span style="color: #0066ff;">items</span> <span style="color: #ff0033; font-weight: bold;">to</span> this_folder <span style="color: #ff0033;">after</span> <span style="color: #0066ff;">receiving</span> these_items<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> anItem <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">number</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">items</span> <span style="color: #ff0033; font-weight: bold;">in</span> these_items<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Read file info</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> this_item <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">item</span> anItem <span style="color: #ff0033; font-weight: bold;">of</span> these_items<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> item_info <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">info for</span> this_item<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> file_name <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">of</span> item_info<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> file_extension <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">name</span> <span style="color: #0066ff;">extension</span> <span style="color: #ff0033; font-weight: bold;">of</span> item_info<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> item_path <span style="color: #ff0033; font-weight: bold;">to</span> this_item <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Remove extension from name</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">if</span> file_extension <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> _length <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">count</span> <span style="color: #ff0033; font-weight: bold;">of</span> file_name<span style="color: #000000;">&#41;</span> <span style="color: #000000;">-</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">count</span> <span style="color: #ff0033; font-weight: bold;">of</span> file_extension<span style="color: #000000;">&#41;</span> <span style="color: #000000;">-</span> <span style="color: #000000;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> file_name <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">text</span> <span style="color: #000000;">1</span> <span style="color: #ff0033;">thru</span> _length <span style="color: #ff0033; font-weight: bold;">of</span> file_name<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Start new e-mail</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Mail&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Set file name + #tag as subject</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">set</span> theMessage <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> outgoing message <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">properties</span> <span style="color: #000000;">&#123;</span>visible:<span style="color: #0066ff;">true</span>, subject:file_name <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot; #tag #other_tag&quot;</span>, <span style="color: #0066ff;">content</span>:<span style="color: #009900;">&quot;&quot;</span><span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">tell</span> theMessage<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Add evernote email as recipient</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> <span style="color: #ff0033; font-weight: bold;">to</span> recipient at <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #ff0033; font-weight: bold;">to</span> recipients <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">properties</span> <span style="color: #000000;">&#123;</span><span style="color: #0066ff;">name</span>:<span style="color: #009900;">&quot;Evernote&quot;</span>, address:<span style="color: #009900;">&quot;YOUR_EVERNOTE_EMAIL@m.evernote.com&quot;</span><span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Attach file</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">content</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> attachment <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">properties</span> <span style="color: #000000;">&#123;</span><span style="color: #0066ff;">file</span> <span style="color: #0066ff;">name</span>:item_path<span style="color: #000000;">&#125;</span> at <span style="color: #ff0033;">after</span> <span style="color: #ff0033;">last</span> <span style="color: #0066ff;">paragraph</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- Uncomment next line to send the e-mail automatically</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">-- send</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
&nbsp; &nbsp; <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span><br />
&nbsp; &nbsp; <br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #0066ff;">adding</span> <span style="color: #0066ff;">folder</span> <span style="color: #0066ff;">items</span> <span style="color: #ff0033; font-weight: bold;">to</span></div></td></tr></tbody></table></div>
<p>How to use it:</p>
<ol>
<li>Get your Evernote e-mail address at: <a href="https://www.evernote.com/Settings.action" target="_blank">https://www.evernote.com/Settings.action</a></li>
<li>Open the tool &#8220;AppleScript Editor&#8221;</li>
<li>Copy and paste the script there</li>
<li>Change <strong>YOUR_EVERNOTE_EMAIL</strong> to your e-mail address</li>
<li>Change <strong>#tag #other_tag</strong> to any <strong>existing</strong> tag, if you want, or remove it</li>
<li>Save it as &#8220;Mail to Evernote&#8221; at &#8220;/Library/Scripts/Folder Action Scripts/&#8221;</li>
<li>Create a folder anywhere you want. Call it &#8220;Evernote Dropbox&#8221; or something you like.</li>
<li>Right click this folder, select Services/Folder Actions Setup&#8230;</li>
<li>Select the &#8220;Mail to Evernote&#8221; script</li>
<li>Toggle &#8220;Enable Folder Actions&#8221;</li>
<li>Uncomment the <strong>send</strong> command to send the e-mail automatically, if you want</li>
</ol>
<p>Now save some screenshot at this folder and wait for the new Mail message to be created&#8230; <img src='http://blog.somepixels.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/08/evernote-dropbox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Meetings</title>
		<link>http://blog.somepixels.net/2012/03/meetings/</link>
		<comments>http://blog.somepixels.net/2012/03/meetings/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 12:42:41 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=491</guid>
		<description><![CDATA[This morning I found a link that made me remember about this great Coding Horror article about how to have more productive meetings. Meeting Ticker is basically a &#8220;clock&#8221;, but instead of time, it show how much money you are spending on your meetings. Money is always a good way to change our behaviour&#8230; ;]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.somepixels.net/wp-content/uploads/2012/03/meetings.png" rel="lightbox[491]"><img src="http://blog.somepixels.net/wp-content/uploads/2012/03/meetings.png" alt="" title="Meetings" width="500" height="379" class="aligncenter size-full wp-image-492" /></a></p>
<p>This morning I found a link that made me remember about this great <a href="http://www.codinghorror.com/blog/2012/02/meetings-where-work-goes-to-die.html" target="_blank">Coding Horror article</a> about how to have more productive meetings.</p>
<p><a href="http://tobytripp.github.com/meeting-ticker/" target="_blank">Meeting Ticker</a> is basically a &#8220;clock&#8221;, but instead of time, it show how much money you are spending on your meetings. Money is always a good way to change our behaviour&#8230; ;]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/03/meetings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mail Pilot: E-mail, reimagined.</title>
		<link>http://blog.somepixels.net/2012/02/mail-pilot-e-mail-reimagined/</link>
		<comments>http://blog.somepixels.net/2012/02/mail-pilot-e-mail-reimagined/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 01:22:21 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[UX]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=480</guid>
		<description><![CDATA[We all feel that there is something wrong with &#8220;e-mail&#8221;, as we know it today. Most people nowadays have more than one e-mail account, our use has been growing exponentially and it&#8217;s getting harder and harder to cope with so much information and problems to solve. So here comes Mail Pilot! A product developed by [...]]]></description>
			<content:encoded><![CDATA[<p>We all feel that there is something wrong with &#8220;e-mail&#8221;, as we know it today. Most people nowadays have more than one e-mail account, our use has been growing exponentially and it&#8217;s getting harder and harder to cope with so much information and problems to solve.</p>
<p>So here comes <a href="http://mail-pilot.com/" target="_blank">Mail Pilot</a>! A product developed by 2 guys who believe they can reinvent the way we deal with e-mail today. Their <a href="http://www.kickstarter.com/projects/1380180715/mail-pilot-email-reimagined" target="_blank">Kickstarter project</a> raised $54,205 and they are already working hard on the Beta release.</p>
<p><a href="http://blog.somepixels.net/wp-content/uploads/2012/02/WebAdStep1.jpeg" rel="lightbox[480]"><img src="http://blog.somepixels.net/wp-content/uploads/2012/02/WebAdStep1.jpeg" alt="" title="Mail Pilot 1" width="630" height="280" class="aligncenter size-full wp-image-482" /></a><br />
<a href="http://blog.somepixels.net/wp-content/uploads/2012/02/WebAdStep2.jpeg" rel="lightbox[480]"><img src="http://blog.somepixels.net/wp-content/uploads/2012/02/WebAdStep2.jpeg" alt="" title="Mail Pilot 2" width="630" height="280" class="aligncenter size-full wp-image-481" /></a></p>
<p>I&#8217;m really looking forward to trying it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/02/mail-pilot-e-mail-reimagined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Lion 10.7.3 External Monitor Problem</title>
		<link>http://blog.somepixels.net/2012/02/os-x-lion-10-7-3-external-monitor-problem-2/</link>
		<comments>http://blog.somepixels.net/2012/02/os-x-lion-10-7-3-external-monitor-problem-2/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 12:58:18 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=474</guid>
		<description><![CDATA[This morning I finally decided to install the latest Mac OS X 10.7.3 update. Everything went better than expected! The only exception was when I connected my external display. The image kept flashing and I couldn&#8217;t see anything. After some testing, I think I&#8217;ve found the solution: Open System Preferences. Click on Displays. Show display [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I finally decided to install the latest Mac OS X 10.7.3 update. Everything went better than expected! The only exception was when I connected my external display. The image kept flashing and I couldn&#8217;t see anything. After some testing, I think I&#8217;ve found the solution:</p>
<ol>
<li>Open System Preferences.</li>
<li>Click on Displays.</li>
<li>Show display in menu bar.</li>
<li>Click on the menu bar icon.</li>
<li>Check if the selected screen resolution for the external display is appearing twice on the list.</li>
<li>If it&#8217;s there twice, select the other one. If it&#8217;s not, I&#8217;m really sorry! <img src='http://blog.somepixels.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li>You can remove the icon from the menu bar now if you want.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/02/os-x-lion-10-7-3-external-monitor-problem-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clear for iPhone</title>
		<link>http://blog.somepixels.net/2012/02/clear-for-iphone/</link>
		<comments>http://blog.somepixels.net/2012/02/clear-for-iphone/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 17:20:05 +0000</pubDate>
		<dc:creator>André Gil</dc:creator>
				<category><![CDATA[Beautiful]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[UX]]></category>

		<guid isPermaLink="false">http://blog.somepixels.net/?p=419</guid>
		<description><![CDATA[Clear was finally release today for the iPhone and all I have to say is: Beautiful! I don&#8217;t know if I&#8217;m gonna use it, but it&#8217;s now part of my best designed apps list.]]></description>
			<content:encoded><![CDATA[<p><a href="http://itunes.apple.com/us/app/clear/id493136154?ls=1&#038;mt=8" target="_blank">Clear</a> was finally release today for the iPhone and all I have to say is: Beautiful! I don&#8217;t know if I&#8217;m gonna use it, but it&#8217;s now part of my best designed apps list.</p>
<p><iframe src="http://player.vimeo.com/video/35693267" width="500" height="280" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.somepixels.net/2012/02/clear-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
