You are currently viewing all posts tagged with admin.

A New Look

It’s been nearly two years since I last redesigned this site. Don’t let me go that long again! The web is supposed to be a dynamic place, you know. Anyway, here’s the new look.

It isn’t drastically different from the old one. I’m still keeping it clean and simple, and the base colors are the same.

You might notice the rounded corners on some things. Yeah, that’s right. Web 2.0, here I come! I think rounded corners are only acceptable if accomplished with simple CSS. CSS3 is slated to include the border-radius property to achieve rounded corners. The specifications are not yet finalized, but Mozilla browsers have implemented the property with -moz-border-radius and WebKit browsers with -webkit-border-radius. Those are the properties that I’m using. That means you’ll get rounded corners in browsers like Firefox and Safari. Opera seems to work too. Internet Explorer, not so much. (Come on, IE has a hard enough time complying with current standards. You can’t expect it to look to the future!)

If you notice any bugs or would like to suggest any changes, let me know. After all, the site is really for you, dear user.

(I did briefly look at everything on a Windows box running IE8. It seemed to work – other than the rounded corners, of course – but if you notice any bugs in that particular browser, you know the drill.)

Two of the things that really spurred this design are Readability and Clippable. For about a month now, I’ve been using these bookmarklets while reading longs articles online. They help a lot. But it’s really a problem with the design of some sites that I feel the need to use them. I decided that I wanted to redesign my site with typography in mind.

I’m also now integrating Twitter posts into the blog. We’ll see how that goes. They’re styled differently, so there is a visual distinction between a tweet and a normal post. The idea is that I’m now just using twitter as a back-end to create short posts. If I want to, I can switch to some other microblogging service and you, the user, need never know the difference. (I could even just use Wordpress to create short posts! But that might get me kicked off the interwebs…)

Tweets integrated into the blog means tweets in the RSS feed, as well. That makes my RSS mash-up a bit irrelevant. If you currently subscribe to that, I’d recommend changing your subscription back to the normal feed. For those who don’t want to change, I’ve removed the Twitter feed from the mash-up’s input. That way you won’t have to read each of my tweets twice. The mash-up feed will now only include the blog and Flickr stream.

Blueprint

This design is built upon the Blueprint CSS framework. I’ve used it a handful of times before, but never properly. My method was always to link to the three Blueprint CSS files (screen.css, print.css, and ie.css) in the header and then toss in a link to my own stylesheet underneath them. I never used the compressor.

The idea behind the compressor is pretty simple. It allows you to maintain one central instance of Blueprint and use that to generate the CSS needed for each individual project.

The author’s walk through outlines the general idea:

    <ul>
    <li>Keep a core Blueprint folder checked out with <a href="http://git-scm.com/">Git</a> on your computer</li>
        <li>Create a settings.yml file within the Blueprint folder with all the specifics of each project using Blueprint</li>
        <li>Use the command line to generate <span class="caps">CSS</span> for a project on command
    <ul>
    <li>Incorporating any site-specific attributes
    <ul>
    <li>Namespace on all Blueprint classes</li>
        <li>Custom grid template rather than the standard 24 columns / 30px column width / 10px gutter width</li>
    </ul>
    </li>
        <li>Compressing any custom <span class="caps">CSS</span> and appending to the end of the Blueprint stylesheets</li>
        <li>Appending custom semantic selectors to the end of the Blueprint stylesheets</li>
    </ul></li>
    </ul>

When I first head about this, I though that the compression bit was all well and good, but I’ve never been really adamant about optimizing CSS for speed in the first place. I’m more concerned about compliance with standards and readability. Maintaining a central Blueprint instance didn’t appeal to me much, either. What really stood out is the ability to have custom semantic selectors.

CSS frameworks are neat. I’ve used a handful. Like any other tool, they’re not always appropriate. When they are, they have certain advantages and disadvantages. One of the main things that I dislike about them is that they encourage you to clutter your code with framework-specific junk. If you’re using 960.gs you’re going to have elements with classes like “container_x”, “grid_x”, “omega”, and “suffix_x” all over the place. With Grids you’ll have “yui-g”, “yui-b”, “yui-main”, and the like. Readability of code is diminished and you’ll probably end up suffering from a case of div-itis. Not to mention, you can forget about a strict separation of markup and styling. Sure, you could copy the style definitions for the specific framework classes into the classes or IDs of your own elements, but how many folks actually take the time to do all that copying and pasting? I sure don’t! The appeal in a CSS framework is to save time, not make the process of building a site longer. Plus, there’s an appeal in having the framework-related styling separate from the normal site styling. Such a separation makes the framework easy to update.

This is where Blueprint’s semantic classes comes in. It allows you to tell Blueprint to take one of your classes (or IDs) and apply to it the properties of one of Blueprint’s classes. A-mazing.

As an example, the header of this page might look something like this if built on Blueprint without the compressor:



pig-monkey.com

Blah blah blah...

  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo

Look at those framework-specific classes all over the place. Nasty. But in the Blueprint compressor settings file, I can define some semantic classes.

"#top, h1#title" : "span-24 last"
"#top #nav" : "span-18 prepend-1"
"#top form#search" : "span-5 last"
"#description" : "span-23 prepend-1 last"
"#flickr" : "span-20 append-2 prepend-1 last"

Now my markup looks like this:



pig-monkey.com

Blah blah blah...

  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo
  • My Awesome Photo

Clean as a whistle! No useless divs, all elements semantically named, and not dependent on any framework.

As great as the compressor is, I do have a couple problems with it. When using the compressor, Blueprint intends that you only have 3 final (compressed) stylesheets: screen.css, print.css, and ie.css. Wordpress, of course, requires a style.css file to define the template. That’s no problem. I just a create a style.css file that has the theme information in it and then toss in a @import url(‘blueprint/screen.css’). Then in the Wordpress header I can put a link to style.css, print.css, and ie.css. Everybody’s happy.

Styling a website basically boils down to making a small change to the stylesheet and refreshing the page to see how that looks. Running the compressor after each change to combine the custom stylesheet with the screen.css file is not productive. So for the development process I tossed a @import url(‘blueprint/custom.css’) into the main style.css file. That works fine.

Then I finish building the theme. I’m ready to compress the stylesheets, so I remove the call to the custom stylesheet in style.css. I tell the compressor where the custom stylesheet is and have it combine it with the screen.css file. I run the compressor, reload the site, and everything explodes.

Just when I thought I was done!

The problem is that in the stylesheet the compressor generates, it puts my custom styles above the semantic classes. Throughout the development process, I was calling the screen.css file (which includes the semantic classes) before the custom stylesheet. As you no doubt know, stylesheets cascade. You can’t just switch up the order of elements without breaking stuff.

Oh well, I thought. At this point I was tired working on the site and didn’t care enough to fight it. I just put the line to call the custom sheet back in style.css after Blueprint’s screen.css file. I still feel like the whole semantic classes bit is enough of a reason to use the compressor, even if I’m not actually compressing my main stylesheet!

ITS Tactical

ITS Tactical is a site that, in their words, is dedicated to living better on the tactical side of life. The site only launched in April of 2009, but with its tutorials, gear reviews, and other articles, has already established itself as mainstay in the community. I first discovered ITS last summer, and it immediately became one of my daily reads.

Last week, Bryan, the editor-in-chief, contacted me and said that he was interested in featuring my work with the DIY Tyvek Stuff Sacks on ITS. I had been meaning to rewrite that article, anyways, in order to demonstrate my new method for constructing the sacks. So I jumped at the opportunity to be a guest writer for ITS. You can see my article on ITS right here, and all the photos are of course available on Flickr.

If you’re coming here from ITS, welcome! You might be interested in gear stuff, or more specifically EDC stuff. Or maybe wilderness stuff. Who knows. There sure is a lot of stuff.

ITS Tactical logo

Updated Links

I decided that I wanted to do something useful with my links page, so I’ve updated it to list those blogs that I subscribe to with my feed reader. Currently, there are 59 links. I’ll try to keep the list updated as I stop reading old blogs or start to read new ones.

RSS Mash-Up

This mash-up feed still exists, but you probably don't want to use it. As of May 2010, Twitter feeds are now integrated into the blog and thus are included in the normal feed. The mash-up feed now only mashes the blog feed and Flickr photos

When I first decided to add twitter posts to my site, I debated whether I would rather have them integrated into the actual blog posts or separated. Visually, I like to have the separation, but I always thought it would be neat to pull the twitter posts directly into Wordpress’ database, and so have them integrated into my RSS feed. Otherwise, for those who wish to follow my twitter posts, but are not on twitter, they have to subscribe to two different feeds – both my blog feed and twitter feed.

Today, I had the idea of keeping the actual separation of twitter and the blog, but simply creating a new RSS feed using some sort of RSS-mash-up-aggregator thingy. I thought Feedburner could do something like that, but apparently not. After searching around for other options and not finding anything that really excited me, I decided to just use Yahoo Pipes. After all, this is pretty much what it was made for.

Combining feeds in Pipes is pretty simple, but after mashing them together, I discovered that twitter’s RSS feed is kinda ugly. Luckily, editing feeds using regular expressions in Pipes is pretty simple, too. After polishing up the twitter feed a bit, I thought Why not toss my Flickr feed into this puppy? But occasionally I’ll upload a large group of photos to Flickr at a single time, and I didn’t want to totally bomb my new RSS feed. Plus, most of the time when I put photos on Flickr, I create an accompanying blog post, so I wasn’t sure that adding the Flickr feed to the mash-up was even necessary. I figured that I’d toss in the Flickr feed for now, but compromise by having Pipes truncate it to the 6 most recent items.

Now I have a pretty new feed.

Then came the problem of what to do with it. I didn’t want to just toss up a link somewhere. I preferred the idea of replacing my normal blog feed with this new super-feed. But I also didn’t want to just edit the Wordpress template header. I new Feedburner had a plugin to integrate with Wordpress, so I thought about burning the new feed and then using the Feedburner plugin to pull it in, but that seemed a little excessive, particular since I don’t care about any of the click-tracking or monetizing features of Feedburner. Then I found the Feed Locations plugin, which does exactly what I wanted: allow me to specify the location of my feed in the Wordpress admin panel.

Now, if you ask Wordpress for this site’s RSS feed, you get the new feed. If you’re opposed to all this new fanciness and just want the plain old blog feed, it’s still up at the same location, just not linked to from anywhere.

Let me know what you think about having the Flickr photos in the feed. If it’s redundant, I’ll take them out.

Back to Dreamhost

I’ve moved this domain back to Dreamhost. It’s been a good run with Slicehost. I still think that they are the superior host (I’ve already noticed a slowness with Dreamhost compared to Slicehost) and I greatly prefer the freedom and control of a VPS over shared hosting, but Dreamhost is cheaper and I need to cut down expenses. In the future I may move back to Slicehost again.

If anybody finds anything broken due to the move, let me know.

Jabber Changes

I’ve changed my jabber account to pigmonkey@jabber.org. The old account is no longer active.

The jabber.org server doesn’t support transports, so I am no longer reachable through the old ICQ or AIM accounts. All the contacts I actually speak with seem to be on XMPP, so that shouldn’t matter.

Beautifying

Another redesign! This one only 6 months from the last. How remarkable is that?

The base template and heavy CSS of the last design made this change relatively simple. This time around, I’m using YUI Reset and YUI Fonts. I started using both of them a month or two ago on a couple other sites. It’s hard to imagine building a site without them now. They take a lot of headaches out of CSS.

This design is not using YUI Grids. I have used it before, but I don’t think it offers any benefit with this kind of design. It’s more suited toward a content intensive site with many nested divisions. Something like Yahoo’s front page.

You’ll also notice a Twitter feed on the top of the index page. I’ve been trying to figure out what the appeal of Twitter is, but so far, it’s escaped me. I figured embedding tweets on the site would provide extra encouragement for me to try it out. I think Twitter may lend itself to my summer on the road, too. So, we’ll see how long that lasts. It seems to be noticeably slow, so I might have to find another way to pull the data.

Another new feature is tags. I started tagging posts a while ago, but haven’t displayed them till now. The majority of posts are not tagged. Maybe someday I’ll go back and tag the 1,300 old posts – but I doubt it.

Some kinks of the design are still being worked out, but if you notice anything strange – whether it be from the redesign, server move, or mail move – let me know.

A Redesign

So, things are looking a little different around here, no? I’ve had this design floating around in the grey-matter for a spell, but I didn’t think I’d start on it for a while yet.

Then I got bored.

I whipped it up last night and today. A lot quicker than I thought. There’s still a few tweaks I want to make, but it looks so much better than the last one, I decided to put it up before it was polished.

The design is very CSS heavy – though “heavy” might not be the right descriptor, as the whole thing is rather quite light in terms of size. CSS dependent. How’s that? The last few visions of this site have been CSS dependent, but in this one – inspired in large part by CSS Zen Garden – I’ve done my best to take out all styling from the pages and put it in the stylesheet. Of course, there’s probably a bit of legacy styling lurking here-and-there in various old blog posts. Let me know if you stumble on any.

The design has been tested in Firefox on both OS X and Ubuntu, as well as Safari in OS X. Let me know if you stumble upon any bugs, unless you’re using IE. Actually, if you’re using IE and want to send in a screenshot, I’d be curious to see how the site renders.

I’m sure someone will be curious about the stripes. I put them in there as a joke and placeholder till I figured out what I wanted to do with the background, but hell if they don’t look halfway decent. (It always ends up with me that some of the best design features start as jokes are bugs.) So, for now, they stay.