Categories
Insects Just Shelley

One brief shining moment

Tonight I walked longer than I normally do and ended up going to my library at a later time. Driving back, the neighborhoods were getting dark and I could see the fireflies out and about in the bushes.

Just past the odd house with the stone fence, but before the miniature castle, one of the fireflies headed into my car from the front and I hit him. Normally hitting bugs is not something I worry about, unless it’s a butterfly or moth; but fireflies seem such gentle creatures, and provide so much enjoyment. I’ve always appreciated how they hover about you as you stand near them, as if they’re curious, but unafraid, of this big monstrosity.

Another block, and more fireflies appeared in front of me. I couldn’t avoid them; only catching a brief glimpse of their bright neon-green light before they’re smashed against the metal (well, plastic) of my car.

The next block and it seemed as if I had a stream of fireflies heading towards my car; I can only guess they were attracted, or confused by, the lights. Each bravely flickered its butt in one last exaltation of light before throwing itself in a frenzy of hopeful lust to a very quick, and very sure, death.

When I got home, I contemplated the orgasmic remains of the tiny, now dark creatures on my bumper and thought that all things being equal, it wasn’t a bad way to go.

Categories
Burningbird Technology Weblogging

Pithy bar

Sidebar quick links, or b-links are very popular now. I wasn’t that interested at first in them until I found myself wanting to point out items of interest, but without writing a great deal about the item. I don’t necessarily like doing little posts with nothing more than a link, so b-links really is a good alternative.

What especially sold me on the concept was Mark Pilgrim’s b-link implementation. I found his style to be non-obstrucive, but more, I really began to enjoy the little comments he would add as TITLE attribute with each link. We talk about the skill and effort it takes to write lengthy essays, but it takes an equal or greater skill to sum up your view or opinion in one pithy little statement.

A b-link compliment is a nice,elegant way of saying, “Look at what you’ve done”, rather than not saying anything at all. They’re also a great way of pointing out something that doesn’t need any additional words, for one reason or another; or of saying to another: I hear you. Additionally, I found that one can use a variety of tones, from snippy to snarky, in a this type of b-link and they don’t seem to come out as heavy as they would in a regular weblog posting. Rather than be deliberately and ponderously offensive, these types of little communications become more a caustic little jab, or even a joke between friends.

Perhaps this effect is just Mark’s way with pithy statements; or perhaps it’s the brevity of the statement and the nature of its delivery – it becomes more an aside whispered under one’s breath than shouted from the pulpit.

So, I decided I wanted b-links. Specifically, I decided with my weblog re-design that I want a Pithy Bar.

Now something like a pithy bar isn’t necessarily easy to do in any weblogging tool, WordPress or otherwise. They’re usually created as separate categories for sidebar linking; or a separate weblog and getting the entries from the database, or scraping the syndication feed for the links. These work well, but it was more than I wanted in my implementation.

I wanted to add a link and have it show–bang! That’s it. Clean and simple. So, time to break out the code.

I created a table called “linklog” and added it to my WordPress database. The table has the following fields:

id – autoincremented identifier
title – What shows with the link on the page
url – b-link URL
blurb – the aside that’s added to the TITLE attribute of the hypertext link
viaurl – If found through another site, a link to that site

All fields are type ‘text’ except for the id.

I next created a page called linklog.php, which I added to my wp-admin directory. This page has a simple form that checks to see that the values are provided when the form is submitted, and inserts a new row for each linklog entry into the database. It also displays the last five linklog items, just to make sure you don’t add the same one twice.

To have this page show up in my installation of WordPress, I added an item to menu.php to point to this page (highlighted):

$menu = array(
        array(__('Write'), 1, 'post.php'),
        array(__('Edit'), 1, 'edit.php'),
        array(__('Profile'), 0, 'profile.php'),
        ....
 array(__(’Linklog’),0,’linklog.php’)
);

Finally, I created a WordPress plugin that has a function, my_linklog, that takes the number of links to display, and a special separator string that can be used between the items. The following is how I call the function in my main page:

<?php
my_linklog(10, ‘–. — — –. .-.. . / -.. ..- … -’);
?>

By default, the number of items showing is 5, and the separator string is empty (‘’).

Each item that is displayed is wrapped in a DIV element, with a class name of ’sidecomments’. With this, an individual can then add whatever CSS they want to the display of each item. Once I added my CSS, and added the function call to my sidebar, underneath my comments in the main page, I was done.

A modification to this would be the ability to delete an item, but they’ll roll off anyway, and I think it’s better to just do the link and walk away.

I also don’t have a separate syndication feed for the Pithy Bar. I think of my Pithy Bar as this weblog’s easter egg – goodies you get if you click through, or know what to look for. When you stop by to read one of my longer essays, you can then check out any new entries in the Pithy Bar.

For those WordPress 1.2 users, you can download a file containing an edited menu.php, the logfile.php, and a page to create the table (install-linklog.php) . These three you install in wp-admin, and then run the install program once to install the linklog table. If you copy in the menu.php file, do note you’ll copy over your version of menu.php, so use caution. You can also just edit your version of menu.php to add this highlighted entry.

The gzipped file also has the plug-in, my-linklog.php, that you’ll need to install in your plugin directory (wp-content/plugins/). When you install it, you’ll have to go into the Plugins tab of WordPress, find the plug-in titled, “My Linklog”, and then activate it.

If you decide to add this to your version of WordPress, as always, backup your files and database before installation.

Categories
Burningbird

Styles redux and identity

My thanks to those who provided feedback on the styles. At this time I’ve dropped Cabinet and Clashing, though I’ll keep the clashing style in the ‘about these sheets’ page – it is a rather interesting way of looking for web site colors.

I was surprised by the variety of answers I received when I asked people which stylesheet they were using. Since I was primarily interested in ‘weeding’ out the unused ones, and the other stylesheets are currently being used, I’ll leave them, as is.

The only other change I may make is to convert Walker Evans to being a Black & White photo stylesheet, and vary the photos and photographers.

Christine mentioned that the alignment of the columns in some of the sheets was off. If anyone is finding that this is happening in their browsers, please let me know, email or comment, and provide browser and OS. In addition, there should be no horizontal scroll in 800 x 600 or higher mode.

David asked the question:

The thing is, though, which ones do you think speak to your personality?

My answer is: all of them.

The black and white Walker Evans style represents my interest in classic styling and photography, not to mention Evans; Burningbird of Happiness is my love of green and growing things; Lemon Shakeups is my whimsical, silly side; Fire & Ice represents my passion; Random Shots also represents my love of photography, and has a touch of the Missouri Green in it; Deep Thoughts is that techie, future looking, digs science me. Old Bird is, well, old bird–my roots.

Emotive not only represents my interest in semantics, it also tells me a little something about myself. More than once, I found myself a little surprised at my own choice of tones for some of the posts. Intellectually when I thought my writing was of a certain mood, I found that the associated style didn’t work and I picked another, instead. A very interesting experience at times, and better than yoga for getting me in touch with myself. I probably wouldn’t give up Emotive even if no one was using it. If anything, I’m going to be adding several more ‘tones’.

Even Clashing represented my experimental, somewhat chaotic side. As for Cabinet, this might be surprising, but it was one of my favorite styles. I love red, white, and blue as a color combination; and I loved the odd, strange, surreal mixing of images and photos.

However, it’s also offended some people more than a little; what is the good of a stylesheet that just pisses people off even before they’ve had a chance to read what I write? Let the people get mad at the words, not the box.

But I am salvaging some of the style for one of those new emotive ‘tones’ I talked about. I’’ roll it out tomorrow, on the 4th of July.

Again, my thanks for the feedback. Now, I’ll stop messin’ wit yer heads. At least, when it comes to stylesheets.

Categories
Just Shelley Weblogging

Nudging Burningbird out of the way

Recovered from the Wayback Machine.

Another change I’ve made recently is add my full name to both my syndication feeds and to the weblog pages.

Perhaps I’ll be more careful with what I write, now that my name is so prominently attached to the pages. Or I’ll feel more ownership of what I write, I don’t know. But I want to begin the process of nudging Burningbird to the side; I am no superhero, and don’t need a mask to protect my identity.

Last week I received an email from a weblogger I’ve been reading some time, and I totally blanked on his name – I was so used to thinking of him by his weblog name. In fact, I’ve been doing this too much lately, an unfortunate consequence of using an aggregator such as Bloglines or Feedster.

Now that we’re nameless in aggregators, yet another step away from the person, does this make us a little meaner to each other? Do we hurt each other with more impunity? Dammit, I don’t know the names of half the webloggers I read. That doesn’t seem right.

In fact, I remember someone suggesting a while back that all non-anonymous webloggers attach our names to our syndication feeds, just so we don’t forget who the people are behind the links. That was a good idea and I should have made my ‘name’ change then.

I am Shelley Powers. I write a weblog called “Burningbird”. Now who are you?

Categories
Burningbird

Time to trim

Recovered from the Wayback Machine.

Now that I’ve had fun with CSS and stylesheets, it’s time to cut back on their number.

A dynamic stylesheet is a very effective approach to styling your site, but not if you also combine this with a dynamic stylesheet selector as I do. The reason is that when each page is accessed, all stylesheets are loaded the first time you access the page. For regular visitors, once loaded, static stylesheets should be cached and not loaded again unless they change. Dynamic stylesheets, on the other hand, are always loaded.

Having one dynamic stylesheet isn’t a bother because I’m using a lot more resources just to serve this page, the recent comments, and other functionality.

However, three dynamic stylesheets, two of which access external files, combined with multiple static sheets isn’t thrifty, and I am a thrifty developer.

Now that I’ve had fun with styles, time to cut back. Which styles to drop, though, is an issue.

Question for those with a spare minute: what is your preferred stylesheet at this site, and why? Is anyone using the dynamic stylesheets?