Featured Post

Passwordless ssh configuration

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

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

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