четверг, 25 марта 2010 г.

mysql Ruby

I've tired to install mysql Ruby libraries.
With this option, gem'll install mysql in /tmp directory.
Before run this, make sure u've install development tools like make,gcc, etc.


  1. root: gem install mysql -i /tmp/ruby-mysql/ -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib   --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config

If u've problems after this installation, try to add
/usr/local/mysql/lib to /etc/ld.so.conf and run ldconfig.
This works fine for me.

вторник, 21 июля 2009 г.

subversion problem

'db/transactions/3-1.txn': Permission denied if u see this when u working with svn: 1. check permissions and ownership for svn directory 2. check SElinux/Apparmor 3. dunno

суббота, 13 июня 2009 г.

.Xdefaults

My .Xdefaults
Slackware 12.2


urxvt*font: xft:monospace:pixelsize=12:antialias=false
URxvt*termName: xterm
URxvt*geometry: 115x33
URxvt*transparent: true
URxvt*tintColor: grey
URxvt*highlightColor: white
URxvt*shading: 30
URxvt*fading: 20

суббота, 30 мая 2009 г.

another way to make iso

dd if=/dev/cdrom of=/home/omi/file.iso bs=65535 conv=noerror cat /dev/cdrom > /home/omi/file.iso

суббота, 23 мая 2009 г.

mplayer trash tip

mplayer -zoom -x 1680 -y 1050 -subcp cp1251 /path/to/video/file With this mplayer run in 1680x1050 resolutions and use cp1251 for subbtitle encoding...

tar split and unsplit archives

tar zcf /dev/stdout /home/omi | split -d -b 4000m - /home/home.tar.gz

in home dir: home.tar.gz00 home.tar.gz01 … etc.

cat /home/home.tar.gz0* > home.tar.gz or cat /home/home.tar.gz* | tar xz

moc keys

I use moc instead mpd.
There is some usefull keys for control moc.

#----------------------------------------------------------------------
enter  -- starts playing
s      -- stops playing
n      -- plays next item from the playlist
b      -- plays previous item from the playlist
space  -- pause
p      -- pause