sarandi

This user hasn't shared any biographical information

Homepage: http://www.waxideal.com


Posts by sarandi

Using Windows 7 Symlinks

I ran into a problem with integrating my web development/design projects on my computer with my local webserver. To further explain:

  • I keep all my professional work, including client files, on a separate hard drive partition so that I can easily and regularly back them up, let’s call it g:\
  • Client files for web projects are organized as such: g:\clients\client-name\project-name , so that if a long-term client wants a site redesign, I can easily keep these separate rather than dumping them into a single public_html directory for each client
  • My local testing server is pointed at a different partition, let’s call it h:\
  • I want to be able to serve individual projects via the testing server, but only work on the project files

Naturally, I thought of unix aliases but I’m currently running Windows 7 so I tried shortcuts. Didn’t work. After a little digging, I found the solution: symlinks (which work in numerous OSes – thanks for the correction). From the command line, type:

mklink /D H:\target\directory\linkname G:\clients\client-name\project-name

mklink /D creates a symlink, or a soft link that is the Windows equivalent to unix aliases. The first argument is the directory where you want the link to be placed, and the second is the source directory. Easy as pie.

Be careful when deleting/writing content – the linked directory allows you to manipulate the original file!

Fixing PHPList Delete/Merge Attributes Function

I recently installed PHPList v2.10.10 (the latest stable release) to manage an email campaign and ran into a slight problem. PHPList allows users to define their own form fields for lists – name, address, birthday, email, and so on. These fields are referred to as “attributes”. Almost any type of data can be configured by adding an attribute in PHPList. You then create a sign-up page and choose which attributes you want users to enter, and whether or not that attribute is required to complete list sign-up.

I started setting up my attributes and naturally, added one by accident. After finding a button deceivingly named “delete”, I clicked it to correct my error. An http request was sent and the page reloaded – but my attribute was still there, winking at me like an old man who – while sitting on his porch – witnessed your ice cream tumbling off its cone after the first lick.

Luckily, a quick search found a remedy so I pass it along to you, the ethereal inter-web user:

http://forums.phplist.com/viewtopic.php?f=17&t=24502#p67476

Take that, old man.

10 Tips for HTML Email Lists, Templates, and Campaigns

Developing a good-looking email campaign should be easy, right? You’d be amazed at how backwards the process is. This post assumes you have the technical and creative chops to hosting the email service yourself, rather than choosing a paid service like constant contact or mailchimp. Where’s the fun in that?!

From choosing the right host to archaic css support, here are some tips to help you remedy the malaise of maligned markup and hosting services:

  1. Start with a plan. You need to know five things:
    1. how many people you plan on reaching
    2. how frequently you will be emailing them
    3. what features you would like (html vs plaintext, images, etc.)
    4. the duration of your campaign
    5. your budget
  2. Find email list software that does everything you need it to do and is easy to use. Generally, they have demo sites where you can test out their features. Some even integrate with popular CMSes, like Drupal, WordPress, and Joomla. Try several of them out until you find something that you like and that is either offered by your host, or that can easily be installed. Choosing software with good documentation and a large, nerdy user base is typically a good bet.
  3. If you are planning on sending a lot of emails, find a host that allows it. Hosts typically set a throttling rate to govern the number of emails that can be sent per hour and per day. Defaults on these figures are usually low, but can often be raised after contacting customer support. Do some research beforehand and you’ll be okay.
  4. Make sure the email list software you are using – as well as your host – aren’t blacklisted by major mail servers like gmail, yahoo, etc. Similarly, make sure your host’s filtering/spam settings are either disabled or allow for large quantities of outgoing mail with your keywords.
  5. Keep the design simple. Most mail clients and online email service providers allow for minimal use of css and html. They vary drastically in their support (you can find more info here: http://www.email-standards.org/ ), but here are some quick pointers:
    1. Use tables for optimum control over content alignment. Some email clients don’t render floating elements properly and certainly don’t degrade elegantly. You can avoid tabular layouts altogether if you keep your design simple with a single column of text.
    2. Avoid the default line length; in other words, your text shouldn’t  run as wide as the window. There are two reasons for this:
      1. It is harder to read
      2. It won’t grab the reader’s attention to begin with – it looks like most junk they get in their inboxes. Even if they do start reading it, make it easier by limiting the width of a text block to 35-55 characters, either by setting a css width on your containing element, or by using deprecated methods like setting the width attribute in a table.
    3. Use inline css on each element that you want to configure
    4. Counter-intuitively, don’t depend on the “cascade” in body css – in other words, if you want all of your text to be styled with font-family: verdana, you might need to place that on each element
    5. Related to the previous point, avoid using css in the body element; some mail engines strip all html that is outside of body, including body.
    6. Avoid images as CSS backgrounds – instead, use image elements and get creative; a well designed image can create a fake page-corners, fades, and other common html graphics techniques. (a great example is the Organizing for America Campaign)
  6. Design for your audience. If you don’t know who that is, do some research. There’s nothing wrong with designing as broadly as possible – but with clear guides. If you know people who have difficulty reading small text will be receiving your email, ensure the text is large enough and with sufficient contrast. Don’t make it gaudily large, around 12-16px in many common webfonts generally does the trick. Images can’t be read by screen readers without alt attributes, so always include them. Title attributes are helpful as well, for mouseovers.
  7. Make sure the email has a clear goal and that it is easy to achieve; use image and text links to guide the reader to an actionable task. Generally, these links should point to a landing page on your site from which you can collect referral information.
  8. Make sure your content is engaging. From the images to the copy, everything should be designed to appeal to the reader’s senses and sensibilities. Knowing your audience is crucial for this step, so do some research if you haven’t already.
  9. Test, test, test. If you don’t have accounts on the major email services, sign up for them. I would advise keeping track of these usernames/passwords in a safe place (http://keepass.info), for future testing purposes. Avoid filling out personal information other than what is required by law. While I don’t condone creating false aliases, I also don’t condone data-mining, as commonly practiced by google/gmail. Tread carefully and wisely. Also, download and/or purchase major email clients (thunderbird, outlook, eudora, etc.), configure them with the appropriate server settings, and test there too.
  10. Finally: know the law. The European Union and a few states require opt-in/out clauses and privacy policies to be provided at the time of sign-up and linked in every transmission. Unless you’re living in China, North Korea, or other places where access to information is limited (among other things), the internet is boundless – you can’t plan on never getting a hit from the EU, California, Minnesota, Nevada, or other places where laws exist to protect privacy over the web. While it’s unlikely that problems will arise, they can be avoided altogether by including these things. The best way to protect yourself is to know the law and plan for future problems. I’m by no means a lawyer, but I have taken a course in internet/information law. If you’re uncertain, you should probably set up a consultation meeting with a bar-certified professional specializing in this area. A great online resource is http://www.epic.org You can sign-up for their feeds to stay on top of current electronic privacy legislation, cases, and so on.

There are certainly more techniques and considerations, but these should help get you started if you’re uncertain or new to managing and designing email lists. While I strongly condone pushing browser standards forward, the state of email rendering is even less homogeneous – and emails translate into business and money. While it’s great to support and use standards, the burden of implementing standards compliant emails shouldn’t be on the client. Designers & developers need better support from corporations. Full stop, end of transmission.

Cows from the Catwalk

Weird Enter Key Bug – Disable AVG Plugin

I installed AVG’s latest free anti-virus software, including browser plug-ins. Shortly thereafter my Enter key stopped working when trying to type in a URL. I didn’t know AVG was the issue – I tried using other browsers (they all worked) but Firefox has all my web development toolbars and bookmarks – it’s annoying to use anything else except for testing. After searching online, I figured it out. Just uninstall or disable the plug-in and you should be fine.

The Pork Plan

Eat Your Heart Out, George Orwell

You may have met Goldie-Arf in yesterday’s post. Well, Goldie likes to bark: at cars passing, at the cats, for no good reason other than she’s a dog, and so on. But what I heard around 5pm last night was not a bark. It was a growl—and despite never having heard such a snarl from her, I knew it was Goldie. Goldie doesn’t growl unless something is awry.

So, I looked outside, and there they were. In all their splendor, rooting about near the door of the house the pigs chortled with the cry of freedom.

Here they are, the glib porkers:

Pigs on the loose

I sighed with relief; Goldie wasn’t caviling with a coyote or exchanging words with a wolf. I called Tony and after giving me clear directions about what to do, I wound up doing something entirely different.

To help explain you’ll need to know two things:

  1. Pigs do not like snow
  2. The layout of the farm. And what better to show that than a photo or two?

where the pigs live, and the farm from the sky

Except, during winter, it looks like this:

Winter at the Farm

On the phone, Tony told me to lure the pigs with their food pail (the pink path) to the Northern pasture door, shown in red below.

The Pork Plan

The pigs weren’t having it! In the Summer, the pigs pasture West of the machine shed, and North of their stable area; they are free to come and go inside and out, whenever they please. Leading them back inside their pasture area isn’t a big deal during any other season but Winter – then again, I can’t imagine that they have ever left the stable when there was snow high on the ground. I needed a new plan, and fast.

After luring them back into the stable pathway (yellow), I took down the pig pen fence (they must’ve pushed the holding gate over, and hopped over the fence). I made sure the mother was watching – and when she followed me, I led her and her piglets into the pen (green). I nailed the fence back up and secured the gate so they couldn’t push it open again. End of story.

Anyone want some bacon?

little baby chicks

Meet the Animals

The family is away, and I’m doing chores in their stead. Really, it’s just feeding the animals, so I figured I’d post some photos:

First and foremost, Goldie the farm dog. She also goes by Goldie Arf. You’re the man now, arf.

Goldie, the farm dog

The cows are very thirsty! And very much ungulates. They nudge and moo if one cow is taking too long at the watering area. Reminds me of kindergarten. Large, hairy, hay-eating, wet-nosed kindergarten.

Cows drinking waterMore cows, drinking water

And now, the pigs. Also ungulates, and quite smelly. Soon they’ll have their own portable A-frame shelter for the spring/summer/fall. I’m not sure if they’ll come in for winter as they do now, but all the farm animals are pastured. For some animals, like the cows, this means they just eat the grass. The chickens get to dig around for grubs and insects, and also are supplemented with organic grain feed (seeds, corn, etc). The pigs pasture as well and get scraps from here an there. No meat though, especially not other pigs.

The big mama

I don’t know their names yet, but the mother above is bred every year. Most of the resulting piglets (usually 8-10) are sold off, but they keep two or three for food. Its processed at Dayland Meats, where they cut it into chops, bacon, hams, shoulder, and other tasty morsels of piggy goodness.

There are currently three pigs, and we’re actively looking for a boar with which to breed the mother. This means either we buy the boar, or a fee is charged for breeding. If the farm does buy one, it will most likely be sold off – granted a profit is made on the sale of the resultant piglets. Enough talk. Here’s another pig photo:

Piglet and mama

And now, my favorites: the baby chicks. These little ones are about 3 weeks old. In a factory farm, that means they’ve reached middle age. Most factory farmed chickens don’t make it past the 6 week mark. Stoney Acres carefully chooses the breeds of chicken, selecting from rare breeds specialized for meat, eggs, or both. This year, the farm is producing eggs as well as chickens for meat, so we’ve got a few varieties of chickens. I’ll write a more specific chicken post in the weeks to come. For now, cute photos:

chickletslittle baby chickschicks eatingorganic chicken feed

There will definitely be more to come. I will probably start blogging about farm stuff on the farm’s website, http://www.stoneyacresfarm.net. In addition to the photographed animals, there are also goats, getting honey bees shipped soon, and there’s talk of sheep for meat and wool. Lots to learn and look forward to.