HOWTO: “No space left on device” error with Magento

This issue stymied me for quite a long time.  There are other reasons, and hence other solutions, as to why you’re getting this error (couldn’t hurt to double check file permissions), but for me, the solution turned out being that I needed to dump /var/sessions from my Magento installation.

I’ll update this post if the solution doesn’t last, but Magento and my other PHP apps have been running without a hitch for an hour now.  If you’re using Ubuntu, also try an apt-get update, apt-get upgrade.  I think this all started because a bug may have been introduced somewhere along the line during a previous upgrade (mySQL maybe?).

I’m just glad to put this behind me… let me know if this works/doesn’t work for you.

HOWTO: Search Twitter Without Username

Sometimes when using Twitter’s global search functionality (http://search.twitter.com/), the result set is sub par because  a user by the name of your keyword hogs all the results.

Let’s say I wanted to search for what people are tweeting about the popular deals site, dealnews.  But when I go to the aforementioned Twitter search, and use the keyword ‘dealnews,’ I get back a ton of tweets from the official dealnews Twitter account.  Given that I was looking for people’s opinions, this isn’t exactly what I had in mind:

Twitter search results for keyword 'dealnews'

So how do you get around this?

Fortunately, Twitter allows you to include search operators, so the quickest way would be to reform the keyword search to look like this:

dealnews -from:dealnews

The minus sign means to omit any matches that were sent from the user dealnews.  And there you have it:

Fixed keyword search for term 'dealnews'

Use this trick to filter your search results and remove any users junking up your search.  In this case, the result set was still poor, but that’s because not a lot of people wrote about dealnews in the past hours.  Just a lot of retweets.

The problem with some newspapers

Yesterday, the front page of the Los Angeles Times featured the start of a four-part series on a quarter-century marriage between a well-regarded lawyer and an Aryan Brotherhood inmate (link).  Today, I read that newspaper advertising revenue has seen a stunning drop of 18% in Q3 compared to the same period in 2007 (link).  So how are these two things related and what’s a newspaper to do?

I have to confess that I did read the article, and it was an interesting read – I’m glad I read it.  But, I like print newspapers, and I want them to survive.  And despite their appeal, long-form articles like this just don’t belong in a daily newspaper anymore.

The decline in advertising revenue isn’t a result of this kind of reporting, but these narratives should be one of the first casualties as newspapers look to cut costs.  A friend of mine, familiar with such matters, recently told me that veteran L.A. Times reporters used to refer to their paper as the “velvet coffin”, because if you navigated the structure correctly, you could end up writing just a handful of plum stories for ~$200,000 a year and spend most of the year researching and writing books.  You’d have an unusually cushy job that you’d want to keep until you died (a little exaggeration never killed anyone, no pun intended).

That was all well and fine in less austere times, but with the newspaper industry losing billions in ad revenue, only the lean will survive.  These types of articles (including a recent one about a post-war LAPD gang squad) are routinely based on months of research and, in the case of the gangland story, 100+ interviews. While vastly informative, there are better vehicles for this reporting – like magazines and books.

My thought here is that in order to survive, newspapers will increasingly face challenging and unpleasant business choices.  The adage of “cut once, and cut deep” is one that is oft considered by executives facing the unfortunate prospect of layoffs, but I think it also applies here.  I’d rather see newspapers make dramatic changes one time and immediately – with an eye towards future sustainability – than witness the print newspaper undergo a slow death by a thousand cuts.

There are scores of changes that publishers will need to consider, and the elimination of the long-form, multi-part narrative is just one small recommendation (maybe pennies in the pot… but you need to start somewhere).  By no means am I an expert on such matters, but I do know business basics, and I know that no business will last long when expenditures exceed income.

With future advertising losses expected to continue, now is the time for newspapers to explore new ways of remaining viable.  I’d like to see print survive … who’s up for the challenge of ensuring that it does?