Archive for February, 2009

Java XMPP Client Library »

Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java library, it can be embedded into your applications to create anything from a full XMPP client to simple XMPP integrations such as sending notification messages and presence-enabling devices.

Firefox Plugin: Life of Request Info »

lori can tell you how long it takes to load a page. Useful for web developers who are working on profiling, optimizing a web site, also highly recommend Georgia SEO Explosion, LLC company where you can get assistance dealing with web sites.

Running JMeter in Background »

=>jmeter –help To run Apache JMeter in GUI mode:Double-click on the ApacheJMeter.jar file.If this doesn’t work, open a command prompt and type: java -jar ApacheJMeter.jar [-p property-file] ————————————————– To run Apache JMeter in NON_GUI mode:Open a command prompt (or Unix shell) and type: java -jar ApacheJMeter.jar -n -t test-file [-p property-file] [-l log-file] or use […]

Java Core Dump File Analysis »

Here are various tools to analyze core dump file under different platforms. Solaris – dbx or gdb Linux – gdb HP-UX – gdb or adb AIX – gdb Windows – Dr. Watson or WinDbg or use pstack or pmap Read more details here. Reference http://stackoverflow.com/questions/114236/solaris-core-dump-analysis http://cuddletech.com/blog/pivot/entry.php?id=965 http://www.sun.com/bigadmin/features/articles/java_se6_observability.jsp http://www.alphaworks.ibm.com/tech/jca  http://docs.hp.com/en/5992-1918/ch04.html http://blogs.msdn.com/tess/

Binary Core File Analysis »

Note from BEA website, which is no longer available Gathering Core information from: SOLARIS Do file <full path>/core to verify if the core file is from the Java VM. Get a stack trace using dbx or gdb as follows. With gdb you may get more useful information. Sun Support recommends the use of dbx(1) for […]

Java: Use ConcurrentHashmap for Custom Caching »

Here is a good article to tell the different between different Map implementation. Java theory and practice: Concurrent collections classes Quoted The ConcurrentHashMap class from util.concurrent (which will also appear in the java.util.concurrent package in JDK 1.5) is a thread-safe implementation of Map that offers far better concurrency than synchronizedMap. Multiple reads can almost always […]

PHP Library for XPath Query »

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library. E.g. // pq(); is using selected document as default phpQuery::selectDocument($doc); // documents are selected when created or by above method // query all unordered lists in last selected document pq(‘ul’)->insertAfter(‘div’);   / 1st way print phpQuery::getDocument($doc->getDocumentID()); // […]

Java Application Time Sync Problem »

JVM is default to calculate the current system date time using the number CPU ticks when it is started. This may be a problem if you operating system is time synched. You may notice the JVM time is different from the OS time. See below http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1234755920347+28353475&threadId=997540 http://www.javakb.com/Uwe/Forum.aspx/java-programmer/8471/HP-UX-Java-1-3-1-02-date-time-differences One solution is to use -XX:+UseGetTimeOfDay but it […]

Oracle TEMP Tablespace Full When Query Returning Large Results »

This is a problem I encountered with Oracle 10g. I have a connection pool defined, and when I used the connection pool to retrieve large number of records from a table repeatedly, eventually TEMP tablespace is full. The space is never released until I terminate the Java program. While reading the Oracle documentation on memory […]

.NET String Enumeration »

Normally you cannot use string in enum. However you can bypass using a trick, as shown below. /// <summary> /// Response expected from the gateway /// </summary> public enum Response { /// <summary> /// No respons expected, just return the result /// </summary> [StringValue(“NONE”)] None, /// <summary> /// Error response /// </summary> [StringValue(“ERROR”)] Error, /// […]

GOM Media Player »

GOM Media Player Features Codec Finder GOM Player includes many codecs (XviD, DivX, FLV1, AC3, OGG, MP4, H263 and more) so you won’t need to install separate codecs for most videos. For those videos that require a separate codec, GOM Player will find one and direct you to a place where you can download an […]

Free Hex Editor »

frhed (FRee Hex EDitor)Windows Hackman Hex EditorWindows Freeware Hex Editor XVI32Windows HHD Hex EditorWindows HemeUnix Shed (Simple Hex Editor)Unix BIEW (Binary vIEW)DOS, Windows, OS/2, Linux DataWorkshopWindows, Linux, MacOS HexStarWindows HackWindows Catch22 Hex EditWindows HexEditWindows

Java Engine for Processing XML and Non XML Data »

Smooks is a Java Framework/Engine for processing XML and non XML data (CSV, EDI, Java, JSON etc). Transformation Perform a wide range of Data Transforms.  Supports many different Source and Result types – XML/CSV/EDI/Java/JSON to XML/CSV/EDI/Java/JSON. Java Binding Bind into a Java Object Model from any data source (CSV, EDI, XML, Java, JSON etc). Huge […]

Windows: Gather Device Information »

CPU-Z is a freeware that gathers information on some of the main devices of your system. CPU Name and number. Core stepping and process. Package. Core voltage. Internal and external clocks, clock multiplier. Supported instructions sets. Cache information. Mainboard Vendor, model and revision. BIOS model and date. Chipset (northbridge and southbridge) and sensor. Graphic interface. […]

Free EBook: The Art of Unix Programming »

A good book for Unix programming http://catb.org/~esr/writings/taoup/html/

Java Simplified Encryption »

Jasypt is a java library which allows the developer to add basic encryption capabilities to his/her projects with minimum effort, and without the need of having deep knowledge on how cryptography works. High-security, standards-based encryption techniques, both for unidirectional and bidirectional encryption. Encrypt passwords, texts, numbers, binaries… Transparent integration with Hibernate. Suitable for integration into […]

Java: Useful Common Library »

JCommon is a collection of useful classes used by JFreeChart, JFreeReport and other projects. The library contains the common classes, which provide some global utility functionality for both GUI and non-GUI applications. Inside the library you’ll find: configuration and dependency management code a general logging framework text utilities user interface classes for displaying information about […]

Gnome Office Spreadsheet »

The Gnumeric spreadsheet is part of the GNOME desktop environment: a project to create a free, user friendly desktop environment. The goal of Gnumeric is to be the best possible spreadsheet. We are not attempting to clone existing applications. However, Gnumeric can read files saved with other spreadsheets and we offer a customizable feel that […]

Java: Useful GUI Components »

Swing has lot of components built-in but still some are missing. L2FProd provides the developer community with these missing components, components inspired (copied?!) from modern user interfaces. It includes a PropertySheet component, Outlook style toolbar, etc..

Java Calendar Component »

NachoCalendar is a flexible Calendar component to the Java Platform.