Archive for the ‘Site’ Category

We’ve Moved!

No, not Mike and I. The blog! We are now at a new host, which costs less, provides more, and even deals with billing better. And I bet this year my domain won’t fail to renew! So now you know! Same blog name, different blog IP address.

July 22nd, 2010 • 7:18 am • dinane • Posted in Site1 Comment »

Style Geekery

If you are not a fan of programming and making pretty websites, this is not the post for you. But if you can get really excited about making a website look the SAME in all browsers, this is the post for you! I just successfully added some PHP to my WordPress theme, along with some tiny CSS tweaks, which allowed me to fix the bane of my existence – the extra space or lack of space above the left hand side of this site.

See, due to stupidity in the CSS rendering engines, my site didn’t look quite the same in every browser. Soooo close, but no cigar. In IE, the space between the headings and the content was too big. In Firefox on the Mac, there was no space at all. But every other browser I tried agreed on the placement that I wanted. And it has always irked me. But I hate the way that browser testing is usually done with CSS – counting on one bug to fix another.

So finally, I spent some time with the Google. I learned about all kinds of mechanisms, both server- and client-side, and found many to just not work. But then I came across this site, where the writer shows some variables that WordPress makes available. His solution is quite elegant, designed specifically for WordPress, and almost perfect.

I say almost, because it doesn’t differentiate the OS. Since I have a problem specifically with Firefox on a Mac, I really needed that. So I updated his function to suit my needs. Here it is, in all it’s simple glory:

add_filter('body_class','browser_body_class');
function browser_body_class($classes) {
	global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;

	if($is_lynx) $classes[] = 'browser_lynx';
	elseif($is_gecko) $classes[] = 'browser_gecko';
	elseif($is_opera) $classes[] = 'browser_opera';
	elseif($is_NS4) $classes[] = 'browser_ns4';
	elseif($is_safari) $classes[] = 'browser_safari';
	elseif($is_chrome) $classes[] = 'browser_chrome';
	elseif($is_IE) $classes[] = 'browser_ie';
	else $classes[] = 'browser_unknown';

	if($is_iphone) $classes[] = 'mobile_iphone';

	if(strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false) $classes[] = 'os_mac';
	elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Win') !== false) $classes[] = 'os_win';
	elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Linux') !== false) $classes[] = 'os_linux';
	else $classes[] = 'os_unknown';

	return $classes;
}

I simply added that to my theme’s functions.php, and the magic happened. What it does is add some classes to the body, which is already being populated by WordPress’ body_class() function. I took the example provided by Nathan Rice, and just added a few things that I needed and preferred. So now that my body tag includes the information I need, I was able to update my CSS thusly:

#content
{
   width:            654px;
   border:           0px;
   margin:           0px;
   padding:          0px;
   position:         absolute;
   top:              59px;
}

.browser_ie.os_win #content
{
   top:              57px;
}

.browser_gecko.os_mac #content
{
   top:              61px;
}

And finally, my website looks right on all the browsers I ever use. And that makes me happy.

February 11th, 2010 • 12:16 pm • dinane • Posted in SiteNo Comments »

Happy Again

It seems that I have finally got my site and theme back the way I like it. In fact, it is a little bit better in some ways. And I pass XHTML Strict validation again. That always makes me feel awesome.

I am a happy dinane.

February 10th, 2010 • 9:57 am • dinane • Posted in SiteNo Comments »

Well, This is Something, Anyway

After much trial, tribulation, and annoyance, my site is more or less readable again. Woo hoo! But I’m having issues with comments. Boo hoo… For some reason I can’t comment. If you can comment, do it! But you probably can’t. It probably won’t work. Unless you’re a spammer… for some reason that is working… they must script their comments or something, I don’t know. Spam Karma is picking them up just fine. But any comment I try to make goes nowhere.

Anyway! At least we can all read old nonsense I wrote once. And my pictures are where they belong. And I’m typing this, aren’t I? And actually, some parts of my theme are better than they were before… But still, what a giant pain in the ass.

February 9th, 2010 • 3:59 pm • dinane • Posted in Site8 Comments »

What’s With the Mess?

I was hacked! Oh no!

I’m in the process of putting everything back together, but in my haste, I did not backup my style theme, which I couldn’t have restored anyway, as the PHP may have been damaged. But it would have been nice to have it for reference… As I put things back together, this will start looking more like you remember. But for now, we’re stuck with a bunch of seriously crazy divs that don’t get along.

But at least the data is still here. I love my data.

February 8th, 2010 • 4:06 pm • dinane • Posted in SiteNo Comments »

Again? SERIOUSLY?

Let’s just skip the “Where the hell have you been?” comments. I make no promises that I’m even back.

I’m just… amazed really. One year ago, my website domain went unregistered because my host fucked up. It happened again. I paid for renewal, they sent me email reassuring me that I didn’t have to do anything to make sure it renewed, and it did not renew. ARGH! So I’m probably switching web hosts soon. This is ridiculous. What would they have done if someone stole my domain? I shutter to think it.

Much like last year, I’ll give a list of what’s going on lately. Why not? Lately, I spend most of my time…

  • Playing with Mimic – our just-under-8-month-old kitten
  • Watching every episode of Stargate SG-1 and Atlantis in order
  • Playing Rock Band while anxiously anticipating The Beatles
  • Spending time with Mike
  • Playing geeky games with our friends – I role play now!

Aside from that, I mostly eat and sleep. Though the sleep is frequently interrupted by the kitten…

You know, I never really posted pictures on this site before. I always thought I did a good enough job with words. Well, you know what? Fuck that. Lately, I’ve been big into photography. We got a new camera before we got married last year, so we could take great pictures on our honeymoon. We did that, and continue to take great pictures of our cat. At least, I think they’re great. So how about a taste…

Emerald Lake, at least that's what I think the guide said it was called.
A glacial lake somewhere in the Yukon
The sound associated with the calving of a glacier is intense.
A glacier calving in Glacier Bay in Alaska
Mimic loves hanging out on the sofa table, and if you catch his attention, he'll look at you all cute-like.
Mimic
I enjoy playing with different angles and different focus, sometimes resulting in odd-looking pictures that I happen to like.
Mimic from an odd angle

No promises that I come back here again. Though I do have a bunch of drafts for Thanksgiving recipes that I was intending to post in November. Hopefully I’ll remember that, and you can enjoy the sharing.

August 27th, 2009 • 10:47 am • dinane • Posted in Cats, Photography, Site1 Comment »

Gone and Back Again

Due to a snafu, my site went missing for a few days. After much gnashing of teeth, and forwarding of emails stating that I had in fact paid for my domain to be renewed, we’re back.

Of course, I make no promises of posting anything actually interesting to read… I really should though. I do miss my blog. It’s just that…

Well, here’s a taste of what I do lately:

  • Work hard
  • Read a lot
  • Play a ton of rhythm games
  • Watch entirely too many episodes of the BBC’s Top Gear
  • Spend time with my husband

Because, yes, in case you didn’t already know, Mike and I got married in July.

So hopefully, once we figure out how to make it work, I’ll at least be able to share some pictures from the wedding and honeymoon. And if you’re lucky, maybe I’ll actually write a narrative of the trip. Including fun things like sleeping in the Toronto airport baggage claim, crossing a ridiculously scary suspension bridge, experiencing what a temperate rain forest really is, playing with Iditarod puppies, seeing glacier calving, watching the high seas cause a cruise ship pool to empty itself (while trying desperately not to empty myself), finding that Canadians assume Mike speaks French, and other tidbits. I do want to write. So I’ll just have to find time, amongst my other tasks.

September 8th, 2008 • 7:55 am • dinane • Posted in Site, Vacation3 Comments »

No Promises

I have no answers for the questions you’re probably thinking of asking. “Where the hell were you?” “What have you been doing?” “Why did you leave us?”

I also make no promises that I will continue posting.

Though I do kind of miss the internets sometimes…

So now I can sense you asking, “If she’s not really coming back, why the hell is she taunting us with this post?”

Well, I might come back!

… I’m sure you’ve heard that before…

Ultimately, I am here because Tara made me. She’s a good mommy and encouraged… ordered… (whatever) me to post a particularly interesting tidbit of information on the internet before she went ahead and exploded. Since I like Tara, and would prefer that she not explode, I suppose I can make this particular post.

Let me preface this with a tremendous “I’m Sorry!” to people who probably should have heard this directly from my mouth but are instead reading it on the intertubes. I hope you can forgive me. I’m just really terrible at communication skills (as noted by the complete lack of attention put into my keeping up this spectacular… craptacular… (whatever) website).

And that preface leads to this preface. You might just not care. Especially if you don’t know me personally. But you might care, and for that I’m greatful.

Actually… you just may have removed me from your blogroll anyway, so what the hell do I care?

Am I done prefacing now?

Me thinks… yes.

So here it is.

Mike and I are engaged!

July 3rd, 2007 • 8:28 am • dinane • Posted in Blogosphere, Life, Site14 Comments »
Thank you for visiting d i n a n e . n e t!
Powered by WordPress • Protected by Spam Karma • Hosted on Bluehost • Validated as XHTML 1.0 Strict