WordPress Plugin: Useless Stats

By Shamus Posted Tuesday Jun 6, 2006

Filed under: Programming 25 comments

Useless Stats is a simple wordpress plugin that collects a bunch of general trivia about posting frequency and comment frequency. The current version is 1.21, which can be downloaded here. Just extract the file from the zip and place it into your /wp-content/plugins/ folder. Then just go to the plugins admin page and enable the plugin. All done. Enjoy.

Once Useless Stats is installed, a small summary of comment and posting data is displayed on the dashboard:

Useless Stats WordPress plugin by Shamus Young

A more detailed collection of data can be found under the management tab in WordPress admin. This data provides charts that will show the number of comments per post by category and by day. It will show the breakdown of posting by day-of-week and by month, along with other data. An example of these charts can be seen here.

Finally, the plugin offers some HTML that you can cut & paste into your blog posts (or wherever else you like) so that you can show your data to others.

This plugin has not been tested with versions of WordPress before 2.0, and it is not known if it will work or not.

Suggestions or feedback welcome.

 


 

Howl’s Moving Castle – Screencaps

By Shamus Posted Tuesday Jun 6, 2006

Filed under: Anime 9 comments

The consensus on Howl’s Moving Castle seems to be that it is a very pretty disaster, particularly in light of what the movie could have been. So what we end up with are stunning visuals that tell an incomprehensible tale. Let’s have a look at some of those visuals:

The opening of the movie starts with a view of the clouds and then pans down to the city below. I took several screencaps from this process and made this composite image. Click for gigantic view.

Howl's Moving Castle - Opening

More images below the fold…
Continue reading ⟩⟩ “Howl’s Moving Castle – Screencaps”

 


 

Healing Coma

By Shamus Posted Monday Jun 5, 2006

Filed under: Personal 4 comments

On Sunday I decided to skip coffee. I drink a lot, so the effects of doing this were quite strong.

I mentioned my broken ribs last week. Sadly, there is very little doctors can do for broken ribs aside from dispensing narcotic painkillers like they were halloween candy. I’m in the middle of a large coding project at work, so being in a stupor isn’t really an option. I have to suck it up and make do with Tylenol and pitiful, little-girl whining noises. After about a week, the pain hadn’t subsided at all.

What was great about Sunday is that I didn’t go through the typical coffee withdrawl symptoms. I didn’t get a big headache or anything, I just slept. I would guess that in the stretch from Saturday night to Monday morning, I was probably awake for about 12 out of 36 hours. That’s a lot of sleep. Every few hours I would wake up, drink some water, check on the site here, and go back to bed.

The results were wonderful. The sleeping binge let me hold still and do some real healing. I’m suddenly a little more mobile and in a lot less pain. The best part is, it happened without the aid of medicine. All I had to do was not drink coffee. Nice.

Thanks again for the well-wishes everyone sent in. Looks like I’m on the mend.

 


 

Howl’s Moving Castle

By Shamus Posted Monday Jun 5, 2006

Filed under: Anime 28 comments

Howl’s Moving Castle is yet another Miyazaki Hayao film. Strangely enough, it’s an adaptation of a novel by Dianna Wynne Jones. Despite the fact that someone else wrote the story, it has all the elements of a Miyazaki film. Just to illustrate this, let’s run through Steven’s list of Miyazaki themes and see if they show up in this movie…

1. A fascination with flying machines of all kinds. If at all possible, they should be nonstandard and based on has-been or never-was technologies. […]

This movie may have the most absurd Miyazaki flying machines so far. Not only are they huge flying air fortresses, but they fly using flapping wings. However, this world also has magic, so the impossible flying machines could be excused by the use of magic.

2. A general distaste approaching outright hatred of anyone wearing military uniforms. […] Virtually everyone in uniform is either a mindless automaton who blindly follows orders, or a rank idiot hell-bent on causing death and destruction just because.

This movie has both.

3. A preference for girls as protagonists.

Check.

4. A tendency to portray old people sympathetically even though they may have faces made ugly by time. […]

Check again. In fact, this time the protagonist is a very ugly old person. Sort of. Sometimes.

5. A bit of a tendency to preach. Most of his movies have a message of some kind. Sometimes it’s delivered with a heavy hand.

This movie isn’t as heavy as some, but it does continue his familiar themes: War is bad, and people who fight in wars are mostly idiots. He’s been singing this particular song for years. He does it well, but I think Miyazaki fans can be forgiven for wondering if he knows any other tunes.

Amazing that a story by another author fits the Miyazaki formula so perfectly. Either he greatly changed the original story to suit his purposes, or Miyazaki Hayao and Dianna Wynne Jones have very similar writing styles and ideas.

About halfway into the movie I was thinking, “This is great! This is my favorite Miyazaki movie so far.” The visuals are great, but not overdone as they were in Steamboy. The world is vibrant and full of detail. The characters are great (and not repulsive, as in the aforementioned Steamboy). The bad guys are bad, but nobody is pure cardboard-cutout evil. The main character is compelling.

It starts with Sophie:

Howl's Moving Castle - Young Sophie

Continue reading ⟩⟩ “Howl’s Moving Castle”

 


 

Slashdot Makeover

By Shamus Posted Sunday Jun 4, 2006

Filed under: Nerd Culture 6 comments

This is really something. For this first time since I started reading it back in 1999 or so, slashdot has changed the look of the site.

This was really disorienting. It’s like seeing another face on Mt. Rushmore. There are some things that you just don’t expect to change.

 


 

My Neighbor Totoro

By Shamus Posted Sunday Jun 4, 2006

Filed under: Anime 20 comments

My Neighbor Totoro is another Miyazaki masterpiece. Fledgling Otaku thought highly of it, and his daughter went nuts for it. Alex praised it as well.

My kids have watched this movie many, many times (although not as many as mini-otaku, I suspect) but I’ve only gotten around to watching it recently. I’ve seen little bits here and there as I passed through the room while they were watching, and I’d always tried to discern that it was about. Now I can see that this was a waste of time. Totoro is less about plot and more about many small, delicious moments.

The movie had quite an effect on me. The children in this story are unlike most anime kids. In fact, they are unlike most animated kids in general. They speak, move, think, and act like real children.

Here Tatsuo and her younger sister Mei are riding in the back of a truck. They are moving to a new home, and all of their belongings are stacked up around and over them, forming a little alcove for the two of them.

When I was a kid, there was no such thing as seatbelt laws. In the winter my brother and I used to huddle together in the passenger-side footspace, where we could be close to the warm air vent. I hadn’t thought about that in years, but this moment brought back that memory.

Children love to seek out little spaces to occupy. They seem drawn to crawlspaces. I’m not sure when we grow out of this, but at some point our “stay in the foxhole” instincts leave us and as adults most people find enclosed spaces irritating, not cozy.

Walking around on your knees! I remember doing this. As a kid it was amusing, but my knees hurt just thinking about trying it at my age. Ow. Ow. Ow.

And of course, when kids are in open spaces they must run. They can’t help it.

At one point Tatsuo notices a huge towering tree and asks her father about it. He informs the girls that it’s a camphor tree. Then the girls yell, “Camphor! Camphor!”, as they enjoy the new word. These little moments and details bring the children to life in a powerful way. I’ve never seen animated children this authentic.

From a clinical standpoint, this movie is nothing remarkable. The story is thin and the visuals – while charming – aren’t really anything groundbreaking. They certainly aren’t up to the standards of other Miyazaki films. But as a collection of slice-of-life moments and a study in the wonder of being a child, My Neighbor Totoro is in a class of its own. Highly recommended.

 


 

Random quotes in wordpress

By Shamus Posted Saturday Jun 3, 2006

Filed under: Programming 16 comments

For ubu roi and anyone else who is interested in a few of the tricks used on this site, here are a few bits of code that might help you out. Sadly, you can’t really do this stuff as plugins, which means you have to edit the code yourself. This will either be very easy or a little confusing, depending on how comfortable you are with PHP. Also, this code is only going to be useful if you’re using wordpress.

First, the random quote. Create a quotes file named “quotes.txt” and put it in the /wp-content filder. The file should have three lines for every quote: The first is the quote itself, the second is the person being quoted (leave blank if you dan’t want this) and the third is a required blank line. Mine looks like this. Now, somewhere in the PHP code for your site (I suggest at the top of the header.php) place this code:


<?php 
/*----------------------------------------------------------------------------- 
Pull out a random quote from the quote file and display it. 
-----------------------------------------------------------------------------*/ 
function random_phrase () 
{ 
$quotes = file ("wp-content/quotes.txt");
$num = rand (0, intval (count ($quotes) / 3)) * 3;
echo $quotes[$num] . "<br>" . $quotes[$num + 1];
}
?>

Almost done. Now just put this little bit of code where you want the quote to appear:

<?php random_phrase (); ?>