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,127.0.0.1:7800] MPING: failed sending discovery request (MPING.java, line 346) 
java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at org.jgroups.protocols.MPING.sendMcastDiscoveryRequest(MPING.java:341)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:259)
at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:407)
at java.util.concurrent.Executors$RunnableAdapter.
 
on Ubuntu 9.10 or over operation system  try to run you application with
-Djava.net.preferIPv4Stack=true
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 http://download.eclipse.org/technology/subversive/0.7/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 http://anonsvn.jboss.org/repos/exo-jcr/
  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
Ярлыки: , , , , , ,

Air tickets search system

Monday, September 21, 2009 Автор: Sergey Kabashnyuk 0 коммент.
Ярлыки: ,

Unpack tar.gz

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

To unpack the archive in the form *. tar.gz use the command:

tar xvfz *. tar.gz
Used in the command keys

  • x - allows you to retrieve files from the archive.
  • v - concludes tar detail. This means that the screen will be displayed all found in the archive files. If this option is omitted, the output of the processing will be limited.
  • f - is a mandatory option. Without it, tar tries to use tape instead of the archive file.
  • z - lets you handle archive, compressed gzip (with extension. gz). If you omit this option, tar will report an error. Conversely, this option should not be used for uncompressed files.
Ярлыки:

Opera 10 update on Ubuntu

Tuesday, September 1, 2009 Автор: Sergey Kabashnyuk 0 коммент.
  1. Add source
    deb http://deb.opera.com/opera/ etch non-free
  2. Add key
    wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
  3. (If you get "The following packages cannot be authenticated" warnings, you'll also need this:)
    sudo apt-get install debian-archive-keyring

More links:

OperaBrowser ubuntu wiki

Opera official site

Ярлыки: , , ,

How to upgrade Ubuntu Skype

Monday, August 31, 2009 Автор: Sergey Kabashnyuk 0 коммент.

     Small "how to" to upgrate skype to version "Skype 2.1 Beta for Linux"

  1. Download latest version
    http://www.skype.com/download/skype/linux/choose/
  2. Remove old one
      sudo apt-get remove skype skype-common
  3. Install new one.
Ярлыки: , , ,

Radio Record 10 most played

Sunday, August 16, 2009 Автор: Sergey Kabashnyuk 0 коммент.

10 most played artists on my favorite radio Record for last 5 days

  1. MASE, DARREN
  2. FERRY CORSTEN
  3. PRODIGY
  4. DEVANT, SERGE
  5. GARTNER, WOLFGANG
  6. ПЛАНКА
  7. VAN BUUREN, ARMIN
  8. MORANDI
  9. СНЕЖНО
  10. JACKSON, MICHAEL
Ярлыки:

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

Thursday, July 30, 2009 Автор: Sergey Kabashnyuk 0 коммент.
1. Import exo.jcr.core project into the Eclipse. 2. Open dialog Run -> Debug configurations
Select Project: "Name of the imported project"
Main Class: org.codehaus.classworlds.Launcher
3. Insert Arguments
Program arguments: -Dexo.test.forkMode=never -Dexo.tck.skip=true -Dexo.test.skip=false clean test
VM arguments: -Xmx300m -Dclassworlds.conf="${M2_HOME}/bin/m2.conf" -Dmaven.home="${M2_HOME}"
4. Add classwords jar to the classpath.
5. Add required sources.
6. Run debug
Ярлыки: , , , ,

Installing ANTLR IDE on Eclipse Java EE

Thursday, July 16, 2009 Автор: Sergey Kabashnyuk 0 коммент.
If use Eclipse update mechanism (Eclipse Java EE IDE for Web Developers.  Build id: 20090621-0832) for installing ANTLR IDE and you can't find  any categories you should uncheck "Group items by category" checkbox, everything will be working correctly.
Ярлыки: , , ,

шаблоны проектирования

Tuesday, July 14, 2009 Автор: Sergey Kabashnyuk 0 коммент.
Ярлыки:

Мои rss

Thursday, July 9, 2009 Автор: Sergey Kabashnyuk 0 коммент.
Ярлыки:

Jprofiler 5.2.2 and Java 5 64-bit

Wednesday, July 8, 2009 Автор: Sergey Kabashnyuk 0 коммент.
When I tried to run Jprofiler , I received : exception in thread "main" java.lang.InternalError: libXt loaded before libXm .
Exception in thread "main" java.lang.InternalError: libXt loaded before libXm
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
 .....
Workaround is to change AWT_TOOLKIT. You should add “export AWT_TOOLKIT=XToolkit” to you jprofiler5/bin/jprofiler file.
LD_LIBRARYN32_PATH="$app_home/bin/linux-x86:$LD_LIBRARYN32_PATH"
LD_LIBRARYN64_PATH="$app_home/bin/linux-x86:$LD_LIBRARYN64_PATH"
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
export SHLIB_PATH
export LIBPATH
export LD_LIBRARYN32_PATH
export LD_LIBRARYN64_PATH
export AWT_TOOLKIT=XToolkit
Ярлыки: ,

Контент ориентированное программирование

Monday, July 6, 2009 Автор: Sergey Kabashnyuk 0 коммент.
Ярлыки: , , ,

How to copy one file to another through channel

Sunday, July 5, 2009 Автор: Sergey Kabashnyuk 0 коммент.
This Java tips illustrates a method of copying one file to another file through channel. A channel is created both on source as well as destination and then the file is copied between those two channels.
   try {
           // Create channel on the source
           FileChannel srcChannel =
             new FileInputStream("srcFilename").getChannel();
      
           // Create channel on the destination
           FileChannel dstChannel =
             new FileOutputStream("dstFilename").getChannel();
      
           // Copy file contents from source to destination
           dstChannel.transferFrom(srcChannel, 0, srcChannel.size());
                   // Close the channels
         srcChannel.close();
         dstChannel.close();
       } catch (IOException e) {
         //TODO catch exception
       }
Ярлыки: ,

Интересные из варкрафт

Автор: Sergey Kabashnyuk 0 коммент.
  1. wow-europe.com официальный сайт проекта, сайт для регистрации и управлению учетной записью.
  2. Wowhead – справочник по вещем, квестам, талантам, городам и практически всему остальному, с чем можно столкнутся, в мире world of warcraft.
  3. Wowwiki – официальная вики проекта. Содержит немного устаревшую информацию.
  4. Buffed.ru – сайт с последними новостями, слухами, изменениями.
  5. Noob-club –новостной и информационный портал, содержит доступные описания тактик на разные рейдовые инстанции.
  6. Wowarmory – онлайн обзор персонажей, гильдий вещей.
Ярлыки: ,

Интересные ссылки по программированию

Автор: Sergey Kabashnyuk 0 коммент.
  1. Joel on Software - Статьи о бизнесе и управлении программными проектами, включая целое пособие о дизайне пользовательских интерфейсов и юзабилити.
  2. Canadian Mind Products  Справочник всякой всячины. Очень интересный раздел про Java.
  3. Design Pattern -Шаблоны проектирования. С примерами на Design Pattern.
Ярлыки: ,