Michael Dreese

Ranch Hand
+ Follow
since Apr 02, 2003
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 Michael Dreese

Hi Ken,

I did not get a chance to read Andrew's book so I don't know whether my implementation is similar to his book. I did follow Habibi's book.

Cheers,
Michael

Originally posted by Ken Boyd:
Congratulation!!! must be a relief

Did you implement project similar to Andrew's book?

Thanks

13 years ago
Hi Lucy,

Habibi's book is very good on showing you how to design the GUI. If you get a chance to review it, I will suggest you to take a look at this book. Actually, I did not do much work on GUI part and just make things simple ( ease of use ).

Originally posted by Hummel Lucy:
Hi Michael,

Last week we did not know how to get 40 points for the GUI part.

You could give an answer! You are an example of a person who achieved 40 points for GUI.

Well done!

Br, Lucy

13 years ago
I just passed SJCD and here is my result summary

The maximum possible score is 400; the minimum to pass is 320.
General Considerations (maximum = 100): 98
Documentation (maximum = 70): 69
O-O Design (maximum = 30): 30
GUI (maximum = 40): 40
Locking (maximum = 80): 44
Data store (maximum = 40): 40
Network server (maximum = 40): 40

I feel disappointed that I got 44 for locking. Well, I guess I have to say pass is a pass.

Thanks all ranchers here and Habibi's book is very helpful.


Go Bucks!!

Cheers,
Michael
13 years ago

Originally posted by Tim Adam Cooper:
For the Java Developer exam, the user can select local or network connection.
Is it OK that when the user starts the application, the server will automatically be started by the application or should the user manually start the server?



Hi Tim,
I think we have to consider that the server and the client applications can be installed in different computers (or JVM). Therefore, it is better to separate them to start. Hope that helps.
Cheers,
Michael
Hi,
In Ch. 8, when you run the sampleproject in network mode, you have to specify the hostname and use the following command (p. 327):
> java -Dsampleproject.hostnmae=Bertrand - jar sampleprojec.jar
You can see where you can set the value of sampleproject.hostname from. Hope I have answered your question.
Cheeers,
Michael
[ June 12, 2003: Message edited by: Michael Dreese ]
[ June 12, 2003: Message edited by: Michael Dreese ]
[ June 12, 2003: Message edited by: Michael Dreese ]

Originally posted by Evelyn Cartagena:
Hi All,
Today is June 2 and I'm still sending out vouchers. This is an automated process and I check one by one to make sure you are Programmer Certified to receive a voucher, hence it is a pre-requisite.
Thank you for being patient.
Evelyn


Thanks for your reply, Evelyn
Cheers,
Michael

Originally posted by Kathy Sierra:
Howdy all...
Sun is *still* working on sending out the vouchers, so they are not all out yet. Apparently it is very time-consuming to confirm that everyone has passed the SCJP, and that is what takes so long. There's no automated way to do it
So try to be patient just a little bit longer -- I know it's tough.
Cheers,
Kathy


Kathy,
Can I say that if I don't get my voucher by the 4th, I won't be able to take the beta exam?
Cheers,
Michael
Hi Folks,
I'm just wondering how long it takes to get the voucher if I did the registeration online. I registered last sat. and have started preparing for the beta exam. I hope I can be one of 400 beta exam takers and pass the exam.
Cheers,
Michael
[ May 28, 2003: Message edited by: Michael Dreese ]

Originally posted by net dongxiao:
then I must use DataInputStream and DataOutputStream to access db-1x1.db?
and someone can tell me which class you use to access db-1x1.db?


Hi,
I believe there are several ways to do that. The way I do is that I just use DataInputStream and DataOutputStream for file's header, and RandomAccessFile for reading/writing/updating record(s) in the db file. Hope that helps.
Cheers,
Michael

Originally posted by frank sun:
I also don't have a cookie file, so where can I find the magic number? and how?
best regards!
Frank


You can open your given db file with any hex editor and you can locate the magic number (just follow your data format instruction). Mine is 0x00000202.
Cheers,
Michael

Originally posted by Ta Ri Ki Sun:
my new assignment no longer has a cookie, except for the magic cookie value which identifies the files as a data file, but that has nothing to do with the previously mentioned cookie.
are you sure you're using you're new instructions file?


My DB interface has those cookie for lock/unlock/write methods. My intstruction file hasn't changed since first I downloaded. Did yours change? I hope there is no cookie for those methods.
Cheers,
Michael

Originally posted by shan chen:
the instruction says "at most one program is accessing the database file". So, no dirty read here.


Yep, we don't have to worry about dirty read.
Remember that synchronized method will be treated as an atomic statement.
Cheers,
Michael

Originally posted by shan chen:
The instruction says:
"All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream." It seems to me that it's better to use DataInputStream/DataOutputStream for io. But I did not find any method in DataOutputStream to location a position, which is important for update a record. RandomeAccessFile will be needed instead.
Any suggestion?
Thanks.


I only used DataInputStream for getting all the header information and used RandomAccessFile for update/read/create records. If DataInputStream/DataOutputStream did implement the reset method, I would not have to use RandomAccessFile.
Cheers,
Michael

Originally posted by Werner Joerling:
What I mean is that as long as I only use characters from the 8-bit-US-ASCII charset there is nothing more to do than putting the Strings as byte-arrays to the file. In this case I do not need any conversions betweeen 8- and 16-bit-characters.


The default encoding for String is 16 bits character, so I think you should change this setting for your String object first before you can put it into a byte array.
Cheers,
Michael
[ April 12, 2003: Message edited by: Michael Dreese ]
[ April 12, 2003: Message edited by: Michael Dreese ]

Originally posted by Werner Joerling:
Termination
In my db.db-file the fields are not terminated with a special character. They are simply filled with blanks. Is that another mistake in the db-file? (see the 00/01-flag-discussion)


I think there is no need special character for the termination of each field in the record. I think they just want each record with the same length. Also, null (0x00) is used for filling up unused bytes for each field.


It seems working fine. (Still with special characters beyond the 128 base characters.
Each character becomes one byte in the file. Maybe the instructions want to confuse here. Do I think wrong here?


I don't quite get what you mean here. Would you mind to explain a bit more to me?
Cheers,
Michael