<?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>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://28.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://30.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’s very simple and powerful. Look at this:
&lt;br/&gt;&lt;br/&gt;
Imagine that your single element’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;.kind-one {
          background-position:0 0;
        }

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

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

        &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 =&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;
&lt;div id="gallery"&gt;
    &lt;% @photo_sets.each do |set| %&gt;
      &lt;div id="&lt;%= set.id %&gt;" class="photo_set"&gt;&lt;/div&gt;
    &lt;% end %&gt;
&lt;/div&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 &lt;new-branch&gt; &lt;remote-branch&gt;&lt;/pre&gt;

Be careful because if you’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’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’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’t have mercurial (hq) installed, you can do it so:

&lt;pre&gt;$ easy_install pip &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><item><title>Adding Sass to Sublime Text2</title><description>&lt;a href="https://github.com/nathansmith/sublime-text-haml-sass"&gt;Adding Sass to Sublime Text2&lt;/a&gt;</description><link>http://raulbarroso.com/post/12255167855</link><guid>http://raulbarroso.com/post/12255167855</guid><pubDate>Wed, 02 Nov 2011 22:34:42 +0100</pubDate><category>sublime</category><category>editor</category><category>sass</category></item><item><title>RIP Dennis Ritchie, Creator Of Unix And C Dies</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lue56xX0YP1qbdocqo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;RIP Dennis Ritchie, Creator Of Unix And C Dies&lt;/p&gt;</description><link>http://raulbarroso.com/post/12553414251</link><guid>http://raulbarroso.com/post/12553414251</guid><pubDate>Wed, 12 Oct 2011 12:29:00 +0200</pubDate><category>c</category><category>dennis</category><category>ritchie</category><category>unix</category><category>dies</category></item><item><title>Getting a valid list of urls in a Symfony2 project</title><description>&lt;p&gt;In my case, I wanted to get a complete list of valid urls to use &lt;a href="https://github.com/geuis/helium-css"&gt;Helium-css&lt;/a&gt; (to clean all the unused css of the project) and to take the advantage of the routing, I executed this command (you should replace &lt;b&gt;BASE_URL&lt;/b&gt; to your &lt;i&gt;base_url&lt;/i&gt;:

&lt;pre&gt;app/console router:debug | awk '{print "&lt;b&gt;BASE_URL&lt;/b&gt;"$3}'&lt;/pre&gt;

With this, you only have to paste the list to the helium window (replacing some id…) and you got it!.&lt;/p&gt;</description><link>http://raulbarroso.com/post/10766804680</link><guid>http://raulbarroso.com/post/10766804680</guid><pubDate>Wed, 28 Sep 2011 16:19:59 +0200</pubDate><category>symfony</category><category>bash</category><category>command</category><category>symfony2</category></item><item><title>Rake with Rails 3.1rc1</title><description>&lt;p&gt;Do you have an error executing a rake task using the new rails version?:
 Just do the following:
&lt;pre&gt;bundle exec rake&lt;/pre&gt;
And if you don’t want remember this command each time, you could make an alias:
&lt;pre&gt;alias rake="bundle exec rake"&lt;/pre&gt;
Or even add it to your bash profile, ;)

Why do you have the error?.  The new version of rails breaks a few of things and you should use the version 0.8.7 of this rake gem instead of any other.&lt;/p&gt;</description><link>http://raulbarroso.com/post/10766097242</link><guid>http://raulbarroso.com/post/10766097242</guid><pubDate>Wed, 28 Sep 2011 15:40:31 +0200</pubDate><category>rake</category><category>rails</category><category>task</category><category>rc1</category><category>error</category></item><item><title>How to search files with less common extensions with AckMate</title><description>&lt;p&gt;In my case is &lt;b&gt;.twig&lt;/b&gt; but you can do it for any extension. It’s simple and you can check it in &lt;a href="https://github.com/protocool/AckMate/wiki"&gt;wiki ack’s page&lt;/a&gt; but if you’re not too acquainted with these kind of things, just do the following:

&lt;pre&gt;mate ~/.ackrc&lt;/pre&gt;

and

add these lines:

&lt;pre&gt;--type-add
php=twig&lt;/pre&gt;

And you got it!.

P.S.: Other examples:

&lt;pre&gt;--type-set=sass=.scss
--type-set=coffee=.coffee&lt;/pre&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/10234829721</link><guid>http://raulbarroso.com/post/10234829721</guid><pubDate>Thu, 15 Sep 2011 10:49:00 +0200</pubDate><category>ack</category><category>ackmate</category><category>mate</category><category>php</category><category>search</category><category>textmate</category><category>twig</category><category>macosx</category></item><item><title>Learning by accident. Chapter #2134</title><description>&lt;p&gt;Playing with Firebug console, if you edit a number value you can do:&lt;/p&gt;

&lt;p&gt;With arrows (↑/↓) increments are &lt;b&gt;1&lt;/b&gt;[+/-]. &lt;/p&gt;

&lt;p&gt;So far I knew this… but if you press at same time ⌘ the variations will be &lt;b&gt;0.1&lt;/b&gt;[+/-] or if the key pressed is ⇧ will be &lt;b&gt;10&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;It’s a stupid thing but I didn’t know it and it useful for me. I hope you too.&lt;/p&gt;</description><link>http://raulbarroso.com/post/9046340351</link><guid>http://raulbarroso.com/post/9046340351</guid><pubDate>Wed, 17 Aug 2011 21:07:04 +0200</pubDate><category>tricks</category><category>firefox</category><category>console</category><category>firebug</category></item><item><title>A "must" for MacOSX and terminal users </title><description>&lt;a href="http://www.iterm2.com/#/section/home"&gt;A "must" for MacOSX and terminal users &lt;/a&gt;: &lt;p&gt;This app is wonderful. You can split your terminal window (so many times you want)  and to get a full control for everything you do.&lt;/p&gt;

&lt;p&gt;CMD+D (split vertically)&lt;br/&gt;
Shift+CMD+D (split horizontally)&lt;br/&gt;
CMD+Tab (like default terminal app in MacOSX - create a new tab).&lt;/p&gt;

&lt;p&gt;etc, etc…&lt;/p&gt;</description><link>http://raulbarroso.com/post/8728094371</link><guid>http://raulbarroso.com/post/8728094371</guid><pubDate>Wed, 10 Aug 2011 10:36:55 +0200</pubDate><category>macosx</category><category>application</category><category>app</category><category>terminal</category></item><item><title>SASS Bundle for TextMate</title><description>&lt;p&gt;&lt;pre&gt;mkdir -p ~/Library/Application\ Support/TextMate/Bundles&lt;/pre&gt;
&lt;pre&gt;cd ~/Library/Application\ Support/TextMate/Bundles&lt;/pre&gt;
&lt;pre&gt;git clone git://github.com/charlesr/ruby-sass-tmbundle.git "Ruby Sass.tmbundle"&lt;/pre&gt;
&lt;pre&gt;osascript -e 'tell app "TextMate" to reload bundles'&lt;/pre&gt;&lt;/p&gt;</description><link>http://raulbarroso.com/post/8692805719</link><guid>http://raulbarroso.com/post/8692805719</guid><pubDate>Tue, 09 Aug 2011 18:29:38 +0200</pubDate><category>sass</category><category>rails</category><category>ruby</category><category>textmate</category></item><item><title>Installing postgres with Brew in MacOSX</title><description>&lt;p&gt;Homebrew is wonderful but sometimes it can be a little headache.

For example, if you’ve created a rake task with ruby that assume a role called postgres (by default), probably if you installed with brew you won’t have it. Brew get your system user and unless your name would be &lt;b&gt;postgres&lt;/b&gt;, you have to create it.

For this reason, I’m going to write the easy steps to create a new role with admin privileges.

Remembering, you did:

&lt;pre&gt;brew install postres&lt;/pre&gt;
&lt;pre&gt;initdb /usr/local/var/postgres&lt;/pre&gt;
&lt;pre&gt;mkdir -p ~/Library/LaunchAgents&lt;/pre&gt;
&lt;pre&gt;cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/&lt;/pre&gt;
&lt;pre&gt;launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist&lt;/pre&gt;

If you need a gem for posgres do:

&lt;pre&gt;env ARCHFLAGS="-arch x86_64" gem install pg&lt;/pre&gt;

Install Instrumentation, in my case (postgres version 9.0.4):

&lt;pre&gt;
psql -d postgres &lt; /usr/local/Cellar/postgresql/9.0.4/share/postgresql/contrib/adminpack.sql&lt;/pre&gt;

At this moment, you installed postgress (it’s only a note). Ok, let’s create a new role:

&lt;pre&gt;psql -d postgres&lt;/pre&gt;

With this command, you’ll see all roles created:

&lt;pre&gt;postgres-# \du&lt;/pre&gt;

We create a new user called &lt;b&gt;postgres&lt;/b&gt; like this way:

&lt;pre&gt;postgres=# CREATE ROLE postgres SUPERUSER CREATEDB CREATEROLE LOGIN;&lt;/pre&gt;

And that’s all. If you list all users again you’ll see that a new user has been created.&lt;/p&gt;</description><link>http://raulbarroso.com/post/8656188824</link><guid>http://raulbarroso.com/post/8656188824</guid><pubDate>Mon, 08 Aug 2011 22:16:00 +0200</pubDate><category>macosx</category><category>brew</category><category>postgres</category><category>db</category></item></channel></rss>

