Wednesday, May 4, 2011
Friday, November 13, 2009
Monday, August 3, 2009
Phase 4: Rough Plan
The goal of phase 4 is to show other users with similar interest who are also online.
- I need to retrive the list of users with similar interest
- Then, check to see if they are online - this has to do with session tracking
Labels:
documentation,
IAT352,
project
Saturday, August 1, 2009
ToDo List August
- Prob 1. display reviews user submitted.
- Prob 2. add "Review for Game title" to review page.
- Prob 3. add a section to metadata page that display games in same category.
- Prob 4. apply alternating style to li
- Prob 5. User Profile page display problem in firefox (works in IE & Safari)
- Prob 6. work on Phase 4!
Labels:
documentation,
IAT352,
project
User Exception Error
Right now, if a user click on the user profile the first time, he will see an error message instead, since there isn't any information about this user in the database yet. I need to make it redirect to add user interface in this case. It took me a little while to think of using catch(Exception):
if (action.equals("view")){
try{
output = user.getUser(username);
md.searchGameByUserid(output, username);
md.searchAllFavorite(output, username);
user.searchSimilarUsers(output,username);
output.setAttribute("msgType", "view");
}catch(Exception ex){
output = user.getEmptyElement(username);
output.setAttribute("msgType", "saveNew");
}
}
Labels:
documentation,
IAT352,
project
Correct Time Stamp
The time stamp I used previously was from the template, and it doesn't show time very well. For example, 2009-07-21T13:06:44.670Z, a little hard to read. This is done using System.currentTimeMillis() from java.util.Date, which gives time to milliseconds, and was stored in mysql as a BIGINT.To the left is screenshot of type datestamp from metadata table, stored in BIGINT and created by System.currentTimeMillis().
However, there's a smart way to do this: mysql have a build-in type: TIMESTAMP, which will be responsible to keep track of time and display it properly when called. It can be called using command NOW(). This screenshot is date from users table, stored in TIMESTAMP and created by NOW().
Update:
Although it looks much neater, with 2nd method. The TIMESTAMP is more like a String, and losses it's ability to sort metadata by time. On the other hand, I don't need it for that function.
Labels:
documentation,
IAT352,
project
Newly Added section on Index page
A new section is added on Index page - newly added. This will display the last 5 submitted games. So then, the Index page have following features:
- Featured Games: displays 3 randomly selected games
- Most Viewed: displays top 5 most viewed games
- Newly Added: displays last 5 submitted games
- Last Reviewed: displays last 5 reviewed games
- Last Accessed: display last 5 viewed games by this user (it will be blank at the beginning of session)
Labels:
documentation,
IAT352,
project
Subscribe to:
Comments (Atom)

