Dreaming Dreams

Archive for May, 2009

Release Party - June 12th

by dreamer on May.28, 2009, under Fedora

Ok, here is the info for the Dutch Fedora 11 Leonidas release party everyone has been asking for ;)

Friday 12th Yaakov and I will organize an open BBQ at my place in Wageningen. We will have 2 party tents, a bar-like structure, 100mbit internet, a local mirror and some food and drinks.

Send me an email to dreamer<at>mrtoasted<dot>com if you are coming, I will send you the adress :)

The plan is to start around 6pm and get the fire going. It will be like a “fridaynight-special” and we’ll just continue partying and hacking until we fall asleep (saturday afternoon or something ;) ).

Leave a Comment more...

Fedora 11 release-party

by dreamer on May.26, 2009, under Fedora

Together with Yaakov I will organize a small release event somewhere around the release-date of Fedora 11 aka Leonidas.

It will mostly be held for the dutch fedora community, so we will invite all dutch (and dutch speaking belgians perhaps? ;) ) to come to this small get-together.

There will be food, drinks, and a Fedora mirror :)

3 Comments more...

multi-mpd output switcher

by dreamer on May.23, 2009, under Scripts

So, my latest server is now also my music-player. With it I can listen to music at home (it’s attached to my stereo) and also stream it online. On the server I have 2 mpd’s running:

  • One as a system-daemon, that anyone can access to control.
  • The other runs as user and has a password-protection so only I can modify the playlist (anyone can see the status).

The problem being: How can I listen to both mpd’s on the alsa-output of my server and switch between them with a simple command?

I wrote this little “script” to handle the changes. If you choose to use it, modify according to your settings:

#!/bin/bash

id=$1

## Switch to ‘main’ mpd
if [ $id = main ]
then
## ‘Current’ variables:
export MPD_HOST=<pass-of-user-mpd>@<host>
export MPD_PORT=6601
## Disable and activate main
echo “Switching alsa to main”
mpc disable 1
export MPD_HOST=<host>
export MPD_PORT=6600
mpc enable 1
## Switch to ‘user’ mpd
elif [ $id = user ]
then
echo “Switching alsa to user”
mpc disable 1
export MPD_PORT=6601
export MPD_HOST=<pass-of-user-mpd>@<host>
mpc enable 1
fi
exit 0

Save this to a file in your home-dir. then ‘$ chmod a+x <script>’ and switch with either ‘$ ./<script> main’ or ‘$ ./<script> user’.

If you feel that I have done this very poorly and this could be done better, please comment below :)

Leave a Comment :, , more...

First

by dreamer on May.23, 2009, under Uncategorized

Hi there.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...