Notes

Copying a large set of files

Today I found myself needing to copy a very large number of files from one server to another. My standard tool for these things is usually scp, but in this case it didn't work due to the fact that i needed to copy a large subset of files within a directory. In other words, I didn't want to copy server:directory – but server:directory/*pattern*. This is definitely possible with scp, but because *pattern* returned so many files in this case, I recieved the error message Argument list too long.

I found a handy solution for this, but first let's take a look at the reason behind this error message.

Replacing form buttons with links – the accessible way

Have you ever wanted to replace those boring standard web browser buttons with something nicer? There are a few different ways of approaching the problem, including styling the buttons with CSS and using image buttons. There are some issues with those approaches however, and sometimes you may not even want a proper button, but instead use a regular text link. This is why my favorite solution is to replace the buttons altogether – with links that can then be styled anyway you want.

Spam filtering on Plesk – don't buy it!

So I decided I would give up shared hosting for good and instead run a VPS based Linux instance with Plesk to help me setup web sites and mail accounts for a few of my domains. The license fee seemed to be well worth the money. Plesk brings a whole lot of power into one comprehensive web interface which saves me huge amounts of time and trouble compared to doing everything manually.

But I was rather disappointed when I realized that such a fundamental puzzle piece as a spam filter wasn't included in my license. Here's why I think that sucks and how I worked around the problem – twice.

Preparing images for page layout

in

If you’re working with the graphic production of magazines and other printed material on a regular basis, you’re probably familiar with the problem of preparing large numbers of images for placing into your layouts. They often arrive in a variety of formats and resolutions which makes it difficult to know how large they can be scaled in the layout documents without the resolution becoming too low. You have to make sure each image has the right resolution and is saved in an appropriate file format before placing them in your documents. Surely, there has to be a better way than opening up and resaving each image in Photoshop.

A multi-domain mail server on Debian

This is a description of how to set up a Debian box to serve as a multi-domain mail server, with SMTP (authenication available), POP3, webmail and mailing lists.

Syndicate content
Byt till svenska