You are here: Blogsphere Popular

Rails BlogSphere

BlogSphere

Keep up to date with your favourite Rails bloggers in context.

Read more about how it works

245186169_46c171be89_m_d Havenhurst Prophet Posse &#...

by Marcel Molina Jr | about 5 hours ago | Read more

Havenhurst Prophet Posse – Jib Kidder

245186169_46c171be89_m_d Serapis flag

by Marcel Molina Jr | about 5 hours ago | Read more

Serapis_flag

Serapis flag

245186169_46c171be89_m_d A person gets from a symbol...

by Marcel Molina Jr | about 5 hours ago | Read more

A person gets from a symbol the meaning he puts into it.

Robert H. Jackson

245186169_46c171be89_m_d Duchamp reloaded

by Marcel Molina Jr | about 5 hours ago | Read more

Duchamp

Duchamp reloaded

245186169_46c171be89_m_d Four years of Projectionist

by Marcel Molina Jr | about 24 hours ago | Read more

Four-years-of-projectionist

Four years of Projectionist

245186169_46c171be89_m_d quadrennium: A specified pe...

by Marcel Molina Jr | about 24 hours ago | Read more

quad•ren•ni•um
[kwo-dren-ee-uhm]noun
A specified period of four years.

2394137488_934c80d382_m Nifty Threaded IM Chat within Gtalk/Gmail Chat

by Dr Nic Williams | 1 day ago | Read more

Ever had IM chats where a conversation splits into multiple topics? You’ll be able to follow along, intelligently piecing together which-message-goes-with-which-topic, until the following scenario inevitably occurs: me: What's on this weekend? Going to the football? me: Are you and Jackie still seeing each other? you: Yes me: Eh? Yes - [...] Related posts:
  1. Yehuda Katz starts a blog Yehuda is the creator of autoDB – the wonderful admin...

Me Slides from Web app/JavaScript performance talk at Kings of Code

by Thomas Fuchs | 1 day ago | Read more

Here are the slides from the presentation Amy and I gave at Kings of Code ‘09 in Amsterdam. Probably not too helpful without the audio, it’s mostly for those of you that attended and asked for the slides, so please enjoy Rich and Snappy Apps (No Scaling Required). You can also grab a PDF (3.4 MB).

Taqblack Seleções de blocos com o Vim

by Eustáquio Rangel | 1 day ago | Read more

Ontem o meu amigo Samir Mamude me chamou a atenção para esse post aqui, onde o autor mostrou alguns dos recursos novos do Microsoft Visual Studio 2010, que agora possibilita recursos para edição em blocos.

Como ele bem comentou lá no post original, nós já temos esses recursos já faz um bom tempo, no bom e velho (jurássico é sacanagem) Vim, e como o autor do post pediu um vídeo para compararmos (ou provarmos que existia mesmo, sei lá), eu fiz esse vídeo aí em cima mostrando como funcionam os recursos similares do Vim para esse tipo de coisa. Vale lembrar, como disse no post original:

  1. Eram 23:36, eu estava com sono e tive que fazer "colinha" do código ali e comi alguma bronha pois ...
  2. ... retirei TODOS os plugins e zerei meu .vimrc, deixando ele PELADO para fazer o vídeo. Algumas coisas como o autocomplete de chaves e parênteses sem funcionar deixam a gente perdido. Eram algumas poucas linhas para habilitar isso no arquivo de configuração, antes que falem alguma coisa.
  3. Eu estava rodando ele direto num terminal, para mostrar que mesmo em um terminalzão texto isso tudo funciona. Quebra um baita galho usando com SSH. No modo gráfico fica mais bonito, mas eu quis mostrar na lasqueira mesmo.
  4. Sem chance de ter som no vídeo, o Corinthians estava jogando e o mundo estava se acabando em fogos aqui. :-)
  5. Não, eu não programo em C#, só quis fazer o exemplo ficar igual. ;-)

Eu inseri algumas anotações durante o vídeo, mas dando uma resumida aqui:

  1. O segredo da coisa está na combinação de teclas CTRL+V. Acionando as danadas podemos fazer seleções em blocos.
  2. Depois de selecionar os readonly usando w para ir até no final da palavra e as setas (ou melhor, como anotei lá, usar 4j para descer direto), eu apaguei o bloco com x.
  3. Para fazer as inserções dos m_, eu selecionei o bloco e apertei I (insert), digitando o texto que queria inserir no restante do bloco (no caso, m_) e logo após apertei ESC, o que repetiu tudo o que eu fiz para o restante do bloco.
  4. Para trocar todos os public para readonly, eu selecionei o block e apertei c (change), digitando o texto que queria seguido por ESC.
  5. Para os comentários, selecionei o bloco no final da linha, apertei $A (importante notar o $ que indica o final da linha, e A de append), digitei o texto que queria (// Comment) e apertei ESC.
  6. Para inserir o código novo, digitei a primeira e a segunda linha, sendo que a segunda eu desconfio que saiu fora da indentação pois eu havia deixado a configuração zerada para o teste. Logo após repliquei a segunda linha com y (yank, para copiar) e 4p, o que colou ela 4 vezes. Em seguida marquei o bloco logo acima e copiei e colei com y e p no lugar determinado, retirando que não era necessário com dw (apagar palavra), movendo com w (palavra pra frente) e b (palavra pra trás).

Pronto! O resultado foi similar, lembrando que foi feito em um terminal texto, sem necessidade de modo gráfico, o que várias vezes é uma mão-na-roda e quebra um galhão (ainda mais acessando via SSH) e que temos esse recurso faz um bom tempo já. No modo gráfico fica até mais bonito, e com alguns plugins habilitados a edição fica rápida e matadora!

As combinações de teclas podem assustar em um primeiro momento, mas é como até foi mencionado, se você se acostuma com o editor, é uma coisa meio de reflexo e muito rápida. O Vim assusta em um primeiro contato, mas depois que gosta não fica sem. Vejam a saga do Aurélio com o Vim para ver o tamanho do abacaxi quando se começa a usar o negócio. :-)

Low Pro for Prototype and Firefox 3.5

by Dan Webb | 2 days ago | Read more

Just a quick note for those googling for a solution to this. Older versions of Low Pro for Protoype will be experiencing problems with behaviors in Firefox 3.5. This issue has been fixed so pick up the latest version from GitHub

An interesting upshot of this is that I found out something pretty nice which is kind of obvious but had never occurred to me before. If you create a function in a closure then that function can refer to itself because it has access to that closure’s variables. I normally use arguments.callee to get a reference to a function from within its body but there’s never really any need to do that:

(function() {
  var aFunction = function() {
    aFunction.thing = 47;
  };

  aFunction();

  alert(aFunction.thing); //=> 47;
})();

245186169_46c171be89_m_d Kaanapali Beach

by Marcel Molina Jr | 2 days ago | Read more

Kaanapali-beach

Kaanapali Beach

245186169_46c171be89_m_d Bathysphere by Smog

by Marcel Molina Jr | 2 days ago | Read more

Bathysphere

Smog

173637866_78e981fa58 Producitivity tip: Let Derek Sivers Take Notes for You

by Chad Fowler | 3 days ago | Read more

I just finished reading the inspiring The E-Myth Revisited, which like my own first book My Job Went to India suffers from an incredibly bad name.

This is definitely one of the most practically useful and potentially career-changing business books I’ve read. As I started getting toward the end, I realized that I should have been taking notes. The book is an excellent read, but at its core, it can be distilled into a clear outline of stuff to do after you read it. I was reading on my Kindle, which I’m still not good at using as a quick reference device. So, while I was excited about going back through the book and making myself a TODO list, I wasn’t sure how to best do it.

Then I remembered Derek Sivers’ book list. Derek has obviously spent a lot of time thoughtfully preparing a list of recommended books with reasons behind each recommendation. Not only that, he includes detailed notes on each book. I read his notes on E-Myth Revisited and was pleased to see that all of the important stuff is captured. Thanks Derek!

Speaking of Derek and books, don’t miss his book, How to Call Attention to Your Music. It might be titled for musicians but I think everyone will find something valuable inside.

245186169_46c171be89_m_d Falkirk Wheel

by Marcel Molina Jr | 3 days ago | Read more

Falkrik-wheel

Falkirk Wheel

245186169_46c171be89_m_d Discourage a class from bei...

by Marcel Molina Jr | 3 days ago | Read more

Discourage a class from being re-opened

<link href="/stylesheets/ruby.css?1191685535" rel="Stylesheet" type="text/css" media="screen" />
class Foo # implementation ... freeze end class Foo def adding_a_method # ... end end # => TypeError: can't modify frozen class

Curso on-line de Adobe Flex do básico ao avançado

by Carlos Eduardo G. Franco | 3 days ago | Read more

Pessoal, Já esta disponível para matrícula mais uma turma do curso on-line de Adobe Flex do básico ao avançado. Desta vez o curso será ministrado por ninguém menos que Mário Junior, acredito que muito de vocês já o conhecem, pois ele é um dos membros mais ativos na comunidade Flex brasileira e especialista na integração [...]

2152375175_17e802dba8_o New Rails Isolation Testing

by Yehuda Katz | 3 days ago | Read more

A little while ago, Carl and I starting digging into Rails’ initializer. We already made a number of improvements, such as adding the ability to add a new initializer at any step in the process, and to make it possible to have multiple initializers in a single process. The second improvement is the first step [...]

Satish2 Interview: Author Paolo Perrotta

by Satish Talim | 3 days ago | Read more

The trial batch of our new course “Ruby Metaprogramming” started recently. On this occasion, RubyLearning caught up with author Paolo Perrotta (who is writing the book “Metaprogramming Ruby“) and chatted with him. Satish>> Paolo, could you tell us something about yourself – your background, where you are based? Paolo>> I’m an Italian developer entering his 40s. I [...]

Brando2 Todos os métodos devem ser públicos? Definitivamente não!

by Carlos Brando | 3 days ago | Read more

Recentemente fiz a seguinte pergunta no Twitter: As respostas que recebi apenas confirmaram o que eu já imaginava. Eu também não tenho o hábito de testar métodos privados, pelos mesmos motivos citados acima. O motivo da pesquisa é que recentemente eu estava lendo um artigo onde o programador argumentava que somente devemos criar métodos privados ou protegidos [...]

2152375175_17e802dba8_o Merb Vulnerability Fix (1.0.12)

by Yehuda Katz | 4 days ago | Read more

Over the weekend, it was discovered that the json_pure gem is subject to a DoS attack when parsing specially formed JSON objects. This vulnerability does not affect the json gem, which uses a C extension, or ActiveSupport::JSON, which is used in Rails. By default, Merb uses the json gem, which is not vulnerable, but falls back [...]

Ainda dá tempo

by Carlos Eduardo G. Franco | 4 days ago | Read more

Pessoal, ainda dá tempo para garantir uma vaga no curso on-line de imersão Adobe Flex ministrado por Beck Novaes. Só para vocês terem uma idéia veja o que vocês irão perder se ficarem de fora desta.

245186169_46c171be89_m_d Cat Ladies

by Marcel Molina Jr | 4 days ago | Read more

Cat Ladies

245186169_46c171be89_m_d arctophile: A person who co...

by Marcel Molina Jr | 4 days ago | Read more

arc•to•phile
[ahrk-tuh-fahyl]noun
A person who collects or is very fond of teddy bears.

245186169_46c171be89_m_d David Foster Wallace

by Marcel Molina Jr | 4 days ago | Read more

Wallace

David Foster Wallace

245186169_46c171be89_m_d Airwalker by Jeremy Jay

by Marcel Molina Jr | 4 days ago | Read more

Airwalker

Jeremy Jay

245186169_46c171be89_m_d Three Frames from Vernon, F...

by Marcel Molina Jr | 4 days ago | Read more

Vernon_florida

Three Frames from Vernon, Florida

245186169_46c171be89_m_d The proper study of Mankind...

by Marcel Molina Jr | 4 days ago | Read more

The proper study of Mankind is Man.

Alexander Pope

245186169_46c171be89_m_d Chopin – Nocturne, op...

by Marcel Molina Jr | 4 days ago | Read more

Chopin – Nocturne, opus 27 #2, with intervals visualized

2394137488_934c80d382_m Refer us a client for fun and profit

by Dr Nic Williams | 5 days ago | Read more

There’s only so many hours in the day and only so many technologies people can be awesome at. So sometimes there are projects that developers can’t do themselves. Either the scope is too big, the timeframe to urgent, or it falls outside their areas of expertise. Or you’ve already got yourself a sexy job and [...] Related posts:
  1. Easy scheduling by location, tasks and people – a case study of a client application from Mocra UPDATE: Orchestrate was reported in TechCrunch Several years ago...

2152375175_17e802dba8_o Guest Blogging

by Yehuda Katz | 5 days ago | Read more

I’ll occasionally be posting on the Engine Yard blog in addition to my posts here. Union Station has really stepped up lately in terms of technical content. We’ve had posts on pairing, TDD with Cucumber, Rack and a slew of other things, and I know there’s more in the pipe. I posted today on how we’ve [...]


Tell us what you think of the new BlogSphere feature. We are continually looking to improve and update the functionality based on your feedback.

Job Board

Job Boards
Find your next Ruby on Rails project or job.
Exclusive content, regularly updated - onsite and tele-working positions listed.

View the opportunities

Latest from the Weblog

Recent Recommendation

Alberto Braschi:

Great guy

- Sbubble L.".H, Brazil