Archive for 'Uncategorized'

Open Source Cell phones for Cuba

My new experiment will consist of implementing google Android OS in regular cell phones for just talk and text. The main purpose of this experiment is to help those in Cuba in need of communication. This is just a rough idea and will give more details later on. Stay tune!

Connecting to MySQL using Java

This tutorial will guide you throught the most fundamental steps in connecting to MySQL using Java. The very first thing you should start with is getting the JDBC driver for MySQL.

  1. Go to the MySQL website and download the Java JDBC driver. Link Download the “JDBC Driver for MySQL (Connector/J)”
  2. Create a new Project in Eclipse or Netbeans or anyother IDE that you might be using for Java.
  3. Add the JDBC driver to the library path in your project properties window
  4. Create or use an existing mysql database, with dummie data.
  5. Download this mysql class. MySQLService.java
  6. Create a simple class that initiate the MySQLService class and do a query.
  7. Here is a guide of how to handle the returning value ResultSet of the doQuery

  8. mysql.connect();
    ResultSet result = mysql.doQuery("SELECT * FROM reports_categories");

    while(result.next())
    {
    System.out.println(result.getObject("category_id").toString()+","
    +result.getObject("category_name").toString());
    }
    result.close();
    mysql.close();

  9. The attached jva file MySQLService.java, the function doQuery only accepts SQL SELECT statements for now. I’ll update this article and the java file with other functions that allows for insertion and update of rows.

Playing with Google Web Toolkit

Very cool kit that google has put together. Amazing how you can code in java and achieve ajax type interface and functions and more using GWT. In addition, the client and server communication that offers is inevitable awesome tool to use for server and client data handling. I’m currently playing around with GWT using Eclipse. I’ll make some to time to post a simple tutorial code.

Exceed RC - Eagle 50 (not worth it)

I finally ordered the metal rotor head and some links for my eagle 50. I put everything together and now the heli does not want to lift up. It’s a shame; I wasted my money on this product, it just mean a hassle since the beginning. I will be looking for a replacement in the near future.

MySQL, NaviCat & Dreamhhost SSH

Navicat Lite MySQL is a powerful application that let’s you modify mysql databases in both easy and advance way. The manipulation of stored procedures or functions are a ease in this little application. I needed to connect to my dreamhost server, so follow this website with it’ll come handy someday. Check it out.

http://mysql.navicat.com/SSH-Tunnel-for-MySQL-Server-management/SSH.html

Happy New Year 2008!

To everyone Happy New Year!.

thirdwheeldeal.com goes live

My friend Zachary opened a new website that displays several deals from various sites at one place, thirdwheeldeal.com. Check it out!.