Archives
In this tutorial we’ll be creating a Java application calling code from a native library. We’ll have a Java application called HelloWorld which will call the function helloFromC from a shared library named “ctest“, using Java Native Interface. First off, we’ll create a file named HelloWorld.java to contain the HelloWorld class. /* HelloWorld.java */ [...]
The fastest library for XML parsing and building in ruby is libxml-ruby. The library does not use the familiar DOM methods, but it’s pretty easy to use. First, install the libxml-ruby gem: gem install libxml-ruby Parsing an XML string: require ‘xml’ xml = ‘<?xml version="1.0"?><root><child attr="value">text</child></root>’ root = XML::Parser.string(xml).parse.root child = root.children.find { |node| [...]
To package your application along with all dependencies in a single JAR file, you can use Ant’s
If you have a Doctrine connection and you want to find out if a transaction was started on that connection, you can use the connection’s getTransactionLevel() method.