I needed to do some mailserver reconfiguring tonight and found this Howto to be very useful. Of course, I have a goofy directory structure for virtual mail that still made it a bit of a chore, but not too badly.
Archive for the ‘HOWTO’ Category
Postfix + vmailboxes + procmail
How to tell your readers to go read something else
Or rather, how not to. I saw a link on Fark to an article at TIME.com that seemed to suggest that the “average” American diner was dead. I wrongly assumed they meant the restaurant and not the person dining, so the premise seemed odd enough to me to actually read the article for a change. Diner culture is alive and well in New Hampshire, in fact diners are said to be crucial to the first-in-the-nation presidential primary. There are at least 5 “average” (ie, old-fashioned) diners within a 20 minute drive of my home, all independent local places that are not part of any national chain, all serving basic, straight-forward diner fare to mostly locals. No hipsters dining on equal slices of cherry pie and irony in these places!
The article instead is about the increasing sophistication/boredom of the American palate, moving away from meatloaf, hamburgers and mac & cheese and towards tripe like… bacon-wrapped tripe. Meh, times change, America is a huge melting pot, learn to make meatloaf yourself if The Four Seasons or Spago are no longer serving it. Then I noticed that each paragraph was followed by a link to other content within TIME’s site. Interrupting an article like that is a little odd and a bit annoying but hey, if that’s how they want to lay out their site, that’s their choice. They already have lists of other articles flanking the text for this one along with the obligatory massive Flash skyscraper ad, so why not embed even more other links in the interior content, too. You obviously don’t expect the reader to finish the entire 8.1 paragraphs anyways, so you might as well grab them while you can.
I stopped reading at the second link, “See YouTube’s 50 Best Videos.” What the heck did that have to do with anything in the preceding paragraph? It’s like some new variant of link spam. It might as well have read, “you, hey you! Don’t bother reading this article, go to this slideshow of 50 videos on YouTube and generate us some pageviews! Yoink!” The links in the paragraphs themselves were at least relevant to the article, but the links after them sure weren’t. “See a TIME video on a man cave.” Well, you did mention ‘man caves’ in the preceding paragraph, so… “See the 100 best TV shows of all time.” Uh, ok? Just because you mentioned Lucille Ball, Jackie Gleason and The Love Boat, sure, show me TV Land’s upcoming schedule… “Comment on this story.” But there’s still two paragraphs left to go! Can I finish before I comment or would you like my impressions of it so far? “See Rachael Ray in Praise of Burgers and Our Culinary Tastes.” Ok, fine, I give up. Whatever point the author might have been trying to make has been sabotaged by these “calls to action” inserted in the middle. We don’t expect you to actually read this or any article, we just want you to keep on clicking. Click more. Click more now. Click. And be happy.
External url icon CSS
It didn’t take long at all before the linkdumpish nature of this blog so far caught up with me: I grew tired of adding class="external_link" to almost all the <A> tags. I also did not like how the icon did not match the visited link color. I corrected both of these today.
Then, I created a new layer via Layer > Add Layer… and copied the arrow object into it, making sure the two arrows were exactly aligned on top of each other. I then hid the new layer, selected both the square and arrow, and selected Path > Difference from the menu. Simple!
Finally, I unhid the arrow layer and exported the image as a 10×10 PNG. I set the square to be the visited link color and picked something a shade lighter for the arrow (I didn’t fuss on that), and exported that as a 10×10 PNG as well.
I wanted the URL icons to appear only in the blog entries themselves but not if it’s a link to this site or a relative link so to finish, I changed the CSS from having a
A.external_link definition to the following:
.entry_content A {
background-image: url('images/url-external-trans.png');
background-repeat: no-repeat;
background-position: right top;
padding-right: 13px;
}
.entry_content A:visited {
background-image: url('images/url-external-trans-visited.png');
}
.entry_content A[href^="http://webgurus.com"],
.entry_content A[href^="http://new.webgurus.com"],
.entry_content A[href^="http://www.webgurus.com"],
.entry_content A[href^="/"],
.entry_content A[href^=".."],
.entry_content A[href^="javascript"]
{
padding-right: 0px;
background-image: none;
}
C’est fin! Any modern browser will display this link with an icon and this one without. At worst, any modern browser will a partial or broken implementation of CSS will either display the icon for all links or for none at all. I can live with either. But IE 7 is not quite a modern browser. If there was a link with a <br/> or one that wrapped over two lines, the icon was displayed in the wrong location, at the top right of the first line and not at the end of the link as other Mozilla and WebKit browsers do. I used a bit of jQuery to compare the link’s height with the line-height in CSS and removed the background image and appended a normal <img> if the link was broken up over more than one line.



