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 »

Movie: Wanted

September 15th, 2008 | Português(br)


Things I’ve learned with this movie:

  • Candle wax is an extremely powerful curative medication.
  • If a person’s heart accelerates until 400 beats per minute, this person will become faster and nimbler, instead of dying of stroke.
  • The medieval weavers not only already knew binary code, but also already knew the ASCII table[*].
  • Never, EVER stand over the x spot.

[*] if it was EBCDIC I would understand… ;-)

Posted in Personal Tags: , | No Comments »