Friday, May 30, 2008

Gimp.. simple things made complicated

Create a square box

Use the Rectangle select tool. Select Fixed Aspect ratio to make it square. Drag to select the size you want.



Then choose Edit, Stroke Selection to add a border to the box.



Choose Stroke Select options, and hit button and done!

Tuesday, May 27, 2008

Lirc configuration

This is what I use in my /etc/lirc.conf for my Microsoft MCE remote to control my multimedia on my Fedora desktop. Audacious, Rhythmbox, mplayer, xmms, etc, all support lirc. My Mythtv box has a second stanza in this file for my crappy Oneforall universal remote control.


#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
# http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti dconti|acm.wwu.edu
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#

begin remote

name mceusb
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100

header 2667 889
one 444 444
zero 444 444
pre_data_bits 21
pre_data 0x37FF0
gap 105000
toggle_bit 22
rc6_mask 0x100000000


begin codes

# starts at af
Radio 0x00007baf
Print 0x00007bb1
Videos 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
Music 0x00007bb8
TV 0x00007bb9
# no ba - d8
Guide 0x00007bd9
LiveTV 0x00007bda
DVD 0x00007bdb
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
Down 0x00007be0
Up 0x00007be1
# no e2,e3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
ChanDown 0x00007bec
ChanUp 0x00007bed
VolDown 0x00007bee
VolUp 0x00007bef
More 0x00007bf0
Mute 0x00007bf1
Home 0x00007bf2
Power 0x00007bf3
Enter 0x00007bf4
Clear 0x00007bf5
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff
Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5
Star 0x00007be2
Hash 0x00007be3
end codes

end remote


Sample of ~/.lircrc file

begin
prog = irexec
button = DVD
config = audacious &
mode = audacious
flags = once
end

begin
prog = mplayer
button = Stop
config = quit
repeat = 3
end

begin
prog = mplayer
button = More
config = osd
end

begin
prog = mplayer
button = volup
config = volume 1
repeat = 3
end

begin
prog = mplayer
button = voldown
config = volume -1
repeat = 3
end

begin
prog = mplayer
button = Back
config = seek -600
end

begin
prog = mplayer
button = Replay
config = seek -60
repeat = 1
end

begin
prog = mplayer
button = Skip
config = seek +60
repeat = 1
end

begin
prog = mplayer
button = Rewind
config = seek -10
repeat = 1
end

begin
prog = mplayer
button = Forward
config = seek +10
repeat = 1
end

begin
prog = mplayer
button = Pause
config = pause
end

begin
prog=mplayer
button=Mute
config=mute
end

[......]