May 17th 2026 - Things I Worked On

Added tracking food

I wanted to start tracking the foods I ate and maybe make some notes about the experience so I created a food.org file and add it to my org capture templates.

("f" "Food Tracker" entry (file+datetree "~/org/food.org")
 "* %U %^{Food}"
 :after-finalize (lambda () (unless org-note-abort (my/backup-food-file))))

Added showing food.org data in an org table

I then wanted to display the food data as a table.

(defun my/food-show-as-table ()
  "Convert the food.org file into an org table."
  (interactive)
  (let (rows)
    ;; Loop through all headlines in the file
    (with-current-buffer (find-file-noselect "~/org/food.org")
      (org-map-entries
       (lambda ()
         (let ((level (org-current-level))
               (headline (org-get-heading t t t t)))
           ;; Look only at level 4 headings (the actual food items)
           (when (= level 4)
             ;; Regex magic to group each part of the entry
             (string-match "\\[\\([^ ]+\\) [^ ]+ \\([^]]+\\)\\] \\(.*\\)" headline)
             (push (list (match-string 1 headline)
                         (match-string 2 headline)
                         (match-string 3 headline))
                   rows))))))

    ;; Open a new buffer and insert the formatted Org table
    (switch-to-buffer (generate-new-buffer "*Food Table*"))
    (org-mode)
    (insert "|---\n")
    (insert "| Date | Time | Food Item |\n")
    (insert "|---\n")
    (dolist (row (reverse rows))
      (insert (format "| %s | %s | %s |\n" (nth 0 row) (nth 1 row) (nth 2 row))))
    (insert "|---\n")
    (org-table-align)))
Date Time Food Item
2026-05-17 19:07 Banana
2026-05-17 19:07 Mango

Created dark theme for sudoku.com

I play sudoku sometimes. I especially love Killer Sudoku which I play on sudoku.com. But the site is quite bright and I'm a vampire (not really… maybe) and I need dark mode everywhere. So I created a chrome extension that applies a dark theme to sudoku.com. You can find it here.