April 17, 2004

Bulk view

Publishing absolute URLs in RSS feeds

- ../../notebook/emacs/emacs-wiki-config.el
- ../../notebook/emacs/planner-config.el

(defvar sacha/emacs-wiki-use-absolute-url-flag nil
  "Non-nil means publish absolute URLs.")

(defadvice planner-rss-add-note (around sacha/absolute-urls activate)
  "Publish absolute URLs."
  (let ((sacha/emacs-wiki-use-absolute-url-flag t))
    ad-do-it))

(require 'w3m)
(defadvice emacs-wiki-markup-link (around sacha activate)
  "Resolve the matched wiki-link into its ultimate  form.
Images used the  tag."
  ;; avoid marking up urls that appear to be inside existing HTML
  (when (and (not (eq (char-after (point)) ?\"))
             (not (eq (char-after (point)) ?\>)))
    (let* (string
           (wiki-link (match-string 0))
           (url (emacs-wiki-link-url wiki-link))
           (name (emacs-wiki-escape-html-string
                  (emacs-wiki-wiki-visible-name wiki-link))))
      (when url
        (unless (emacs-wiki-wiki-url-p url)
          (setq url
                (file-relative-name
                 url
                 (if (string-match "public_html" url)
                     "../../public_html/notebook/plans"
                   "../../notebook/plans")))
          (when sacha/emacs-wiki-use-absolute-url-flag
            (setq url
                  (w3m-expand-url
                   url
                   "http://sacha.free.net.ph/notebook/wiki")))))
      (setq string
            (if (null url)
                (if (and emacs-wiki-serving-p
                         (emacs-wiki-editable-p
                          (emacs-wiki-wiki-base wiki-link)))
                    (format
                     "%s"
                     (emacs-wiki-wiki-base wiki-link) name)
                  (format "%s"
                          emacs-wiki-maintainer name))
              (if (save-match-data
                    (string-match emacs-wiki-image-regexp url))
                  (if (string-equal url name)
                      (format "" url)
                    (format "\"%s\"" url name))
                (if (save-match-data
                      (string-match emacs-wiki-image-regexp name))
                    (format "" url name)
                  (format "%s" url name)))))
      (add-text-properties 0 (1- (length string))
                           '(rear-nonsticky (read-only) read-only
                                            t) string)
      (setq ad-return-value string))))

William Yu’s draft presentation on FOSS in the curriculum

http://cng.ateneo.net/cng/wyu/works/drafts/sfd2004-foss-in-cscurricula-html/

E-Mail from William Yu

Gnus frontend for Dashboard

Hans de Graaff wrote Lisp code to make Gnus send clue packets to
Dashboard. Fascinating… I should try that for planner after I get
dashboard up and running!

E-Mail from Hans de Graaff

Alternating rows

li:nth-child(5n+3) {font-weight: bold}

Socializing

Kathy picked me up from YMCA and said she was doing me a favor by
taking me out. I didn’t have much of a choice, so I went with her.
From YMCA Makati, we went to San Juan to drop off a box of brownies
and a pack of tissue for one of her friends who recently suffered a
devastating breakup. Tons of traffic along the way. Got really hungry
and had drive-thru. Hacked on the scheduler along the way.

Their gimmick was at Havana, which isn’t really my kind of place. I
didn’t really feel like mingling with all the other people around,
though, so I decided to wait for my sister at Hobbes. Figured I could
occupy myself by working on the scheduler and on the puzzles. Ordered
a small chocolate mousse to cheer myself up.

Fortunately, Dominique was in the area, so he came and rescued me. Had
fun chatting with him, didn’t notice time pass. Kathy and her friends
passed by to pick us up and continue the party at home. More
conversation. Learned much.

Sleepy. =)

Aikido

I’m beginning to enjoy aikido. The moves are just so… graceful. They
remind me of ballroom dancing, strangely. I think I’m in, at least for
the next few sessions. Decided to get a gi. Must practice those
forward and backward rolls, though.