вторник, 28 июня 2011 г.

how to set gnome-terminal default size in gnome 3

To set default size for gnome-terminal:

1. run "gconf-editor" command


2. navigate to /desktop/gnome/applications/terminal


3. change "exec" key to "gnome-terminal --geometry=120x30" where 120x30 - your favourite size


4. You can add offset to the window. Example: gnome-terminal --geometry=140x40+60+150

5. enjoy!

как ускорить intellij idea

- Как ускорить Intellij Idea?
- Прописать более агрессивные настройки для виртуальной машины Java + увеличить память + задействовать новый сборщик мусора...

Итак, поехали!

Эти настройки работают только для тех, у кого Idea запускается под JDK 1.6.0_14 или выше

1. Ищем файлик "idea.vmoptions" (в линукс версии он находится в idea/bin)
2. заменяем настройки JVM (не всё содержимое файла, а только -X опции) на:
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-Xms256m
-Xmx640m
-XX:+AggressiveOpts
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
3. радуемся более отзывчивой Idea

понедельник, 27 июня 2011 г.

ускорение эклипс (eclipse speedup)

Описанный ниже рецепт поможет сделать эклипс(даже indigo) более отзывчивым (у меня он стал в разы отзывчивее при большом количестве файлов!), он будет работать на 40% быстрее и даже быстрее запускаться!

Но выигрыш в скорости будет лишь, если ваша машина(компьютер) удовлетворяет таким условиям:
1) У вас должен быть многоядерный процессор(или многопроцессорный компьютер)
2) Вы должны запускать эклипс под Java 6 (jdk1.6.0_14 или выше)

Что надо сделать:
Заменить в файле eclipse.ini (лежит в директории, куда установлен эклипс) содержимое секции "vmargs":
To increase performance of your eclipse, just replace "vmargs" section in "eclipse.ini" file as shown below
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-Xms256m
-Xmx640m
-XX:+AggressiveOpts
-XX:MaxPermSize=256m

это ДЕЙСТВИТЕЛЬНО РАБОТАЕТ!!!

суббота, 25 июня 2011 г.

final workaround for "no sound" bug with fedora 15 linux and audigy 4 soundcard

Please read my previous post about that problem

If you tried my temporary workaround from my previous post, you may notice that after reboot - still no sound. "S/PDIF" was turned on again and you need disable it again using alsamixer.

I have a good news for you! You can still have a sound with enabled SPIDF by default!

How to do that? Follow these steps:
1. do not disable SPDIF (or just reboot, it will enabled again)
2. go to "Sound Settings" in gnome settings and switch to "Hardware" tab
3. choose "Digital stereo ... output" profile (settings was just reverted! I know that you have analog audio!)


4. switch to "Output" tab and select your "Audigy" soundcard


5. check your sound! It should work now!

Fedora 15 and audigy 4 - temporary solution for "no sound" problem

If you have no sound with "Fedora 15" linux and audigy 4 soundcard, read this post.

This time I will provide you a temporary solution. Just to try. Next time I will provide you complete workaround.

This is a known bug: https://bugzilla.redhat.com/show_bug.cgi?id=543693
But workaround exists!

You need to turn off "S/PDIF Optical Raw". It is enabled by default.

For example,
1. run any audio file (to hear changes later)
2. run gnome-terminal or any other terminal window.
3. run "alsamixer" programm


4. press F6 and select your audigy 4 soundcard


5. scroll to "S/PDIF" control and press "M" key on keyboard


You should hear sound. If you did not hear - run "Sound Settings" (for Gnome) then switch to "output" tab and select your Audigy soundcard as default device



P.S. Sorry for my ugly english. I just want to help.