Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Peter Yunguang Qiu

Ranch Hand
+ Follow
since Nov 22, 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 Peter Yunguang Qiu

I found many problems when running WSAD with 800*600 screen resolution, some buttons or fields don't show. How to solve this problem? Is it a bug of WSAD? Anyone can give me some help or hints?

Thanks.
16 years ago
I don't think using constants interface is a bad ood.

See sun's java API: interface "javax.swing.WindowConstants".

Sun's API is generally considered good ood, isn't it?

What is good ood? I think the key point of OO is that with the OO principle, it is easier to break a job into several reusable, self-contained pieces. This makes programs easy to code and debug, easy to understand and maintain. As long as your code is based on this principle, it should be considered good ood.

any comments?
[ June 05, 2004: Message edited by: Peter Yunguang Qiu ]
I took essay test on May 5 and saw may score today(June 2).
Many forumer gave me a lot of help. Tanks all of you who helped me. Without your

help, I would not have passed the exam or would take much longer time to pass. Please

forgive me for not mentioning your names.

Also, thanks for Max's excellent book. The contents of the book is "to the point".

It is the only SCJD book that I have found "to the point".

Java Ranch is a great ranch!
Java Ranchers are great ranchers!
SCJD Forumers are great great forumers!

("forumer" does not exist in a dictionary? It might be in dictionary in the future and "Java Ranch" might be in dictionary too.)
16 years ago
Hi, Philippe: Thank you.
Hi, Min Huang( or Huang Min, 黄敏 :
From you name, I can guess you are a Chinese, but there is no clue for me to know you are from Taiwan or China just by name. I am from main land of China. I hava some relatives(My father's relatives) in Taiwan but I've never seen them. Nice to meet you here.
Thanks Jacques, Marcel and Mark. All of your comments are helpful to me.
[ April 20, 2004: Message edited by: Peter Yunguang Qiu ]
Thanks Phil and Andew.

It means that a room is only available for booking between now and now + 2 days.

Is this the rule the can let us get full credit on the 48 hr issue? If it is, I will follow it.
Hi, Min Huang,
Thank you.

I just want to add that while Andrew's logic is correct, a fellow rancher, Terry Martinson, was penalized for allowing booking to take place AFTER the date of availability has passed (although he subsequently appealed and won). In my opinion, it's not worth the hassle and it's better to simply assume that the only timeframe where a room is bookable is 48 hours before it's available. In the example above that would be between 2003/04/23-2003/04/25.

Yes, your opinion is the best choice. We just want to receive full cridit on the 48 hr issue. We don't need to care about how bad the business rule is, or if this Bird Hotel would go bankrupt because most of the rooms in it are not bookable and keep empty.
48 -- a simple number for pupils but gave some rancher(including me) hard time and some rancher even failed the exam.
By the way, are you From Asia? Where are you

2. Ctrl-C is OK for closing the server. Some of us created Server GUIs, but that is not a requirement for closing the server. However, you still need to have code to lock all the records if "-1" is passed to the lock method.

I am thinking of shutting down the server properly, but haven't got a good idea yet.
Locking all the records seems to be a good idea, but it seems too completed and I don't know how to do it properly. Are there any other symple way to shutdown server?
Mark or others, could you give me some help?

2. Ctrl-C is OK for closing the server. Some of us created Server GUIs, but that is not a requirement for closing the server. However, you still need to have code to lock all the records if "-1" is passed to the lock method.

I am thinking of shutting down the server properly, but haven't got a good idea yet.
Locking all the records seems to be a good idea, but it seems too completed and I don't know how to do it properly. Are there any other symple way to shutdown server?
Mark or others, could you give me some help?
Thank you very much Philippe and Andrew.
My understanding is: the date available is not the date that customer want to occupy it. Therefore, it is not the date customer start to pay for it. For example, a room's available date is 2003/04/25, I book it on 2004/04/17 but I wnat to occupy it on 2004/04/19. I will pay for it on and after 2004/04/19.
The room has been empty since 2003/04/25. If the customer cannot book this room, the room will be empty forever?
By the common sense(or from common business perspective), the reservation of hotel room should hava a field for date the customer plan to occupy it. 48 hrs rule should mean: the customer book the room on 2004/04/17, he can book rooms that available date are on or before 2004/04/19, and he can occupy the room on 2004/04/17, 2004/04/18, 2004/04/19 and starting to pay for the room on the day he occupy it.
Am I wrong? Any comments?

quote from Terry's posting:
The application allows bookings for any room an any time with no date checking. It even allows users to book rooms for dates in the past."

I am confused. If a room's available date is last year(say 2003/04/25), and now(2004/04/17) the room is empty(No owner), a customer can NOT book this room right now?
My understanding is:
today is 2004/04/17, any rooms that date on 2004/04/19 or before is available for booking, as long as it is empty(NO owner).
According to the assignment specification, what date ranges are OK for booking today(2004/04/17)?
The db file doesn't have a field of "date starting occupancy"(the date customer needs the room).
I am totally confused.
Anyone can give me some explanation? Thanks.
Hi Terry,
Congrads!
I guess the grader who failed you got dranked the day he/she marked your assignment. He/she should be fired by Sun.
16 years ago

The application allows bookings for any room an any time with no date checking. It even allows users to book rooms for dates in the past."

I am confused. If a room's available date is last year(say 2003/04/25), and now(2004/04/17) the room is empty(No owner), a customer can NOT book this room right now?
My understanding is:
today is 2004/04/17, any rooms that date on 2004/04/19 or before is available for booking, as long as it is empty(NO owner).
According to the assignment specification, what date ranges are OK for booking today(2004/04/17)?
The db file doesn't have a field of "date starting occupancy"(the date I need the room).
I am totally confused.
Anyone can give me some explanation? Thanks.
I plan to take exam recently.
Where do you live in Canada?
Peter
416-588-0830
peterq2001@hotmail.com