2009-12-04

Subversion repository part migration

svnadmin dump /srv/svn/old-repo | svndumpfilter include --drop-empty-revs --renumber-revs /directory-name > directory.svndump
svnadmin load /srv/svn/new-repo < directory.svndump
Please note, that if directory structure needs to be changed (for example, from /old-repo/projects/dir to /new-repo/dir) manual edit of dump file will not help. Instead, sed must be combined with svndumpfilter. Additional info regarding this topic can be found here.

2009-12-03

Virtualbox 3.1.x Linux guest dead keyboard fix

After new release of Virtualbox was installed and my virtual machine with OpenSUSE on-board had started, I've ended up with a dead keyboard. It worked fine on Windows XP as host, but OpenSUSE VM was acting like there is no keyboard at all. Couple of minutes of brain activity and finger work I've found that /etc/X11/xorg.conf was replaced during Virtualbox Guest Additions update. Comparing xorg.conf between two latest VB releases, I was able to get the keyboard working. Here is a fix:

1. Restore old xorg.conf :
cp /etc/X11/xorg.conf.bak /etc/X11/xorg.conf
2. Add Option "CoreKeyboard" to InputDevice section of Keyboard[0]
3. Add Option "CorePointer" to InputDevice section of Mouse[1]
4. Add Option "SendCoreEvents" to InputDevice section of Mouse[2]
5. Rename Device option from InputDevice section of Mouse[2] from /dev/vboxadd to /dev/vboxguest

2009-09-17

How to change language in GIMP on Windows

After installing GIMP on my laptop I've found it's language is set according to my regional settings. However, I have failed trying to change it to english because there is no visible configuration option for that. Now that's weird!
After googling for few minutes I've found that this is not a GIMP problem but rather GTK+ for Windows and to force it to use english translation by default you need to add lang environment variable with the value of c.

2009-09-14

Removing MinGW dll dependencies

libgcc_s_dw2-1.dll

Passing -static-libgcc will remove this dependency for all languages other than C.
Note: C++ exceptions depends on this option.

mingwm10.dll

Remove -mthreads option from your makefile.
Note: Multithreading and C++ exceptions depends on this option.

2009-09-09

How to set up library paths for configure

env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure

How to disable system bell in msys

$HOME/.inputrc:
# none, visible or audible
set bell-style none

2009-08-26

How to remove absolute path in svn+ssh

As you may or may not know there is a path difference between svn and svn+ssh links in case if subversion server is configured with default root directory:

/etc/sysconfig/svnserve
SVNSERVE_OPTIONS="-d -R -r /path-to-repos"
This way repository can be checked out using following commands (consider ssh is set up and working):
svn co svn://server.com/repository directory
or
svn co svn+ssh://server.com/path-to-repos/repository directory

2009-08-04

How to ARM Linux

During last few years I've never found a good excessive topic covering most of the areas to get Linux runnnig from scratch. I remember myself doing a lot of investigation about correct building of a crosscompiler, studying bootloader internals, and so on... I'm definitely sure - if I had a person that could point me in right direction, then all the development should finish much earlier.

Consider this article as my personal note and feel free using it your own way.

2009-07-24

Bloody Hinet SPAM

Mail server logs
If one day God will give me his powers for at least a second, I'll burn all the Hinet servers at once!