Categories
Muslim matrimonial
International islamic marriage site online

Polling

Getting poll results. Please wait...
You are here > Home > Programming
Results 1 - 5 of total 23 Page 1 of total 5
Results per-page: 5 | 10 | 20 | 50
SQLite JDBC

JDBC driver for SQLite. It comes in two flavours, a 100% Pure Java driver based on NestedVM or a native JNI library. The pure java driver is compatible, you can follow the Java dream and use it anywhere with no worries. The native driver is fast, and I recommend it wherever possible. Binaries are provided for Windows and Mac OS X.

 

import java.sql.*;
 
public class Test {
    public static void main(String[] args) throws Exception {
        Class.forName("org.sqlite.JDBC");
        Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db");
        Statement stat = conn.createStatement();
        stat.executeUpdate("drop table if exists people;");
        stat.executeUpdate("create table people (name, occupation);");
        PreparedStatement prep = conn.prepareStatement(
            "insert into people values (?, ?);");
 
        prep.setString(1, "Gandhi");
        prep.setString(2, "politics");
        prep.addBatch();
        prep.setString(1, "Turing");
        prep.setString(2, "computers");
        prep.addBatch();
        prep.setString(1, "Wittgenstein");
        prep.setString(2, "smartypants");
        prep.addBatch();
 
        conn.setAutoCommit(false);
        prep.executeBatch();
        conn.setAutoCommit(true);
 
        ResultSet rs = stat.executeQuery("select * from people;");
        while (rs.next()) {
            System.out.println("name = " + rs.getString("name"));
            System.out.println("job = " + rs.getString("occupation"));
        }
        rs.close();
        conn.close();
    }
} 

Run with:

java -cp .:sqlitejdbc-v044-native.jar -Djava.library.path=. Test

Posted On: 27 April, 2009 Author: mojtaba Continue...
Pro PHP-GTK (Pro)
Pro PHP-GTK (Pro)

PHP is gaining positive reputation for its system administration and client-side application development capabilities. This administration and development is accomplished using the PHP-GTK extension. You can take advantage of client-side applications by implementing language bindings for the GTK (the GIMP Toolkit) library for creating cross-platform graphical user interfaces.
Pro PHP-GTK acts as both a definitive reference and a hands-on tutorial to the PHP-GTK extension.

Posted On: 27 April, 2009 Author: mojtaba Continue...
Extending and Embedding PHP
Extending and Embedding PHP

In just a few years PHP has rapidly evolved from a small niche language to a powerful web development tool. Now in use on over 14 million Web sites, PHP is more stable and extensible than ever. However, there is no documentation on how to extend PHP; developers seeking to build PHP extensions and increase the performance and functionality of their PHP applications are left to word of mouth and muddling through PHP internals without systematic, helpful guidance.

 

Posted On: 27 April, 2009 Author: mojtaba Continue...
PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide
PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide

It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven Web sites, MySQL and PHP provide a winning open source combination. Add this book to the mix, and there's no limit to the powerful, interactive Web sites that developers can create.

Posted On: 27 April, 2009 Author: mojtaba Continue...
Rails for PHP Developers
Rails for PHP Developers

As a PHP developer, you have some great tools for developing web applications. Ruby on Rails is another key tool to add to your web development toolbox. Rails is a high-level web development framework that emphasizes high productivity and clean code. However, the Ruby language and Rails framework take a different approach from the way many PHP developers write applications.

Posted On: 27 April, 2009 Author: mojtaba Continue...
1 2 3 4 5 Next Page >