Categories
Burningbird

Some science coming up

I have several science-based essays I’ve salvaged from Dynamic Earth that I’m going to post. Without their domain, the writings have been cut adrift but they’re still good. Well, ‘good’ is relative – the science discussed in them is still valid.

Going through these, I’ve forgotten how long I’ve been online, and all that I used to do BW – Before Weblogging. Really the only difference between writing to a web site and a weblog is that the latter has more formatting rules, more feedback, and a hell of a lot more stress at times.

I didn’t limit my topics in my pre-weblogging writing, covering everything from book reviews, kites, computer technology, giant squid, pets, hurricanes, and my own personal thoughts and viewpoints on just life in general. I wrote on all topics but religion, thinking that this was too taboo a topic to put online when I didn’t know who was reading me.

(Now I write about religion from time to time. Nothing like weblogging to loosen one’s tongue long enough to get into serious trouble.)

Of course, those who have tolerance to match their deep spiritual beliefs might say that when I’ve written on trees and oceans, programming and sadness, I have been writing about religion.

Categories
Just Shelley

For Life

First published sometime in 1997, I believe, at the original YASD site.

Today, today, I have reconciled myself to dying. We all die, eventually. I will die … someday, hopefully far into the future. Now that I’ve got that out of the way, I might as well live, and stop being afraid of the inevitability of dying. The funny thing about inevitabilities is that you can’t run from them, hide from them, or push them off. So ignore them, and move on.

Who is this person who’s crawled into my skin? I used to be such a gutsy person who didn’t back away from any challenge. Now I sit in a chair surfing the Net – living vicariously through a wire: a pseudo peeping tom on the world. When I’m not online, I sit in a pub or library or park, listening to other people’s lives. Excuse me, but whatever happened to going out and creating my own? Since when did I become a miser, holding on to each day like it was a bright and shiny copper penny that I couldn’t let go?

Life was meant to go by in a blaze of experiences and events and sharing and caring and things done and places visited. You spend each day freely and with abandon, and you know you’ve lived successfully when you reach the end of your time and realize that your life has passed swiftly, in a blur–a kaleidoscope of memories, rich and colorful and warm.

Today I put on music and I danced around my living room as I used to long ago, way back in a time when I wore flowers in my hair. I danced for the sheer joy of dancing and I connected with that long ago younger daughter that was me and for a moment I was in a time machine in my own mind – a time warp between then and now. I danced not for work and not for exercise and not for socialization and not because I ought to or had to, but for the joy of the act, the love of the music. I danced because I wanted to.

There should be one rule in your life, one absolute: no regrets. Whatever you do or don’t decide, do so with an understanding that you’ve made a choice and don’t look back with regrets. Look forward…always look forward.

Follow your instincts about what’s best and right for yourself. Don’t say, “If I do this, I may regret it later.” That’s not the way to live. You have to grab life, and its experiences, with both hands and hold on for all its worth. It’s a wild ride at times, and a scary one, but you’ll get to where you’re going in the end. You’ll get to where you should be.

For me, I find joy in my writing. But somehow, somewhere, I stopped writing for myself, and started writing for others. I didn’t write what I wanted to say, I wrote what others wanted to hear. That’s not life; that’s just going through the motions.

I once told someone:

I love to write. Writing to me is a shield when I’m hurt and a weapon
when I’m angry. It is friend and lover, and a thief of time. It exposes
me and hides me. It is there in the morning, and there in the evening. Of all the chaos of life, writing is my one constant.

When I’m hurt or I’m afraid of hurting, I write and with my writing
heal or am healed. One in the same.

Take a moment, put on some music, and dance around your living room or your bedroom, or go dance in the street if you want. Or play a guitar, or run through the park, or fly a kite. Or write. For the joy of it. For life.

Categories
Just Shelley

Pleasing the masses

Another one from Dynamic Earth, edited for modern times.

One person somewhere in the Universe will really hate my (new web site design | photograph | writing | haircut | opinion). They’ll hate it with an almost overwhelming passion, and will be filled with a sense of loathing of it, and of me.

One person somewhere in the Universe will really love (my new web site design | photograph | writing | haircut | opinion). They’ll love it almost as much as sex, and more than chocolate, and think me a Goddess. I will be falling over them, as they kiss my feet.

The rest of the Universe will fall somewhere in between. I can live with this.

Categories
Burningbird

Pick your bird

I’m still playing with new styles for the site. I find when I’m tired or want to think about a topic before I write on it that playing around with a new style is very soothing. After all, it’s very easy because all of the styles use the same basic layout and layout is the tough part of a web page design.

I thought I would write out the details of how all this works since the sheet switching seems to be working relatively well. I’m still tweaking, but that’s primarily because of my extensive use of photos and graphics.

I borrowed the dynamic stylesheet loading Javascript from Michael Hanscom, who got it from an A List Apart article. You can also download a copy here. After downloading, rename it to “styleswitcher.js”.

The ALA article has good coverage about adding the switcher code and how it works so I won’t repeat it. What I’ll talk about instead is what I’m doing with my own site, including using PHP to generate CSS.

First, all of the sites have the same basic layout. Once I found what I liked, I kept it and this makes site redesign more a matter of fun exploration than work.

The basic design is two columns, usually centered, each separated slightly from the other. Within the sidebar column on the left, several discrete sections containing images and things like Recent Comments and other lists are framed within another ’sidebar’ section that usually doesn’t have any background (Walker Evans differs).

I made no attempt to ‘contain’ these sidebar items, hence creating the effect a friend called the “floating clouds”. I also make no attempt to ensure that all the segments are exactly the same size, and spaced exactly the same. Clouds in nature are imprecise and chaotic and so are my sidebar clouds.

(Besides, I’m also a little chaotic so the design suits me. And it feels so good to drive the anal among you crazy with my irregularities.)

Now, to change the sidebar images with each stylesheet, what I did was create a set of nine DIV blocks, img1-img9, that have a different image as a background image, just as I use a background image for the entire page. From Fire & Ice, one of the image blocks looks as follows:

div.img1 {
background-image: URL(./look/noaa2sm.jpg);
width: 200px; height: 131px; margin: 0px; padding: 0px
}

The main page has the DIV blocks embedded into the sidebar, but if the matching DIV class is not included, nothing shows – as you’ll see in Old Bird. Otherwise, the image defined in the stylesheet is what shows.

Of course, this has some latency effects with some browsers and an embedded transparent GIF within the block would help overcome this – but the sidebar images I use differ in size from stylesheet to stylesheet. So, for the nonce, the slight latency issue remains.

You can access any of my style sheets just by opening my main page, getting the stylesheet names, and then saving the sheet. As for this page, well, a girl has to have some secrets, doesn’t she?

Seriously – you can access a copy of the main index page design here.

Finally, a new approach that I’m exploring now can be seen in a style called “Random Shot”. This style, still under development, is a combination of PHP and CSS that uses a random generator to access a database containing names of photos I have stored on my server, and change the image with each page load. You’ve seen random photos in my main page, but that’s a pure PHP page.

It’s relatively easy to combine CSS and PHP. To have the web server process the PHP in the CSS file, you need to name the file with a PHP extension instead of CSS (unless you’re playing around with your .htaccess file – more in a later writing). However, to ensure that a page is returned as a specific type to the browser, in this case CSS, include a PHP header function call as the first bit of code in the page and set the document type:

<?php

header(’Content-type: text/css’);

?>

Now, the page will be processed as PHP, but returned to the browser as CSS.

Include the link to this page as you would any other CSS page:

<link rel=”alternate stylesheet” media=”screen” title=”randomshots” href=”http://weblog.burningbird.net/photos.php” type=”text/css” />

At this time, I’m using a file with names of photos for my test stylesheet, but you can use a database or anything else you want:

<?php

// script is RandomImage, from Enter the Fog
$url = file(“http://burningbird,net/somefile.txt”);

//generate a random number
srand((double)microtime() * 1000000);

//change the number after the % to the number of images
//you have
$ct = count($url);
$rn = (rand()%$ct);

//display the banner and link . This opens in a new window
$imgname = trim($url[$rn]);
printf(“background-image: URL(’%s’);”, $imgname);
?>
width: 200px; height: 130px; margin: 0px; padding: 0px
}

You can use PHP to do anything within your stylesheet. Think of the possibilities….

All you have to remember is that the more processing you put in, the slower the page loads. And if you dynamically generate the stylesheet, it won’t cache between access. However, unless the file is large or uses a lot of photos –ahem– you shouldn’t have any problems. If you use a lot of photos or processing though, there could be a noticable lag between when the page loads and the stylesheet kicks in.

Categories
Burningbird

New look. Really new look.

I did testing of the new look in the validation engines, and several different browsers and it seems to work. I am aware of the float problem with IE 6.0 and will dig up the work around and add it. I’m getting to the point where if I no longer support Netscape 4.x, I don’t want to support IE 6.x, either.

But it is widely used so if you’re using it, be aware that I working the problem.

I have other new styles to add in addition to the ones you have now, but I’ll leave those for next week. I myself switch between Fire & Ice and Lemon Shake-Ups, depending if I’m in the mood for summer or winter. Shake-Ups is a bit busy, but it suits the photo at the top and is very cheerful.

Speaking of photos, yes I am using photos in the sidebar and yes it can slow load times. Hopefully once they cache, their bandwidth burden should be minimized.

The ice photos used in Fire & Ice are from the NOAA public libraries and they are lovely, aren’t they? The other photos that aren’t NOAA’s or mine are from Jon Sullivan who has generously placed most of his wonderful work into the public domain. (Jon has a weblog here. Read his disclaimer at the bottom for a giggle.) I will be using more of Jon’s work in upcoming styles.

I either created the clipart or downloaded it from the free clipart pages at about.com.

If you can try these different stylesheets in your browser and drop me a note and let me know what does or doesn’t work, I’d be appreciative. This is a very major change, and I imagine the site will be rough for a week, until I finish the transition.

I’ve had the old colors and look for so long, when I come to the pages, it doesn’t feel like my site. But change is good. Thanks again for those who have commented and tested; a special thanks to Roger for helping me with the Burningbird title positioning.

Fixed the layout problem in Safari and IE – I had an unclosed DIV tag within my last post (my update block).

Rah!