One more gallery trick
oh yeah, I forgot that I had also added another thing for gallery integration.
I found this neat hack which includes a php file that outputs javascript to display a link. I tweaked the script to look like this:
..
echo "document.write('<a href="" .
makeAlbumUrl($gallery->album->fields["name"]) . "">" .
$gallery->album->getThumbnailTag($gallery->album->getHighlight() ) .
"</a>');";
..
getThumbnailTag is cool because it its the complete <img> tag to display the particular thumbnail. It wouldn’t be hard to make that a random number to display a random thumbnail.
so now I can also say thumbnail=yes and it will display a thumbnail from the gallery specified by the gallery keyword.
Adding gallery support
For another secret website I’m making for a certain future trip, I needed a way to easily link to a photo gallery (created with the awesome Gallery Project software) in a blog post.
That was pretty easy. I just added
<MTKeyValues source="[MTEntryKeywords]"> <MTIfKeyExists key="gallery"> <div class="blog-entry-gallery"> <a href="/gallery/<$MTKeyValue key="gallery"$>">gallery</a> </div> </MTIfKeyExists> </MTKeyValues>
And now in my keywords field, I can just say “gallery=foo” and it will automatically add a link in the blog entry.
Creating a private category
Today I hacked on MovableType to accomplish two things:
- A private category that I could post without worrying that my stuff goes public
- Sane URLs instead of those annoying date fields
Almost done!
This semester is almost over. Whew.
My 22nd day
Wow, so much for documenting each day! I am once again going to try to get back in the habit of documenting all of this.
I’ve been in school for about 2 months now, and it continues to be a fantastic experience. Today I’ll give a quick summary of the classes I’m taking/have taken, with some of my impressions of them.
Read the rest of this entry »
My First Day
Today was my first day of school at SFSU, getting my teaching credential. In the spirit of documenting everything, I’m going to try to blog the entire process.
I think it will be particularly interesting to flush out my own feelings and perspectives on the process, to observe how my own views on teachers and teaching change, as I go through the year.
Read the rest of this entry »
Want to teach in California?
A few people have asked me about what exactly I’ve had to do to go into teaching. It is a very long, confusing process (and probably unnecessarily so) and having gone through it I thought other folks might be interested in my experience.
(updated on 8/29/2003!)
Read the rest of this entry »
Levellers
So tonight I went to the Levellers show at the Great American Music Hall. It turned out to be a fantastic concert! It was perhaps one of the most fun concerts I’ve been to in a while. They played about 40% music off the new albums (new since and including Mouth to Mouth) which wasn’t so good. But they did such a great job with the older songs, that it was hard not to love the whole show. I often spend concerts in contemplation as I listen to the music, but at this show I just jumped and danced around almost the whole time.
Read the rest of this entry »
Why to shop organic
In a recent discussion with my friend Ross, we discussed the idea of paying more for organic food. The discussion involved why one should pay more than you do for normal food. As we do sometimes, Ross was the sceptic and I played the part of the organic crunchy guy.
The problem breaks down into two problems really: Why should you buy organic, and then, seperately, why should you be willing to spend more money, sometimes signifigantly more.
First, I discuss my personal reasons why one should buy organic, and focus on health.
Read the rest of this entry »