More website changes

Thursday, January 6, 2005

test image 1
Here's an optional caption.

# Images shortcut and box code    I just can't leave Bill's code well enough alone. This code is pretty simple: Hit Control-Shift-I and you get a shortcut named "images". First argument is filename, second argument is alternate (text that pops up when the image is unloadable) and the third is a caption. This code requires supporting CSS. Also, I can't find a way to get it to work without wrapping each story in a table (though I didn't try very hard. I've also not bothered adding width and height attributes.

Here's the code:

(defun weblog-macro-images (&optional entry altern capt)
  (if (null entry)
      "<b>Site owner started to add an image, but then forgot. 
   Oops.</b>"
    (concat "<div id=\"images\"><img src=\"" entry "\"
     alt=\"" (or altern entry) "\" />"
     (if (null capt)
 "</div>"
        (concat "<br />" capt "</div>")))))

(defun weblog-insert-images ()
;    "Insert a bordered image with a caption within a border"
   (interactive)
   (insert "{images}")
   (backward-char))

(define-key weblog-mode-map "C-I" 'weblog-insert-images)

I'll think about doing some patches later, maybe.

# Some random rambling   

EDIT: potentially sensitive information removed

If you've ever visited this site before (which you probably haven't) you'll notice a slightly different look-and-feel. As I said in my last entry, I mostly just had to edit CSS. If nothing else would, that helped clue me in to the notion that CSS is good, m'kay?

The picture in the banner is a Photoshop creation based on a tutorial I found on Deviantart.net. Take a look here. The rock photo was taken at a local natural area known as Giant City State Park. I'm thinking of hitting the local state parks as soon as the weather improves, but hopefully before spring; this is the ideal time of year to get good photos of lichen-covered rock. The lichen-covered rock makes for ideal "Class-M" planet surfaces; lichen fills in for clouds nicely. I'm trying to figure out how best to do this in The GIMP.

# Lost in translation?    I just looked in the January digest and found this:

Thursday, 6 January: More website changes

Heh. It leaves something to be desired, doesn't it?


January 2005
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Dec  Feb

Home

kuro5hin

slashdot

gnome news

ubuntu linux

ubuntu forums

xml