bertelli.name

I miss the pixels

Things to do in Emacs 22: regexp

September 28th, 2008

Stevey’s Blog Rants: Shiny and New: Emacs 22

It’s just like a normal M-x {query-}replace-regexp, but you’ll prefix any lisp expressions in the replacement string with the sequence `\,’ (i.e., a backslash and a comma). In this case, we match the whole word, and invoke the Emacs-Lisp function `capitalize’ to capitalize the word we just matched:

M-x replace-regexp
Replace regexp: \(\w+\)
Replace regexp with: \,(capitalize \1)

Posted in Computers Tags: , , | No Comments »

Filme: O Procurado

September 15th, 2008 | English


Coisas que eu aprendi com este filme:

  • Cera de vela é um remédio curativo extremamente potente.
  • Se o coração de uma pessoa for acelerado a 400 batimentos por minuto, esta pessoa ficará mais rápida e ágil, ao invés de morrer de derrame.
  • Os tecelões medievais não só já conheciam código binário, como também já conheciam a tabela ASCII[*].
  • Nunca, nunca, NUNCA fique de pé sobre um ‘X’.

[*] se ainda fosse EBCDIC eu até entendia… ;-)

Posted in Personal Tags: , | No Comments »