May 26, 2008

JKScroller on linux

For convenient using of pointing stick on windows I wrote JKScroller. I missed it on my ubuntu. So here is solution:
1. sudo apt-get install xbindkeys xbindkeys-config xmacro
2. xbindkeys --defaults > ~/.xbindkeysrc
3. edit your xbindkeysrc for your needs. Use xbindkeys-config for easy key binding.

my file looks like this:


"echo 'ButtonPress 4 ButtonRelease 4' | xmacroplay :0"
Mod4 + q | m:0x40 + c:24

"echo 'ButtonPress 5 ButtonRelease 5' | xmacroplay :0"
Mod4 + a | m:0x40 + c:38

"echo 'ButtonPress 2 ButtonRelease 2' | xmacroplay :0"
Mod4 + h | m:0x40 + c:43

"nautilus ~"
Mod4 + e | m:0x40 + c:26



ps. don't forget to put xbindkeys to session

May 25, 2008

Move mysql databases on Ubuntu

Вот тут рабочий рецепт.

May 12, 2008

AnjLab.SyncIt v0.4.65.92 is out

This release includes:
* many bug fixes
* two way synchronization with 1c and dotProject
* missing libraries added to archive

So feel free to test it yourself. Grab it from here.

copy files to pocket pc from ubuntu through usb

I like to listen Radio-T, to watch RailsCasts and Google Video on my way to work. I use my pocket pc (Glofiish x600) for that.
I didn't find any way to copy files to my pocket pc with default ubuntu utilities. Yesterday I found wm5storage. It turns my phone into a flash drive so ubuntu easily mounts it. Now I don't need to boot in windows to copy new casts.

May 7, 2008

database.yml, mysql and ubuntu

If you don't want to specify 'socket' entry in rails database.yml simply create link for it:


sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock

Now you database.yml may look like this:

defaults: &defaults
adapter: mysql
encoding: utf8
username: user
password: secret
host: localhost

development:
database: somedb
<<: *defaults

test:
database: somedb_test
<<: *defaults

production:
database: somedb_production
<<: *defaults