Thursday, July 17, 2014

Java Swing

1. Better works with NetBeans. You get Swing project wizard.
2. Add to your project (editable in designer) another Swing window.
http://www.java2s.com/Tutorial/Java/0240__Swing/DisplayaJFrameinstance.htm
3. Added window has run static main() method needed for starting Java application so you can safely delete initial file created by project wizard. Since it can't be edited by designer.

Sunday, July 13, 2014

среди прочего о гуманитарных возможностях компьютеров

  Кот и малютки
  Здравствуй, здравствуй, кот Василий,
  Как идут у вас дела?
  Дети козлика спросили...
  Зарыдала камбала.

  И малюткам кот ответил,
  Потрясая бородой:
  - Отправляйтесь в школу, дети!..
  Окунь плачет под водой.
  Сотворил АТИЛЛА

HBase scripting

Run from command prompt:

%HBASE_HOME%\bin\hbase shell <shell_script_path>.

 script may content HBase shell commands.
1. Unfortunately shell is loaded very slow.
2. Running scripts from from already running shell you can type
  load "<script_path>".
 Since HBase shell is actually Ruby shell with HBase commands added this command runs script given.
3. Shell UI tool?
4. How to get help for particular command?
   help "get"
for example
5. How to clear screen?
   system('cls') doesn't work :-(.
 But system('dir') does :-)
6. How to redirect  output to file?