NEW: For a prettier blog interface, see the Wordpress version!

Headlines for Thursday:


    Priorities - A: high, B: medium, C: low; Status - _: unfinished, X: finished, C: cancelled, P: pending, o: in progress, >: delegated. Covey quadrants - Q1 & Q3: urgent, Q1 & Q2: important
    AX@1100 Meet Greg Wilson at Bahen for coffee
    AC@1300 Cook lunch
    AX@1830 Enterprise 2.0 Camp, Rowers Pub
    AXHave supper with Deborah Hartmann
    AXFile lost receipt form : E-Mail from Teresa Lai
    AXFigure out what I'm going to say for Enterprise 2.0
    AXPick up my camera from No Regrets 416 535 0050
    AXSign up for Enterprise 2.0 talk
    BXCome up with article calendar : E-Mail from Don Marti
    BXReply : E-Mail from Dan Howard
    BXSign up for open source in education project : E-Mail from Don Marti
    BXConfirm LW writing thing : E-Mail from Don Marti
    BXCheck if Mathew Ingram is coming to Enterprise 2.0 Camp : E-Mail from [email protected]
    BCGet someone to take a picture of me skateboarding in a full skirt


1. Emacs BBDB magic: Greeting people with nicknames: 13:06

I use Gnus to read my mail within the Emacs text editor. One of the advantages of using a mail client that's infinitely programmable is that you can add all sorts of little tweaks to it. Gnus can be integrated with Emacs' Big Brother Database (BBDB), a semi-structured text database in which I store all sorts of weird notes. This little hack takes the nick field of the database and automatically inserts a greeting. If someone signs himself as Mikong, I should call him that instead of Joseph Michael. Similarly, I sign my messages as Sacha, not Sandra Jean. This little tidbit makes it easier to remember to call people by their nicknames.

(defun sacha/gnus-add-nick-to-message ()
  "Inserts \"Hello, NICK!\" in messages based on the recipient's nick field."
    (let ((bbdb-get-addresses-headers (list (assoc 'recipients bbdb-get-addresses-headers)))
      (setq nicks
            (delq nil
                  (mapcar (lambda (rec) (bbdb-record-getprop rec 'nick))
                           (bbdb-get-addresses nil gnus-ignored-from-addresses 'gnus-fetch-field)
      (goto-char (point-min))
      (when (and nicks
                 (re-search-forward "--text follows this line--" nil t))
        (forward-line 1)
        (insert "Hello, "
                (mapconcat 'identity nicks ", ")

(defadvice gnus-post-news (after sacha activate)

On Technorati: , , ,

Random Japanese sentence: 虎を大きな猫というなら、同じように猫を小さな虎といってもよい。 You may as well call a cat a small tiger as call a tiger a big cat.

2. Pimp My Emacs: 17:06

Along the lines of TV shows like Pimp My Ride, I'm thinking of regularly blogging something along the lines of Pimp My Emacs. For those readers who haven't had to listen to me bubble for hours on end about this text editor / way of life, Emacs is ostensibly a program that you use to edit text files. Right. But because it's insanely programmable, there are all sorts of interesting things for it, like more than five ways to read one's e-mail.

Watch for it on Technorati with emacs or pimpmyemacs, or subscribe to . =)

On Technorati: ,

E-mail sent

  1. Mathew Ingram: Re: BarCamp / Enterprise20Toronto, tonight, 6:30, Rowers Pub on Harbord
  2. Michael Randall: Re: sachawiki: 2006.07.03
  3. Gabriel Mansour: Re: sachawiki: 2006.07.04
  4. Don Marti: Re: new project on emerging economies
  5. Don Marti: Re: LinuxWorld
  6. Dan Howard: Re: Your SMS's last night
  7. alice servera: Re: Kamea's party Sat July 29 6pm chez Alice and Mike
  8. Ari Caylakyan: Re: August 1 - open for speech module?
  9. Chelsea Taylor: Re: Dream in High Park
  10. vinzer x.: Re: sachawiki: About Me
  11. Michael Randall: Re: sachawiki: 2006.07.03
  12. phawk: Re: sachawiki: 2006.06.28
  13. Tom: Re: sachawiki: 2006.06.28
  14. Jay Goldman: Re: sachawiki: 2006.07.04
  15. Gabriel Mansour: Re: sachawiki: 2006.07.04
Previous day | Next day

I'd love to hear about any questions, comments, suggestions or links that you might have. Your comments will not be posted on this website immediately, but will be e-mailed to me first. You can use this form to get in touch with me, or e-mail me at [email protected] .

Page: 2006.07.20
Updated: 2006-07-2101:47:2401:47:24-0400
NOTE: ANTI-SPAM MEASURE NOW IN PLACE. Please answer the following question with the right number in order to send me your comment.
What is two minus one? (hint: one ;) )