Home
entries friends calendar user info My Website Previous Previous

Advertisement

Bernard Choi
Add to Memories
Tell a Friend
Tried to move from the mssql drivers to jtds today, but failed.

One of our modules require the ResultSetMetaData.getTableName(1) method to return the table name.

Mssqlservers return the tablenames as expected. Jtds returns empty string. It is specified in the Javadocs that this may be the expected behavior.

So now, either I have to find some other way to get the table name, or just stick with the ms drivers.
Add to Memories
Tell a Friend
Add to Memories
Tell a Friend
There's something heartwarming about having a baby fall asleep in your arms.

Precious, precious baby.
Add to Memories
Tell a Friend
Just found out about Jackcess http://jackcess.sourceforge.net/, which is a pure java api for reading and writing MSAccess files. Will be giving it a run thru later.

I've already been accessing MSAccessfiles for some of my older projects, via the JDBC-ODBC bridge.
String url = "jdbc:odbc:MS Access Database;DBQ=" + databaseFilepath;
Connection conn = DriverManager.getConnection(url, "sa", "");
It works alright, but performance has been terrible via this method.
Add to Memories
Tell a Friend
https://sourceforge.net/projects/robocode/

I remember wasting away hours about 2 years back on this game.

It took 2 years, but it's finally open sourced. Pity, I feel that it is not as popular as before when it first started out. The forums are not as busy. Maybe this will make more developers interested again.
Add to Memories
Tell a Friend
I've been facing a problem...

When I try to open a build file with eclipse-SDK-3.1M5a-win32, it crashes. The eclipse window disappears.

.log file is as attached :

!SESSION Sat Mar 19 20:38:01 GMT+08:00 2005 ------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Mar 19, 2005 20:38:01.294
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NoClassDefFoundError
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)


I don't see a problem with eclipse-SDK-3.1M4-win32.

There's nothing special with the build file, as far as I can tell. It works fine when opening up an empty build file. I've asked eclipse to generate a standard ant project template, and then eclipse crashes. I restart eclipse, it seems to be fine. I try to open up that build file and it crashes again.
Add to Memories
Tell a Friend
http://www.43folders.com/2005/03/rules_of_thumb_.html


Keeping Yourself in Shoes - If you switch back and forth among three pairs of shoes, they will last as long as five pairs of shoes worn out one pair at a time.


My immediate question is, why would that be the case ? Does the shoe know it's being alternated ? Do our walking habits change because of it ? I don't think so. Sounds like an urban myth ?
Add to Memories
Tell a Friend
http://www.fnogol.de/archives/2005/01/19/use-static-method-to-initialize-classes-before-super-class-constructor-is-called/

Read the above... thought of the following :

public class SpecialMessage2 extends Message {
  public static SpecialMessage2 newInstance(String name) {
    Calendar cal = Calendar.getInstance();
    cal.roll(Calendar.DAY_OF_YEAR, -1);
    String newName = MessageFormat.format(
      “Yesterday at {0,date}, the message {1} was created", new Object[]{cal, name});
    return new SpecialMessage2("At ” + newName);
  }
}
Add to Memories
Tell a Friend
http://www.debugmode.com/wink/

Wink is a Tutorial and Presentation creation software, primarily aimed at creating tutorials on how to use software (like a tutor for MS-Word/Excel etc). Using Wink you can capture screenshots of your software, use images that you already have, type-in explanations for each step, create a navigation sequence complete with buttons, delays, titles etc and create a highly effective tutorial for your users.
Add to Memories
Tell a Friend
profile
Bernard Choi
User: [info]bchoi
Name: Bernard Choi
Website: My Website
calendar
Back July 2005
12
3456789
10111213141516
17181920212223
24252627282930
31
links
page summary
tags