AJ Dussault

Ranch Hand
+ Follow
since May 17, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by AJ Dussault

Would it help if I said I needed this for windows? I can see in windows explorer the Accessed attribute, that is what I need to get from within my Java code....any ideas on how to do that?

Thanks!
16 years ago
Wow....I didn't know you all missed me so much!!
16 years ago
I would guess about three years
16 years ago
Ha! I've been busy. I got my MS in Comp Science, got promoted at work a few times, got two new doggies at home. I don't program too much anymore (being a manager and all ), but occationally I will develop something for a family member. Or if I get really bored at work, I will fix a few bugs.
[ May 12, 2004: Message edited by: AJ Dussault ]
16 years ago
WOW! JavaRanch has over 71,000 members already!!! My number is 1086. I've got to visit more often....
16 years ago
Can someone point me in the right direction here? I can see in the File object that I can easily get lastModified time. Is there any way I can also see information on the lastAccess time?? I don't want (or need) to purchase something, just a push in the right direction would be very helpful!
Thanks in advance,
Amanda
16 years ago
I can print from my application to any laser printer just fine. I cannot, however, print the same document to a line printer - I get all sorts of garbage - illegible printing, double printing (parts of a line are printed over by other text), etc. Is it because java prints graphically and therefore my line printer can't handle it? Do I need a new driver for my line printer? I searched thru the Java site and really didn't find any good information. Any help will be appreciated - THANKS!
18 years ago
Thanks Eric! I will check it out.
19 years ago
ok - count me in (Med would be good)
19 years ago
Hey Gang!
Well, I never did get my project to work on my palm. However I did learn a few things that don't seem to be documented anywhere. If someone with more experience with Java and programming for the palm can comment on my findings, I will truely appreciate it.
1. Using the KVM/Palm Emulator to create databases on your pc doesn't seem to work exactly as documented. First of all, a database file does not get created. This wonderful little file has all sorts of interesting information about your database, like it's name, type, creator, NUMBEROFRECORDS (see a previous post), locationblocks (which contain locationID, uniqueID, and attributes about each of the records), etc.

2. Because this file doesn't exist, (remember this is on your pc) any other program that you write that creates its own database, will write all over your previous database. (what a mess) It doesn't matter that the database name and creatorID are different, since there is no database file.....
3. Database records do get created. They all get created with names like Database_0, Database_1, Database_2, etc. However, addRecord(data) will forever add record Database_65256 (last record in database) and not to the next available spot as I would have expected.(Remember, this is running on your pc.) deleteRecord(int) will delete a record. It is documented to work by tagging the record as deleted and 'moving' it to the end of the database to be used later to sync. On your pc - the record is just gone.
I am seriously thinking about extending this project for my master's thesis. However the Java API for Palm Database programming seems very limited to me with very little documentation concerning differences between running on a pc and a device.
I found a blurb on a palm users group that 3Com/Palm will not guarantee a program will work on their OS unless it is written using CodeWarrior. Anyone know anything about this?
....where ARE my C books?.....
Yes, I am going to redo this using C. The API is much broader and there is much more documentation out in the world about this.
I find it really hard to believe that there is no one on this site that hasn't run into this issue. If anyone has any information at all about this topic, even if it's another question, by all means ask. I would rather program this in my native 'language' (java) than try to think back to my c days...and this discussion would make a good starting point for my research!
Thanks,
AJ
PS. If I continue talking to myself, you'll start to think I am crazy.
[This message has been edited by AJ Dussault (edited March 09, 2001).]
19 years ago
Well, after some time well spent in front of my computer last night, I found out some interesting things about my little project.
1) db.addRecord(byte[]) does add a record - to the LAST element in the database. A file gets created that looks like database_65255.
2) any time a new call to addRecord is done, it seems, that the previously added record gets over written.
3) getNumberofRecords doesn't seem to work either - I ALWAYS get -1.
So, my next step was to play with this database_65255 file for a while. Like I said, everytime I did a db.addRecord(byte[]), this particular file got overwritten. Hmmmm, if that is always the LAST element, can I use setRecord(int row, byte[] data) to populate the database from the begining?? (Since, looking at the source, addRecord simply called setRecord with ENDOFDATABASE set as the row.) Sure enough, that worked fine. But I noticed a strange thing - for every unique row I added, I got a Database_x file created in my directory. Strange, I would have expected only ONE file that contains ALL of my data, not a file that contained one row each!
Everything else seemed to work - I can update specific rows, sift thru and find matching rows with a specified user input - but I still have all of these little files floating around out there - seems very messy to me.
One more thing - I tried to port my application to POSE and got a KVM error...UGH!
If anyone can give some insight at to how these palm databases are supposed to work with Java - I would REALLY appreciate it.
AJ
19 years ago
Hi all!
I am writing a small program that creates a database, deletes, updates, adds, etc. I can create the database because I can see the file that gets created (something like Dababase_65xxx).
I try to add items to the database (right now I am adding records like {1,1,1,1} or {2,2,2,2} ). I don't get any errors when I do this, however when I try to get the number of records in the database, I am always getting -1.
I am reading Eric's book, and the two pages that describe how to do this seem pretty straight forward - yet it still looks like I have missed something.
Any thoughts??
aj
19 years ago
Well, I figured it out. Who knew that you had to compile the Sun classes?
oh, Gautham Kasinath, you can get the tutorial at:
http://developer.java.sun.com/developer/technicalArticles/wireless/palm/
19 years ago
OK - I installed the emulator, installed the KVM on my palm, followed the tutorial on the sun site to make a program and compile it - IT WON'T COMPILE! I am just about out of my mind. I am getting:
Fatal Error: Unable to locate package java.lang in classpath or bootclasspath
jdk1.3 is in my classpath. Is it looking for java.lang within my j2me_cldc directory or my jdk1.3 directory? j2me_cldc\bin\api\classes\java\lang is empty, is there another step that I am missing here?
I have been struggling with this for two days now - time to ask for help..
AJ
19 years ago
I have a client that is interested in embedding MS Word into a java application. Then save that document into their database. What I am looking for is tutorials, how-tos, pros/cons. Can someone point me in the right direction? I am simply in the information gathering stage.
Please don't tell me I am insane, I already know that. I need to present this information to my client and let them decide where to go from there.
thanks
AJ
19 years ago