Headlines for Friday:

  1. Getting sound to work again (41 words)
  2. Emacs: Changing the font size on the fly (75 words)
  3. Emacs clinic at the Linux Caffe (336 words)
  4. Domain name (52 words)

Work on research



1. Getting sound to work again: 01:20

Things to remember when setting up sound in Ubuntu Linux on a Sony Vaio U1:

  • modprobe trident
  • modprobe snd_trident
  • Be very very thorough with alsamixer settings. For some brain-dead reason, all the important stuff is muted.

On Technorati: , ,

2. Emacs: Changing the font size on the fly: 09:14

I have a tiny laptop: 8.9" diagonally. With a 1024x768 pixels screen resolution, things can get *pretty* small. The following functions use the gnome-terminal-style shortcuts (Ctrl-plus, Ctrl-minus) to change the font size without the mouse:

(defun sacha/increase-font-size ()
  (set-face-attribute 'default
                      (ceiling (* 1.10
                                  (face-attribute 'default :height)))))
(defun sacha/decrease-font-size ()
  (set-face-attribute 'default
                      (floor (* 0.9
                                  (face-attribute 'default :height)))))
(global-set-key (kbd "C-+") 'sacha/increase-font-size)
(global-set-key (kbd "C--") 'sacha/decrease-font-size)

On Technorati: ,

3. Emacs clinic at the Linux Caffe: 20:35

Quinn Fung needed some help with Muse and RDF so that she could easily generate RSS feeds from Emacs, so we declared today to be Emacs Clinic day at the Linux Caffe.

We started by getting publishing to work. We then figured out how to get RDF to publish, and that was pretty okay too.

Quinn needed multiple authors, and muse-journal didn't support it yet, so we hacked it in. I told her to pick a syntax, and I added code to make it happen. It took us a while to track things down, but it turned out to be a reasonably easy addition. (I need to refactor that code sometime... that's a really long function!)

Along the way, we found a bug in muse-journal. Muse-journal summarizes entries by taking the first two sentences, but dies when the post doesn't contain at least two periods. I spent a fair bit of time tracing through the different changes we made before realizing that it wasn't my bug. I probably would've found it earlier, but debug-on-error wasn't getting honored. Odd. Anyway, here's the patch, which I'll submit to GNA when I get back into the swing of things:

--- orig/lisp/muse-journal.el
+++ mod/lisp/muse-journal.el
@@ -570,7 +570,9 @@
           (let ((beg (point)))
             (if (muse-style-element :summarize)
-                  (forward-sentence 2)
+                  (condition-case err
+                      (forward-sentence 2)
+                    (error (goto-char (point-min))))
                   (setq desc (concat (buffer-substring beg (point)) "...")))
                 (muse-publish-markup-buffer "rss-entry" "html")

Now Quinn's jumping feet-first into Lisp development by doing the Atom implementation. muse-atom does single-entry Atom files, but she can model it on muse-journal's RSS implementation.

I also helped Ian set up a very very basic Planner. It reminded me that I *really* need to package planner-bundle again, and either retire or update plannerlove. In fact, I need to set up scripts so that it's ridiculously easy to keep up to date...

I miss hacking on Emacs! This is fun. I'll reconfigure my kernel and get VPN working. Then I'll set up my Emacs development environment again...

On Technorati: ,

4. Domain name: 22:02

At some point in time, I think I should go for figuring out how to do my mail properly so that I can have sacha@sachachua.com on my outgoing mail. Jijo currently generously hosts my mail, but I should look into properly paying for it like the rest of the civilized world. <laugh>

E-mail sent

  1. E-mail to Jason Banico
  2. E-mail to Roger Yang
  3. E-mail to Michael Chan
  4. E-mail to Alex Sirota
  5. E-mail to Sy Ali
  6. E-mail to Jeffrey C. Berg
  7. E-mail to Ethan Perry
  8. E-mail to Andrew Clement
  9. E-mail to Jennifer Nolan
  10. E-mail to Sy Ali
  11. E-mail to Roger Yang
  12. E-mail to Shawn Pucknell
  13. E-mail to Syed Dilawar
  14. E-mail to Andrew Hessel
  15. E-mail to Andrew Cieszkowski
  16. E-mail to Carole St. Laurent, Gabriel Mansour
  17. E-mail to Carole St. Laurent
  18. E-mail to Himy Syed
  19. E-mail to Jamie McQuay
  20. E-mail to sacha
  21. E-mail to sacha
  22. E-mail to Joe Whitney
  23. E-mail to Jennifer Schachter
  24. E-mail to Joe Kim
  25. E-mail to Shiva Shahmohamed
  26. E-mail to Andrea Nagy
  27. E-mail to Joshua Meles
  28. E-mail to Greg Wilson
  29. E-mail to Xuan-Yen Van-Cao
  30. E-mail to Colin McGregor
  31. E-mail to Uma Chandran
  32. E-mail to Jason Banico
  33. E-mail to Alex Sirota
  34. E-mail to Sander A. Smith
  35. E-mail to Alan Hietala
  36. E-mail to Vincent Rallon
  37. E-mail to ILONA POSNER
  38. E-mail to Jane Zhang
  39. E-mail to Shengdong Zhao
  40. E-mail to Stephen Perelgut
  41. E-mail to Dan Howard
  42. E-mail to Roger Yang
  43. E-mail to Hugh Ranalli
  44. E-mail to Tarun Britto
  45. E-mail to Sambhavi Chandrashekar