Posts Tagged Java

NaggieConverting HTML to PDF Using Java and Qt

Thursday, March 4th, 2010

Here is the code:

import com.trolltech.qt.core.*;
import com.trolltech.qt.gui.*;
import com.trolltech.qt.webkit.*;
class html2pdf extends QWebView
{
private QPrinter printer = new QPrinter();
public html2pdf()
{
loadFinished.connect(this, \”loadDone()\”);
setHtml(\”This is <b>HTML</b>\”);
// Or use load() to convert html page from url to pdf
}
public void loadDone()
{
printer.setPageSize(QPrinter.PageSize.A4);
printer.setOutputFormat(QPrinter.OutputFormat.PdfFormat);
printer.setOutputFileName(\”test.pdf\”);
print(printer);
System.out.println(\”Done\”);
QApplication.exit();
}
public static void main(String args[])
{
QApplication.initialize(args);
html2pdf h2p = new html2pdf();
h2p.show();
QApplication.exec();
}
}

import com.trolltech.qt.core.*;
import com.trolltech.qt.gui.*;
import com.trolltech.qt.webkit.*;
class html2pdf extends QWebView
{
private QPrinter printer = new QPrinter();
public html2pdf()
{
loadFinished.connect(this, \”loadDone()\”);
setHtml(\”This is <b>HTML</b>\”);
// Or use load() to convert html page from url to pdf
}
public void loadDone()
{
printer.setPageSize(QPrinter.PageSize.A4);
printer.setOutputFormat(QPrinter.OutputFormat.PdfFormat);
printer.setOutputFileName(\”test.pdf\”);
print(printer);
System.out.println(\”Done\”);
QApplication.exit();
}
public static void main(String args[])
{
QApplication.initialize(args);
html2pdf h2p = new html2pdf();
h2p.show();
QApplication.exec();
}
}

http://www.all1social.com

http://www.all1martpro.com

Tags: , ,
Posted in Editorial, Purely Technical | No Comments »

NaggieNew Release- MySQL 5.1.44 / 5.5.2 Milestone 2

Wednesday, March 3rd, 2010

MySQL is the World’s Most Popular Open Source Database. It is a widely used and fast SQL database server.

MySQL is a client and server implementation, which consists of a server daemon (mysqld) and many different client programs/libraries. It is a type of SQL database management featured in Thelix hosting plans. A database is an organized collection of information that a computer uses to select and display data.

Databases can help organize and enhance your site content. Sites with dynamic pages and/or shopping cart software often need an underlying database structure.

It is to be pronounced as “my ess cue el” (each letter separately) and not “my SEE kwill.” MySQL is an open source RDBMS that relies on SQL for processing the data in the database. MySQL provides APIs for the languages C, C++, Eiffel, Java, Perl, PHP and Python. In addition, OLE DB and ODBC providers exist for MySQL data connection in the Microsoft environment. A MySQL

NET Native Provider, which allows native MySQL to .NET access without the need for OLE DB, is also available. MySQL is most commonly used for Web applications and for embedded applications and has become a popular alternative to proprietary database systems because of its speed and reliability. MySQL can run on UNIX, Windows and Mac OS.

MySQL is a relational database management system, which means it stores data in separate tables rather than putting all the data in one big area. This adds flexibility, as well as speed.

The SQL part of MySQL stands for “Structured Query Language,” which is the most common language used to access databases. The MySQL database server is the most popular open source database in the world. It is extremely fast and easy to customize, due to its architecture.

Extensive reuse of code within the software, along with a minimalist approach to producing features with lots of functionality, gives MySQL unmatched speed, compactness, stability, and ease of deployment.

Their unique separation of the core server from the storage engine makes it possible to run with very strict control, or with ultra fast disk access, whichever is more appropriate for the situation.

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , , , ,
Posted in Microsoft Technology, New Product Release | No Comments »

NaggieApache Commons Transaction 1.2

Friday, February 26th, 2010

Apache Commons Transaction 1.2 has been updated for download.

Apache Commons Transaction 1.2 is the Java library, which contains implementations for multi level locks, transactional collections and transactional file access

Commons Transaction aims at providing standardized, lightweight, well tested and efficient implementations of utility classes commonly used in transactional Java development.

Apache Commons Transaction thumb Apache Commons Transaction 1.2

Initially there are implementations for multi level locks, transactional collections and transactional file access.

There may be additional implementations when the common need for them becomes obvious, however, the complete component shall remain compatible to JDK1.2 and should have minimal dependencies.

Platform: Windows / Linux / Mac OS / BSD / Solaris

Language: Java

http://get-a-designer.com

http://www.all1sourcetech.com

Tags: , , , , ,
Posted in New Product Release, Purely Technical | No Comments »