Log in

No account? Create an account
Overloading the Machine -- Day [entries|friends|calendar]

[ website | wjsullivan.net ]
[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

More better: playing new music with mpd [23 Jan 2008|01:12am]

Someone pointed out to me that my previous way of building a playlist of all the music I'd acquired in the last 31 days didn't preserve the album track order. I didn't think to check this (because I mainly had in mind to listen on shuffle anyway), but it turns out that find doesn't return the results in directory order. So this new version fixes that by piping through sort, and now takes an argument to specify a different number of days than 31. I think I also had the pruning business wrong before.




if [ $1 ]; then days=$1; fi;


tracks=$(find encoded -path 'encoded/podcasts' -prune -o \
    -type f -mtime -$days -print | sort)

mpc add $tracks
4 comments|post comment

Whole Foods to end plastic bags by Earth Day [23 Jan 2008|06:00pm]
Whole Foods will be ending its use of disposable plastic grocery bags in all of its 270 stores by Earth Day, April 22.

Is this really a good idea? I reuse every plastic bag I get, mainly in my trash cans. If they get rid of them, I'll have to start actually buying garbage bags, which are a lot bigger and heavier.

read more | digg story
6 comments|post comment

[ viewing | January 23rd, 2008 ]
[ go | previous day|next day ]