Blog moved

Thursday, June 9, 2011 Автор: Sergey Kabashnyuk 0 коммент.
Blog moved to

Java анотации

Friday, March 26, 2010 Автор: Sergey Kabashnyuk 0 коммент.
JAVA: Подсчёт времени выполнения метода через аннотацию
Ярлыки: ,

How to open RAR (resource archive) file in Midnight Commander

Monday, January 25, 2010 Автор: Sergey Kabashnyuk 3 коммент.
If you want to be able to open rar(resource archive file not WinRAR archive file) files
with Midnight Commander.

# rar
 Open=%cd %p#urar
 View=%view{ascii} rar v -c- %f
# rar
 Open=%cd %p#uzip
 View=%view{ascii} unzip -v %f
in /etc/mc/mc.ext or
Ярлыки: , ,

JGroups on Ubuntu 9.10

Saturday, November 28, 2009 Автор: Sergey Kabashnyuk 1 коммент.
If you have

28.11.2009 21:16:25 *ERROR* [Timer-2,JBoss-Cache-Cluster_db1tck_ws,] MPING: failed sending discovery request (, line 346) Invalid argument
at Method)
at org.jgroups.protocols.MPING.sendMcastDiscoveryRequest(
at org.jgroups.protocols.PING.sendGetMembersRequest(
at org.jgroups.protocols.Discovery$PingSenderTask$
at java.util.concurrent.Executors$RunnableAdapter.
on Ubuntu 9.10 or over operation system  try to run you application with
This happens because  JGroups does work with IPv6.
Ярлыки: , , , ,

Lucene 3.0 is out

Thursday, November 26, 2009 Автор: Sergey Kabashnyuk 2 коммент.
Great news: Lucene 3.0 is out!!

The new version is mostly a cleanup release without any new features. All deprecations targeted to be removed in version 3.0 were removed.

See CHANGES.txt   for details.
Binary and source distributions are available here
Ярлыки: , ,

ANTLR 3.2 is out

Thursday, September 24, 2009 Автор: Sergey Kabashnyuk 0 коммент.

New features

  • Added tree grammar filter=true mode. See Tree pattern matching
  • Added misc.FastQueue and TestFastQueue: A queue that can dequeue and get(i) in O(1) and grow arbitrarily large. A linked list is fast at dequeue but slow at get(i). An array is the reverse. This is O(1) for both operations.
  • Added tree.TreeIterator, a generator that walks a doubly-linked tree. The nodes must know what index they are. It's an Iterator but remove() is not supported. Returns navigation nodes always: UP, DOWN, EOF.
  • Added misc.LookaheadStream: A lookahead queue that knows how to mark/release locations in the buffer for backtracking purposes. I hope to use for both tree nodes and tokens. Just implement nextElement() to say how to get next node or token.

Release Notes

ANTLR Software Download

Ярлыки: ,

My workspace part 1

Wednesday, September 23, 2009 Автор: Sergey Kabashnyuk 0 коммент.
  1. Eclipse installation. Different Eclipse builds for different needs can be found  "Eclipse Downloads". I preferred Eclipse IDE for Java Developers or Eclipse IDE for Java EE Developers. More about difference you can found.  
  2. Unpack you archive
    tar -zxvf eclipse-jee-galileo-linux-gtk.tar.gz
  3. Installation of subversion client for eclipse.  Start Eclipse. Go to the menu Help ->Install new software -> Add ..  Add update site Install Subversive SVN Team Provider.
  4.  After Eclipse restart go the menu Window -> Preferences -> Team -> SVN When you first use the menu, you will be prompted to install connectors. Check SVN Kit 1.2.3.
  5. Now you are ready to use Subversive plugin. Checkout some versioned project. For example
  6. With help maven-eclipse-plugin create eclipse project.
  7. Import new project to eclipse workspace. File->Import->Existing Projects into Workspace.
  8. Set class path variables. Go to the Window -> Preferences -> Java -> Build Path ->  Class path variables. Add new variable M2_REPO  with the value of the path to your maven repository

Links :

  1. How to setup Eclipse debug for eXo JCR core (maven project)

TODO for part 2

  1. Java installation on Ubuntu
  2. Maven installation
Ярлыки: , , , , , ,