“The Thing with Tofu”

We had a thing with tofu for dinner tonight! It involved…
1 package of firm tofu, 1 capsicum, 1 red onion, 6 button mushrooms, a small handful of sugar snap peas, most of a bunch of silverbeet, and teriyaki sauce (Equal parts mirin, soy sauce and brown sugar).

The tofu was sliced, wrapped in paper towels, and squished for about 40 minutes. Then diced and marinated in the teriyaki sauce until the rest of the veges were prepped.
The capsicum, onion and mushrooms were sliced thinly; and the sugar snap peas and the silverbeet were chopped a little more chunky.
I heated a wide pan with a coating of peanut oil; and browned off the tofu. Next, the capsicum and onion were added until mostly done. At this point, the remaining teriyaki sauce was added to the pan. Next, add the mushrooms and sugar snap peas; and when those are almost done, add the silverbeet and continue cooking until just wilted.

And that’s it (:

Ultimate Tag Warrior 2.7.7

Whee. ‘Nother release!

  • I fixed the bug with related tags
  • I’ve added a new template tag, UTW_AddTagToCurrentPost($format=””) that renders a textbox for adding a tag to the current post (it needs to go inside the wordpress loop; If a named format is specfied, the contents of the page element with the id “tags-{post id}” will be replaced with the list of tags for the post, in the format specified)
  • I’ve added a few more bits for formatting
    • In custom formatting strings, %intersectionicon% draws a cute little icon, and links to the current tag(s) and the tag being rendered. (This only makes sense for tags that are displayed on a tag page rather than the index or single pages)*
    • %icons% will render a set of icons (currently Technorati, Flickr, Del.icio.us, Wikipedia, RSS, intersection).
    • For named formats, “iconlist” renders a link to the tag followed by the set of icons
    • “htmllisticons” renders <li> tags, containing the icons followed by a link to the tag
    • “commalisticons” renders a link to the tag followed by the set of icons with a comma between tags

download here | get started here

* Adding the url as a custom formatting option seems so obvious now.. I’ll add one for the next release.

Green Thai Fish Curry

But first, what we had for dinner!

It was just a simple ol’ green Thai fish curry with rice. It was made as follows (serves 2): Put three handfuls of rice into a medium pot. Cover by a finger-joint depth of hot tap water. Put on the stove on high.
Take a wide frypan, and add about a teaspoon of peanut oil. Put on medium-high heat. Once it has warmed up; add a heaped teaspoon of green curry paste. Stir it around to distribute.
Chop up two smallish fillets of fish (Terakihi in our case) into biggish chunks, and add to the curry paste. Once the fish has browned off a little, add a small can of coconut cream; and simmer gently until the rice finishes cooking, adding additional water if required. Pile rice into bowls, and top off with curry.

Mmm. Yummy and delicious!

Latest iStockphoto Images Plugin

Quick Overview
This is a quick-and-dirty plugin that will grab images from iStockphoto “recently approved” feeds, and put them on the page.

Installation
1. Copy this file to /wp-content/plugins/latestistockimages.php in your wordpress folder.
2. Go to the plugins page in the admin system. Click the “Activate” link for this plugin.
3. In your theme, include a call to one (or both!) of the template tags.

Template Tags
There are two functions available for including in templates.
<?php all_latest_istock_images(maximages) ?>
If maximages is left blank, then all of the images from the feed will be included.

<?php my_latest_istock_images(userid, maximages) ?>
The userid is the numerical user id of the feed to retrieve (In the Control Panel on the iStockphoto site, if you look at the URL given for your RSS feed; this is the number at the end. There is probably an easier way of finding the id, but I’m not sure what it is.)
If maximages is left blank, then all of the images from the feed will be included.

Examples
<?php all_latest_istock_images() ?> displays all of the images (currently 10) from the RSS feed of all recently approved images.

<?php all_latest_istock_images(3) ?> displays the three most recently approved images from the RSS feed of all recently approved images.

<?php my_latest_istock_images("183642") ?> displays all of the images (currently 10) from the RSS feed of my recently approved images (Remember to replace my ID with your ID to display your images instead)

<?php my_latest_istock_images("183642", 3) ?> displays the three most recently approved images from the RSS feed of my recently approved images (Remember to replace my ID with your ID to display your images instead)

The Output…


Baldy-headed lady, with a crazy look in her eye.

Shot on a dark-blue background, which has a bit of a texture.


A cluster of orange seaweed found on a beach.


A rockpool, full of algae. This is on the coast near the red rocks in Wellington

Lastly..
If you have any questions, leave a comment here and I’ll see how I can help (:
Oh yeah! My iStockphoto portfolio lives here: http://www.istockphoto.com/file_search.php?action=file&userID=183642. Go buy a million photos, so that one day I might make it to the threshold where I can cash out (;