Be Open Source
Posts tagged java
Closure in Java: fast and nice!
Feb 26th
I have decided to re-cook this subject, adding a my specialized Example also.
Let’s start!
Clojure Review
Feb 6th
Book review by Stefano Fago: This book introduce one of most interesting language of new wave of functional programming. You will find a complete overview of clojure language focusing in functional paradigm that can be the real obstacle for a standard developer. The author try to follow you on learning different subject with a lot of examples but sometimes it need more reflection and time to master some arguments and a syntax that may seems obscure. The book is a good starting point to introduce you to a new More >
Mastering clusters of Unix machines part2: the right tools
Oct 12th
After working with unix for years, we noticed it is difficult to get a very uniform approach to unix management.
Often different Linux distributions share very little, configuration is different every time. Worst, some good unix tools (like cron, syslog, etc) can be used in a distributed environment, but are very difficult to configure, very user unfriendly and so on.
OpenPKG is a very clever stuff, because enable you to install multiple copies of the same software with minimal effort.
CFEngine is “an automated suite of programs for configuring and maintaining Unix-like computers.”
One of the strong ideas, is the cfengine ability to “self-repair” configuration, which More >
Apache Rampart
Sep 30th
Welcome to Apache Rampart
Rampart is the security module of Axis2. It secures SOAP messages according to specifications in the WS-Security stack.
via Apache Rampart .
Erlang Book Review
Jul 19th
After reading an interesting article on Erlang and Java interoperability, I have decided to dedicate my spare time to Erlang.
O’Reilly has just published a wonderful book on Erlang, so I decided to dive into it.
Jython 2.5rc4 has been released
Jun 25th
Released on June 8, 2009 Jython 2.5RC4 is out!
We have followed Jython in the past months, and it seems promising looking at the jython newsletter.
Evolving concurrency, like memory management did
Jun 11th
As processors become faster and multiprocessor systems become cheaper, the need to take advantage of multithreading in order to achieve full hardware resource utilization only increases the importance of being able to incorporate concurrency in a wide variety of application categories.
In this article we are evaluting a new approach to the concurrency. In the last five years computers are becoming even more parallel. Intel is pushing multi-core achiteture also on commodity personal computers. Neverless the computing power is ofter not well used: one again, hardware is a step head of our day-by-day software development. Remember when the 80286 came into More >
WinRun4J
Jun 10th
WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:
* Uses an INI file for specifying classpath, main class, vm args, program args.
* Custom executable name that appears in task manager.
* Additional JVM args for more flexible memory use.
* Built-in icon replacer for custom icon.
* Pre-JVM splash screen with auto-hide.
* DDE implementation for file assocations.
* Windows NT Service wrapper.
* Windows EventLog API
* Console version
* JNI library for INI access, splash screen, logger, registry, shell.
* Support for 64-bit JVM.
* Supports embedding (inside the executable) the INI file. See Embedded Resources section below.
* Supports More >
Java HttpClient and Load Balancer bad interactions
May 21st
Working for a very big customer, I found a very nasty interaction between Sun HttpClient (JDK 1.4) and Http Load Balancers.
In a complex network environment, sometimes you can experience low level TCP/IP comunication errors, because sometimes HttpClient get confused and hangs.
The bad behavior of Sun HttpClient is well known: some guys suggested me to use the Axis Web Client. Anyway you can solve the issue adding these three parameters to the JVM launch line
-Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=5000 -Dhttp.keepAlive=false
The first two parameters set globally the socket timeout to 5 seconds. The last parameter forces the JVM to avoid reusing http connections when doing More >
Changing Eclipse JVM
May 20th
Sometimes Eclipse Ganymede will not run if it is unable to find a jdk 1.5 or greater.
Sometimes Eclipse Ganymede hangs abruptly if you delete the jdk it was using and if you have set only a JDK 1.4 on your path (Eclipse needs a jdk 1.5 or greater…).
The solution is firing a command line and typing something like
./eclipse -vm c:/Programmi/Java/jdk1.6.0_13/bin
See also:
If available under the eclipse/jre directory, the Eclipse JRE will be used; otherwise the launcher will consult the system path variable. Eclipse will NOT consult the JAVA_HOME environment variable.
To explicitly specify a JVM of your choice, you can use the More >
Comments / Commenti