|
journal
all | Rob is 20,357 days old today. |
|
Entries this day: great-fun-with-bruno-et.-al. how-do-i-insert-images-easily still-working-on-3d-maze thanks-to-travis-for-refactoring-the-code great fun with bruno et. al. ##23:51 Saturday 01 November 2014 JST## Mutsumi invited Lin and I to eat with her and hubby and nephew and friends Bruno and Sachiko at a Taiwanese restaurant near their house. I was enthralled as Lin spoke Mandarin with the proprietor for a bit. So cool! I was inspired to learn Japanese a bit more than before. ブルノさんが9か月勉強してる、ペラペラできた。すごい! permalinkhow do i insert images easily ##13:40 Saturday 01 November 2014 JST## I've installed Prelude Emacs, hoping that it will support my desire to easily embed images in my journal entries. To insert an image, I need to insert soemthing like this:
The idea is that I type some keys, in this case Based on hakyll.el, I got the first part sorted: (defun hakyll-insert-image (alt-text)
"Insert an image from /images/yyyy/mm to current buffer /posts/yyyy/mm/dd/....md"
(interactive "sAltText: ")
(let ((current-buffer-filename (buffer-file-name)))
(insert
(format ""
alt-text
current-buffer-filename
))
)
)
So instead of inserting the current buffer filename, I want to parse the current buffer filename for I made a Trello list of things I want to do on this journal permalinkstill working on 3d maze ##17:01 Saturday 01 November 2014 JST## I spent a few hours working on the 3D maze I started about a week ago. There must be a faster way, but I don't know how exactly. Basically for each part of the maze that goes over another part, I make that section its own layer so it can be "above" the lower layers. Then for each part that goes under another party, I make that its own section so it can be "below" the upper layers. But then, to paint a gradient on the lower sections, I have to split them apart again because I don't know how to make Gimp do a "double" gradient. I don't even know what it's called (as I haven't tried to look it up). I might remember to see if Gimp can do it before I finish this maze. Here it is so far: permalinkthanks to travis for refactoring the code ##02:12 Sunday 02 November 2014 JST## Got an email from Travis today indicating that he refactored my Hakyll installation. Whoohoo!! The refactorization he's done so far is visible here. The biggest changes (in terms of me not understanding them well) are in one file. https://github.com/TravisCardwell/hakyll-journal/commit/05416e71fbbf0f910bcc19717ee88d7ae810c9bd. I'm going to put all his changes into the 'master' branch, merge them into my recently created 'rob' branch, then replace my personalized content in master with some generic stuff so it's easier for people to use this repo for their own Hakyll installations. permalink |