Achei esses perdidos no meu micro
I am using MPD to play my small collection of mp3:
[eugeni@eugeni 16:53:31 ~] $ mpc stats Artists: 787 Albums: 747 Songs: 9112
Everything is controlled by keybinding – for example, to run the play command, I press < Super >+Up; to run next command I press < Super >+Right, and so on. These shortcuts start a small client to mpd, which is nothing more than a shell script which:
- Starts MPD if it is not running (I do not start it on startup to save a few seconds of boot time)
- Runs mpdscribble in background to update the LAST.FM statistics
- Runs all required MPD commands
- And displays the results in a nice way
And it is multi-distro-oriented by the way .
#!/bin/bash # Is mpd running mpc status 2> /dev/null ret=$? if [ ! "$ret" = "0" ]; then notify-send -i audio "Music" "Starting mpd.." # are we on arch linux? if [ -x "/etc/rc.d/mpd" ]; then sudo /etc/rc.d/mpd start else sudo su -c "service mpd start" fi # starting mpdscribble mpdscribble # starting sonata sonata --hidden fi mpc $* # Some black magick to get a bit more advanced mpd status # and convert it to shell variables eval `echo -e 'status\ncurrentsong\nclose\n' | \ nc localhost 6600 | \ sed -e '/OK/d' -e 's/: \(.*\)/="\1"/g'` # show the results notify-send -i audio "$Artist - $Album - $Title" \ "$(mpc status | sed -e 's/&/and/g')"
Just yet one another script which contributes to world’s entropy .
I spent the entire week at Mandriva’s office in Curitiba (usually I work remotely from home, in São Carlos – about 500KM from there). It was a great, great week – I finally met the rest of the team (I already knew most of them because of past projects, and over the irc). And I love Curitiba city too – it is probably one of the most beautiful cities I know.
While there, I finally fixed all pending release-critical bugs which were assigned to me (including the infamous b43 bug ). And, while waiting at the airport, I got bored and added support for Brazilian VIVO cellphone provider to drakconnect.
But overall, the trip was great! Looking forward for next one.
Also, not that long ago I discovered Nexuiz (opensource 3d shooter, based on Quake engine, but HEAVILY modified). From all opensource shooters I know, this looks one of the best. However, the recently-released 2.5 version has increased the size of game data to 600MB. I built it here on my machine, and was playing quite happily against bots for some time. But I don’t know if it is a good idea to submit 600+MB over SVN to Mandriva repository. Just to think about how long will it take scares me.
And finally, I (once again) tried getting used to KDE4, with a bit of persuasion from Helio Castro. From all KDE versions I used, this one is, in my opinion, probably the best. I managed to stay with it for about two days, but then returned back to XFCE. If the development of KDE goes with the same pace as of lately, probably the next KDE release will be good enough for me . But for now, nothing like good old XFCE 4.6!
P.S.: The picture on this post was taken by bedi. I have no idea how he managed to put those effects on the photo (probably it was beer effect ), but it looks cool! hehe.
(pt) Só para deixar registrado – a partir de hoje, Eugeni->Age == 0x1c!
(en) Just to make it registered here: starting today, Eugeni->Age == 0x1c
Happy BEERthday to me. I know it is not right to spell it like this, but it is definitely much more fun .