Featured Post

Passwordless ssh configuration

Simple step-by-step guide to config passwordless ssh access

Saturday, May 10, 2014



Не читается шрифт в режиме Схема документа в Word 2007 или шрифт слишком мелкий. Какое решение?

Для того, чтобы изменить размер шрифта в схеме документа, в вкладке вид устанавливается флажок "схема документа".
Затем, на вкладке "главная", в стили, щелчок по стрелочке, чтобы открылась панель "стили".
на этой панели, щелчок по кнопке "управление стилями" и в диалоговом окне "управление стилями", вкладка "изменения", переместить ползунок до появления строки "схема документа".
Выделить эту строку щелчком мыши и щелчок по кнопке "изменить".
Откроется диалоговое окно "изменение стиля", где можно выставить размер, цвет и вид шрифта.
Установить флажки на: добавить в список экспресс-стилей, обновлять автоматически, и в новых документах использующих этот шаблон.
ОК.
В диалоговом окне "изменение стиля" установить флажок на: в новых документах, использующих этот шаблон.
ОК.
Закрывая документ сохранить изменения, ДА.

Wednesday, April 3, 2013

Eclipse console cyrillic symbols problem


Cyrillic symbols incorrectly displayed in Eclipse console.

Just try this:

  Run, Open run dialog...

 then locate the class where the main method is, then select Arguments tab,
 and write

  -Dfile.encoding=UTF-8

 in VM arguments text field. Then, select Common tab, and for Console
 Encoding select "Other: UTF-8".

 After that, you should be able to see cyrillic characters on the console.

The point here is to set the same encoding in both places.


Original post

Tuesday, July 3, 2012

Subversion checksum mismatch - easiest workaround

Problem description

You get the following svn error during file commit:
svn: Checksum mismatch for 'C:\myproject\myfile.txt' expected: 'qwerty', actual 'asdfgh'

Workaround

Go to directory C:\myproject
Open folder .svn and find entries file there.
Open entries file in some editor and change qwerty to asdfgh.
Save entries file.
Commit C:\myproject\myfile.txt file.

Used soft

I used Far2 for all edit and save file operations, and Eclipse for SVN operations.

Sunday, December 4, 2011

Italic Font in Google Chrome

Solution for the Italic Font in Google Chrome Issue.
  1. Download the Arial.exe file from Microsoft Core Web Fonts;
  2. Run Arial.exe;
  3. Restart Google Chrome.

Wednesday, November 30, 2011

JAVA2EVERYONE: Wait user input in java

JAVA2EVERYONE: Wait user input in java: Complete source code below will show you, how to wait for user input in command prompt . Input is a line of text.

Short Names of Long Windows Dirs

Helpfull command to determine short names (without spaces) of files with long names in Windows.
In cmd type: dir /x /a

Monday, November 28, 2011

Thursday, November 24, 2011

Scala comments

Just Started to learn Scala - the problem emerges:
After installing scala on my Windows 7 OS in C:\Program Files(x86)\scala folder, I tried to type scala in cmd.
The result:
C:\Users\Timur>scala 
\scala was unexpected at this time. 
C:\Users\Timur>
How to fix: just change env var SCALA_HOME value from "C:\Program Files(x86)\scala" to "c:\progra~2\scala".
If you have java installed somewhere in "C:\Program Files(x86)\Java" you'll also need to change it to "c:\progra~2\Java".
Solution was found here.

Single Java Crossplatform Installer

Recently found this epic tool...
IzPack
Must learn it immediately.

Wednesday, June 15, 2011

Code Formatting in Blog

Example of code formatting in blog with google-code-prettify.

/*
 * HelloWorld.java
 */

package hello.world;

public class HelloWorld {

    public static void main (String[] args) {

        System.out.println("Hello, World!");
    }
}

And with Alex Gorbatchev's SyntaxHighlighter.

/*
 * HelloWorld.java
 */

package hello.world;

public class HelloWorld {

    public static void main (String[] args) {

        System.out.println("Hello, World!");
    }
}

Useful links