Mar
18
commentary on life, technology and everything between
Mar
18
I just installed a new plugin for wordpress called twitter tools that integrates twitter with wordpress. I just wanted to take it for a test drive. Does anyone else use twitter with their blog?
Mar
6
The past few days I have been consumed with trying to figure out how Derby works. Derby is Java’s DBMS coded entirely in Java. I want to use Derby as part of the deliciousBlogger project to manage profile and scheduling information.
Derby has some very cool features if you are developing with Java. You are able to start it up as an embedded or server database. The embedded mode means you dont need a separate process to be running for the database system. It will run in the same space as the JVM. From what I have figured out you can pretty much do all the basic functions as other database servers though not always the same way. It does support core SQL commands to keep it standard.
I finally figured out how to start up the database in embedded mode (or at least i think it is); create a table; insert a few items; then query the table and print out the results.
package model;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.derby.drda.NetworkServerControl;
import java.net.InetAddress;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;/**
*
* @author leadiv
*/
public class testing {
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
NetworkServerControl server;
Connection conn;try {
server = new NetworkServerControl(InetAddress.getByName(“localhost”), 1527);
server.start(null);System.out.println(server.getSysinfo());
String nsURL=”jdbc:derby://localhost:1527/testing;create=true”;
java.util.Properties props = new java.util.Properties();
props.setProperty(“user”,”dbo1337″);
props.setProperty(“password”,”fnpbz”);/*
If you are running on JDK 6 or higher, you do not
need to invoke Class.forName(). In that environment, the
ClientDriver loads automatically.
*/
Class.forName(“org.apache.derby.jdbc.ClientDriver”);
conn = DriverManager.getConnection(nsURL, props);/*interact with Derby*/
Statement s = conn.createStatement();
s.execute(“create table \”MYTABLE\” (\”ID\” INTEGER not null primary key, \”NAME\” VARCHAR(50))”);
s.execute(“insert into mytable values(1, ‘Paul’)”);
s.execute(“insert into mytable values(2, ‘Ashley’)”);ResultSet rs = s.executeQuery(“select NAME from MYTABLE”);
while (rs.next()) {
System.out.println(“Name: ” + rs.getString(1));
}rs.close();
s.close();
conn.close();
server.shutdown();} catch(Exception ex) {
Logger.getLogger(ProfileSQL.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
}
}
Here are some links talking about Derby: Java Databasing with Derby, Derby’s Documentation
Feb
27
While reading xkcd.com I found an illusion to simple.wikipedia.org. Its just like wikipedia but it is put in simple sentences. So the next time you read an article in wikipedia and don’t have a clue as to what you just read then head on over to simple.wikipedia.org and see if you can find a simpler explaination.
Jan
20
I have been working on a project recently to allow bloggers a way to post delicious links on their blogspot blog as a post automaticly. This first version will not be to useful for those who only use Google’s Blogger site or do not have access to a server with php. It is more of trying to understand what the process looks like in living breathing code. This will be a simpified prototype that is usable by anyone that has access to a server with php and cronjobs.
Today I just started on the script to access Google’s Blogger API. It seems to be so far much easier then working with Delicious either that or I have gotten better at reading and working with APIs.
Comment if you have any questions, concerns or ideas for this project.
Jan
18
PETA has decided to re-brand fish as “sea kittens” in hopes that this will deter people from eating fish. I don’t this will be an effective campaign. Anyone with a little common sense will be able to “sea” right through this weak attempt to convince people that we should not eat meat. Really if you can’t convince people on the basis of your logic you might want to rethink your reasoning. Given the picture of a kitten and a fish anyone will be able to clearly see that kitties are cute and well fish are not so much. This is why we have Lolcats and not Lolfish. Trying to redefine terms to subtlety trick people into your way of believing something is a little underhanded at best, at worst it is downright Orwellian (remember newspeak in Nineteen Eighty-Four?). As Shakespeare put it so eloquently
” What’s in a name? that which we call a rose by any other name would smell as sweet;” [full context]
– Shakespeare’s Romeo and Juliet, 1594
Yes a fish stick by anyother name tastes just as good to me. Sorry PETA I am not so easliy convinced.

Photo by johnnyberg (www.sxc.hu/photo/1132483)/pale (www.sxc.hu/photo/1133808)
Hat-tip: CNN
Dec
31
Mircosoft recently applied for a patent on metered computing. Basically a computer is just about given to you for free but as you use programs and the types of programs you use you will be charged per time unit. Programs requiring more resources cost more per unit.
I can see how some consumers may find this an attractive solution. Especially those who do not use the computer often or use it for one specific use. I have a feeling that this will be less of an ideal solution for the consumers who depend on technology on a daily basis. Consumers like the idea of having the freedom of doing with their computer and programs what they want whenever they want. The approach that Mircosoft is proposing feels a lot like the consumer is being nickel-and-dime. This also raises the question of how locked down the computer will be. Would you be able to install other programs such as open source software or would you be limited to the “packaged software bundles” that you have bought. How much control will you really have? As a developer I like being able to tinker with my computer to see what can really be done.
There seems to be enough options on the market for cheap computers that would make sense to users that only use lite computing instead of going with a pay-as-you-go model.
Overall this seems like a bad deal for the consumer. In the longer run you will lose more money using your computer then you would in owning the computer. I would rather have a less then ideal computer in performance, then a computer that I have to pay for everytime I use. I just don’t see how Mircosoft will be able to convince consumers to swtich from owning their own computer to paying for everything you do on your computer.
Dec
30
2008 has come and gone and I am contemplating all that has changed in this year. I don’t think it has been a watershed year but another good year none the less. Either way it is always a good idea to pause for a moment to look back on your footprints through the year. Here are some highlights:
* Meet with a Money Map Coach
* Hung out with Isaac in Atlanta
* Turned 26
* Paid off the Corolla
* Camped everywhere in Georgia (Ft Mt, Magnolia, Savannah, Ft McAllister, Ft Pulaski, General Coffee)
* Lost a baby in the womb ![]()
* Celebrated 2 wonderful years of marriage
* Held Gerig Reunion 2008 at Brown State Park
* Joined a d-group
* Helped launch CNNhealth.com
* Had my identity stolen
* Sold the Intrepid
Dec
27
It has been way too long since I have posted. I had ment to make a few more Christmas-ish changes to my site before Christmas but have been so busy going to parties and shopping that I ran out of time. Then dealing with some one stealing my personal identity at the same time has not helped the holidays go smoothly. But I look foward to a new year. I got the book “How to make things talk” for Christmas which I am excited about. Hopefully soon I will have the expertise to at least make some small robots. I can’t wait to get home and start on some of the projects in the book.
2008 has been a good year and I expect 2009 to be even better!