<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I use my own memory to important things. 

I can find the rest on internet. 

I know where to look.</description><title>Developer Disaster Drawer</title><generator>Tumblr (3.0; @rabarroso)</generator><link>http://raulbarroso.com/</link><item><title>Tell someone</title><description>&lt;p&gt;Work remotely sometimes could be annoying, especially when you have a trouble with something and you can&amp;#8217;t share it quickly.&lt;/p&gt;

&lt;p&gt;This works to me:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;1.&lt;/b&gt; Record a screencast (I use &lt;a href="http://www.techsmith.com/jing.html"&gt;http://www.techsmith.com/jing.html&lt;/a&gt;) and explain your problem to &amp;#8220;another person&amp;#8221;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;2.&lt;/b&gt; Watch the screencast. If you explained your problem wrong, repeat the step 1!!&lt;/p&gt;

&lt;p&gt;The 98% of cases I just found a solution by myself. With the other 2%&amp;#8230; I share the screencast that I already recorded, :D.&lt;/p&gt;</description><link>http://raulbarroso.com/post/23301856734</link><guid>http://raulbarroso.com/post/23301856734</guid><pubDate>Fri, 18 May 2012 21:16:24 +0200</pubDate><category>work</category><category>screencast</category><category>remotely</category><category>help</category></item><item><title>robotmay: Everyone should be using low level caching in Rails</title><description>&lt;a href="http://robotmay.com/post/23161612605/everyone-should-be-using-low-level-caching"&gt;robotmay: Everyone should be using low level caching in Rails&lt;/a&gt;: &lt;p&gt;&lt;a href="http://robotmay.com/post/23161612605/everyone-should-be-using-low-level-caching" class="tumblr_blog"&gt;robotmay&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Low level caching is very easy to get started with in Rails 3, but it seems to be missing from &lt;a href="http://guides.rubyonrails.org"&gt;the official guides&lt;/a&gt;. I personally use it all the time to help reduce the number of queries or API calls I’m making. &lt;a href="https://devcenter.heroku.com/articles/caching-strategies#low_level_caching"&gt;Heroku has a pretty good explanation&lt;/a&gt; which, if you’re so far unfamiliar with…&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://raulbarroso.com/post/23217503115</link><guid>http://raulbarroso.com/post/23217503115</guid><pubDate>Thu, 17 May 2012 08:28:02 +0200</pubDate></item><item><title>Use SublimeText from command line</title><description>&lt;p&gt;&lt;b&gt;Create a symbolic link doing:&lt;/b&gt;
&lt;pre&gt;$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl&lt;/pre&gt;

Run &lt;pre&gt;subl --help&lt;/pre&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/21900731004</link><guid>http://raulbarroso.com/post/21900731004</guid><pubDate>Fri, 27 Apr 2012 07:53:21 +0200</pubDate><category>sublime</category><category>command</category><category>line</category><category>cli</category><category>text</category><category>editor</category><category>terminal</category></item><item><title>"As a creative person, you’ve been given the ability to build things from nothing by way of hard work..."</title><description>“As a creative person, you’ve been given the ability to build things from nothing by way of hard work over long periods of time. Creation is a deeply personal and rewarding activity, which means that your Work should also be deeply personal and rewarding. If it’s not, then something is amiss.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Ben Pieratt (via &lt;a href="http://process.germanforblack.com/" class="tumblr_blog"&gt;declarationofprocess&lt;/a&gt;)&lt;/em&gt;</description><link>http://raulbarroso.com/post/21838799595</link><guid>http://raulbarroso.com/post/21838799595</guid><pubDate>Thu, 26 Apr 2012 09:19:18 +0200</pubDate></item><item><title>Create a hash from an array with Hash[*arr]</title><description>&lt;p&gt;&lt;a href="http://rubyquicktips.com/post/21257842435/create-a-hash-from-an-array-with-hash-arr" class="tumblr_blog"&gt;rubyquicktips&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;The &lt;a href="http://www.ruby-doc.org/core-1.9.3/Hash.html#method-c-5B-5D" title="Class: Hash (Ruby 1.9.3)"&gt;Hash::[] class method&lt;/a&gt; can be used in addition to the &lt;a href="http://pivotallabs.com/users/nick/blog/articles/438-ruby-pearls-vol-1-the-splat" title="nick - Ruby Pearls vol. 1 - The Splat"&gt;splat operator&lt;/a&gt; to create a hash from an array.&lt;/p&gt;

&lt;div class="CodeRay"&gt;
  &lt;div class="code"&gt;&lt;pre&gt;arr = [&lt;span class="sy"&gt;:a&lt;/span&gt;, &lt;span class="i"&gt;1&lt;/span&gt;, &lt;span class="sy"&gt;:b&lt;/span&gt;, &lt;span class="i"&gt;2&lt;/span&gt;]
&lt;span class="co"&gt;Hash&lt;/span&gt;[*arr]
&lt;span class="c"&gt;# =&amp;gt; {:a =&amp;gt; 1, :b =&amp;gt; 2}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;</description><link>http://raulbarroso.com/post/21258292996</link><guid>http://raulbarroso.com/post/21258292996</guid><pubDate>Tue, 17 Apr 2012 08:18:48 +0200</pubDate><category>ruby</category><category>hash</category><category>array</category></item><item><title>Use the source</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m2lzfhy8EW1qbdocqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Use the source&lt;/p&gt;</description><link>http://raulbarroso.com/post/21257015918</link><guid>http://raulbarroso.com/post/21257015918</guid><pubDate>Tue, 17 Apr 2012 07:33:16 +0200</pubDate><category>source</category><category>star</category><category>wars</category></item><item><title>The classic story of the pig and chicken</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_m1kemo80mn1qbdocqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The classic story of the pig and chicken&lt;/p&gt;</description><link>http://raulbarroso.com/post/20028750766</link><guid>http://raulbarroso.com/post/20028750766</guid><pubDate>Wed, 28 Mar 2012 00:32:48 +0200</pubDate><category>scrum</category><category>chicken</category><category>pig</category><category>pair</category><category>programming</category></item><item><title>Distributed systems at Heroku</title><description>&lt;iframe src="http://player.vimeo.com/video/38599552" width="400" height="300" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Distributed systems at Heroku&lt;/p&gt;</description><link>http://raulbarroso.com/post/19722941492</link><guid>http://raulbarroso.com/post/19722941492</guid><pubDate>Thu, 22 Mar 2012 07:14:58 +0100</pubDate><category>heroku</category><category>dystributed</category><category>systems</category><category>security</category></item><item><title>Good caching tutorial</title><description>&lt;a href="http://www.mnot.net/cache_docs/"&gt;Good caching tutorial&lt;/a&gt;</description><link>http://raulbarroso.com/post/18955857068</link><guid>http://raulbarroso.com/post/18955857068</guid><pubDate>Thu, 08 Mar 2012 19:44:36 +0100</pubDate><category>cache</category><category>header</category><category>response</category><category>performance</category><category>website</category></item><item><title>Testing fadeOut event with Jasmine</title><description>&lt;a href="https://gist.github.com/1867822"&gt;Testing fadeOut event with Jasmine&lt;/a&gt;</description><link>http://raulbarroso.com/post/17928631448</link><guid>http://raulbarroso.com/post/17928631448</guid><pubDate>Mon, 20 Feb 2012 05:28:22 +0100</pubDate></item><item><title>blat:

Ajax for dummies</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lz6o4yHelJ1qz4y16o1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://fernando.blat.es/post/17373039078/ajax-for-dummies" class="tumblr_blog"&gt;blat&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Ajax for dummies&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://raulbarroso.com/post/17374193943</link><guid>http://raulbarroso.com/post/17374193943</guid><pubDate>Fri, 10 Feb 2012 17:02:53 +0100</pubDate></item><item><title>css3watch:

Path menu in pure CSS3

</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lwg748cXNU1qc6s4so1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://css3watch.com/post/14451992753/path-menu-in-pure-css3" class="tumblr_blog"&gt;css3watch&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;h2&gt;&lt;a href="http://lab.victorcoulon.fr/css/path-menu/"&gt;Path menu in pure CSS3&lt;/a&gt;&lt;/h2&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/15417835856</link><guid>http://raulbarroso.com/post/15417835856</guid><pubDate>Fri, 06 Jan 2012 23:47:39 +0100</pubDate></item><item><title>maria-martinez:

MaxiMidia VIntage Ads...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lwjwd7Lt9i1qe4tzxo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://mmartinez.es/post/14558632251/maximidia-vintage-ads" class="tumblr_blog"&gt;maria-martinez&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;MaxiMidia VIntage Ads - &lt;a href="http://www.maximidiavintageads.com/"&gt;&lt;/a&gt;&lt;a href="http://www.maximidiavintageads.com/"&gt;&lt;a href="http://www.maximidiavintageads.com/"&gt;http://www.maximidiavintageads.com/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://raulbarroso.com/post/14574257367</link><guid>http://raulbarroso.com/post/14574257367</guid><pubDate>Wed, 21 Dec 2011 20:43:01 +0100</pubDate></item><item><title>My forked version of wysiwyg editor created by XING</title><description>&lt;a href="https://github.com/rabarroso/wysihtml5"&gt;My forked version of wysiwyg editor created by XING&lt;/a&gt;: &lt;p&gt;Thanks to creators of this completely library agnostic &lt;b&gt;wysiwyg&lt;/b&gt;: (&lt;i&gt;No jQuery, Prototype or similar is required&lt;/i&gt;):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tiff"&gt;@tiff&lt;/a&gt;&lt;br/&gt;&lt;a href="https://github.com/ingochao"&gt;@ingochao&lt;/a&gt;&lt;br/&gt;&lt;a href="https://github.com/uwe"&gt;@uwe&lt;/a&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/13032728202</link><guid>http://raulbarroso.com/post/13032728202</guid><pubDate>Sun, 20 Nov 2011 00:13:00 +0100</pubDate><category>wyiwyg</category><category>xing</category><category>git</category><category>github</category><category>forked</category><category>editor</category><category>html5</category></item><item><title>blat:

Javier Santana - Cómo montar tu empresa desde cero</title><description>&lt;iframe src="http://player.vimeo.com/video/32024691" width="400" height="225" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://fernando.blat.es/post/12812713470/javier-santana-como-montar-tu-empresa-desde-cero" class="tumblr_blog"&gt;blat&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Javier Santana - Cómo montar tu empresa desde cero&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://raulbarroso.com/post/12838824754</link><guid>http://raulbarroso.com/post/12838824754</guid><pubDate>Tue, 15 Nov 2011 17:23:04 +0100</pubDate><category>javi</category><category>santana</category><category>vimeo</category></item><item><title>Using Sass with sprites </title><description>&lt;p&gt;It&amp;#8217;s very simple and powerful. Look at this:
&lt;br/&gt;&lt;br/&gt;
Imagine that your single element&amp;#8217;s height is 38px; Ok, you can define a variable with this:
&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;$height-element:58px;&lt;/pre&gt;
&lt;br/&gt;
Ok, and now you have your background sprite:
&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;.element {
 
        position:absolute;
        bottom:0;
        right:0;
        width:94px;
        background:url(sprite.png) no-repeat 0 0;
       &lt;b&gt; height:$height-element;&lt;/b&gt;
      }
&lt;/pre&gt;

And for example 4 elements using this sprite (adding another class):
&lt;br/&gt;&lt;br/&gt;

Inside your .element class:

&lt;pre&gt;
       &amp;amp;.kind-one {
          background-position:0 0;
        }

        &amp;amp;.kind-two {
          background-position:0 #{-($height-element)};
        }

        &amp;amp;.kind-three {
          background-position:0 #{-($height-element*2)};
        }

        &amp;amp;.kind-four {
          background-position:0 #{-($height-element*3)};
        }
 &lt;/pre&gt;

And if you want to add a new element to the sprite or if one of the elements is changed it’s very simple to be used!&lt;/p&gt;</description><link>http://raulbarroso.com/post/12554493067</link><guid>http://raulbarroso.com/post/12554493067</guid><pubDate>Wed, 09 Nov 2011 13:54:14 +0100</pubDate><category>css</category><category>scss</category><category>compact</category><category>sass</category><category>sprites</category></item><item><title>Build a powerful Flickr Gallery with Rails and js</title><description>&lt;p&gt;If you are using Rails and you need a flickr gallery just bear in mind these two things:
&lt;br/&gt;&lt;br/&gt;
- &lt;a href="http://rubygems.org/gems/flickraw"&gt;Flickraw gem&lt;/a&gt;&lt;br/&gt;
- &lt;a href="http://galleria.aino.se/"&gt;Galleria plugin&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;
With the first one you need just to add it to your site:


&lt;pre&gt;FlickRaw.api_key = 'YOUR_API_KEY'
FlickRaw.shared_secret = 'YOUR_FLICKR_SECRET'
    
flickr = FlickRaw::Flickr.new&lt;/pre&gt;

And using the complete flickr api, you can use, for example:

&lt;pre&gt;@photo_sets = flickr.photosets.getList(:user_id =&amp;gt; "USER_ID")&lt;/pre&gt;

And with &lt;a href="http://galleria.aino.se/docs/1.2/plugins/flickr/"&gt;Galleria&lt;/a&gt;, you could get everything that you want:

&lt;b&gt;Ruby code:&lt;/b&gt;

&lt;pre&gt;
&amp;lt;div id="gallery"&amp;gt;
    &amp;lt;% @photo_sets.each do |set| %&amp;gt;
      &amp;lt;div id="&amp;lt;%= set.id %&amp;gt;" class="photo_set"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;% end %&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;

&lt;b&gt;Javascript code:&lt;/b&gt;
&lt;pre&gt;
// if you have severals, you can do it with an each loop
var set_id = $('#gallery').children('.photo_set').attr('id');
      
      $('#gallery').children('.photo_set').galleria({
        flickr: 'set:'+set_id,
          flickrOptions: {
            sort: 'date-posted-asc'
          }
      });
&lt;/pre&gt;

P.S.: I wrote a simple example, starting here you can everything that you can imagine, ;)&lt;/p&gt;</description><link>http://raulbarroso.com/post/12463874914</link><guid>http://raulbarroso.com/post/12463874914</guid><pubDate>Mon, 07 Nov 2011 10:59:00 +0100</pubDate><category>rails</category><category>gem</category><category>ruby</category><category>gallery</category><category>javascript</category><category>js</category><category>flickr</category></item><item><title>Setting remotes/origin/HEAD to origin/master</title><description>&lt;p&gt;Probably you want to track a new branch locally based on a remote. Just something like:

&lt;pre&gt;git branch --track &amp;lt;new-branch&amp;gt; &amp;lt;remote-branch&amp;gt;&lt;/pre&gt;

Be careful because if you&amp;#8217;has selected a remote branch like HEAD, probably you lost the link to master branch. If you want to restart this, you should type:

&lt;pre&gt;git remote set-head origin master&lt;/pre&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/12463725230</link><guid>http://raulbarroso.com/post/12463725230</guid><pubDate>Mon, 07 Nov 2011 10:48:35 +0100</pubDate><category>git</category><category>terminal</category><category>command</category></item><item><title>Updating ImageMagick with Brew and MacOSX Lion</title><description>&lt;p&gt;Upgrade to MacOSX Lion is not perfect. And ImageMagick is not an exception. First of all (obvious), don&amp;#8217;t forget to install XCode (or reinstall the C compiler).

Following, probably you have tried to download it the binary source but I prefer still using HomeBrew to these kind of things. To do it with this method, just type the next:

&lt;pre&gt;cd /usr/local&lt;/pre&gt;
&lt;pre&gt;git reset --hard FETCH_HEAD&lt;/pre&gt;
&lt;pre&gt;brew install imagemagick&lt;/pre&gt;

That&amp;#8217;s all&lt;/p&gt;</description><link>http://raulbarroso.com/post/12373220652</link><guid>http://raulbarroso.com/post/12373220652</guid><pubDate>Sat, 05 Nov 2011 17:13:00 +0100</pubDate><category>brew</category><category>imagemagick</category><category>lion</category><category>macosx</category><category>install</category><category>git</category><category>update</category><category>homebrew</category></item><item><title>How to add Zen Coding to Sublime Text 2</title><description>&lt;p&gt;Just type:

&lt;pre&gt;$ hg clone &lt;a href="https://bitbucket.org/sublimator/sublime-2-zencoding"&gt;https://bitbucket.org/sublimator/sublime-2-zencoding&lt;/a&gt; ZenCoding&lt;/pre&gt;

and reload SublimeText 2!

P.S.: If you don&amp;#8217;t have mercurial (hq) installed, you can do it so:

&lt;pre&gt;$ easy_install pip &amp;amp;&amp;amp; pip install Mercurial&lt;/pre&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/12256922994</link><guid>http://raulbarroso.com/post/12256922994</guid><pubDate>Wed, 02 Nov 2011 23:12:28 +0100</pubDate><category>mercurial</category><category>sublime</category><category>zencoding</category><category>text</category><category>hq</category></item></channel></rss>

