Debugging Our Computer Science Trivia Feature


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Debugging Our Computer Science Trivia Feature
# 22  
Old 11-06-2019
OK . I have opened up a limited stats page to guests (until I work out some bugs managing guests submissions based on a hash in the DB) and added an "chart" icon to the stats page in the trivia area.


Image
This User Gave Thanks to Neo For This Post:
# 23  
Old 11-07-2019
I saw an "answer bug" today on Chrome running on Linux.

This is the second "Chrome on Linux" bug I have seen.

I was going to disable trivia on Linux because of this bug, but one of our Mods who really likes to play said:

Quote:
Do not disable the feature for linux users Smilie It is really fun!
So, it's still enable on Linux due to special request. Smilie

Added bug notes to stats page:

Image

I will recode this to try to fix this occasional bug on Linux / Chrome a bit later.
# 24  
Old 11-07-2019
Update:

Decided not to go to fitness today and wrote some logging code to see if I can trap any JS or other errors which may cause an incorrect answers in the browser.
# 25  
Old 11-07-2019
Hmmmmm ..... well I think I fixed the bug in trivia.. and so far it looks great after over 100 flawless log file entries, but I will wait until 1000 to "call it done".

Today, I coded some I very extensive logging going on which confirms all (client and server side), with triple checks and more.... and there are zero errors so far.

So, if you get a chance to play trivia today, that will help testing.

We are close to 10,000 answers submitted since initial release.
# 26  
Old 11-07-2019
First Milestone!

10,000 Trivia Questions Total Answered

Image
# 27  
Old 11-07-2019
Update:

I have trapped the error which was causing an occasion error on the browser side and written code to prevent it.

The issue was related to users playing trivia with multiple web pages open in the browser on a single computer.
# 28  
Old 11-08-2019
Update and Status:
  • We now have over 960 quality questions in the DB.
  • There has been over 10,600 submissions to date.
  • The number of user submissions is rising steadily so far, reaching 1.14 QPS today.
  • The prior bug, based primarily on browsers with multiple windows open, has been squashed.
  • Guests currently submit trivia answers 13 times more than registered members.
  • The average score of all guests is 64.7%.
  • The average score of all registered users sans Neo is 69.1%.

TODO (Low Priority Overall):
  1. Build leaderboards for (1) countries and (2) guests based on guest user hashes.
  2. Build leaderboards for registered users: Low priority since guests playing trivia far outnumber registered users.
  3. Write code to integrate into for badging system: Low priority since guests playing trivia far outnumber registered users.
  4. Add around 37 more questions to bring the DB total questions to 1000. (Update: DONE)
  5. Enhance summary stats page with more meta statistics.

Basically, I'm just about done with this first alpha release; with just a bit more UI work to do.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Computer Trivia Feature Tops 50,000 Questions Answered

Just noticed that our successful computer trivia feature (stats here) has surpassed over 50,000 questions answered by users: https://www.unix.com/trivia_stats.php This was a coding effort worth while and I'm pleased to see so many people enjoying it in such a short time since it was released... (3 Replies)
Discussion started by: Neo
3 Replies

2. What is on Your Mind?

New Member and Country Computer Trivia Leaderboards

Thanks to Akshay, who helped me write the core MySQL queries, we now have two new draft leaderboards, by (1) member and by (2) country: https://www.unix.com/trivia_stats.php Currently milhan leads the members with a high score of 90%: ... (3 Replies)
Discussion started by: Neo
3 Replies

3. What is on Your Mind?

1000+ Computer Science Trivia Questions at UNIX.COM

The UNIX and Linux Forums now has over 1000 TRUE / FALSE computer science and computer related trivia question in our database. These questions are of relatively high quality (compared to similar sites on the web) and are fun (according to feedback by users). In the first week during the... (1 Reply)
Discussion started by: Neo
1 Replies

4. What is on Your Mind?

Forum Trivial Pursuit - New Computer Science and Mathematics Trivia for UNIX.com

I have added a new experimental "Computer Science and Mathematics Trivia - True or False" section in the discussions, currently under the tags box. In the future, I plan to Expand this feature to add more trivia categories from math, science and technology. Keep track of correct and... (20 Replies)
Discussion started by: Neo
20 Replies

5. Web Development

Is Web Development is a part of computer science ?

I am now a student in university in 2nd year. I am studying computer science. But I am not sure what type of jobs computer science provide. I know some of them are software programming or network management. Recently, I hear some about Web Development. I wonder if it is a part of computer... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

6. Programming

Is Web Development is a part of computer science ?

I am now a student in university in 2nd year. I am studying computer science. But I am not sure what type of jobs computer science provide. I know some of them are software programming or network management. Recently, I hear some about Web Development. I wonder if it is a part of computer science.... (1 Reply)
Discussion started by: Anna Hussie
1 Replies

7. What is on Your Mind?

Computer Science and Information Technology

Hi, I haven't posted on the forums for a while now, I tried to find the most appropriate section for this post, but if this is in the wrong section please forgive me. First, let me say I'm a sophomore in HS. I know that job wise I definitely want to do something in computers. A while ago I was... (5 Replies)
Discussion started by: hpicracing
5 Replies
Login or Register to Ask a Question