Sponsored Content
The Lounge What is on Your Mind? Debugging Our Computer Science Trivia Feature Post 303040648 by Neo on Sunday 3rd of November 2019 08:22:18 AM
Old 11-03-2019
Update:

Added a 120 second timeout for each question after it loads.

120 seconds seems like a long time, as I notice most people (like me) click "next" and answer within 10 to 30 seconds, and often faster; so 120 seconds seems fair for everyone; but we can change it of course.

Current stats:

Code:
mysql> select count(*) from neo_trivia_scoreboard;
+----------+
| count(*) |
+----------+
|     4674 |
+----------+
1 row in set (0.00 sec)

Top 40 by number of questions per user (hashed for guests):

Code:
mysql> select left(MD5(ipaddress),12) as hash, count(ipaddress),username, country from neo_trivia_scoreboard  where uid != 1 group by ipaddress,username,country  order by count(ipaddress) desc limit 40;
+--------------+------------------+--------------+---------+
| hash         | count(ipaddress) | username     | country |
+--------------+------------------+--------------+---------+
| 2308b749ee0c |              279 | rdrtx1       | US      |
| 9beb7eda3ada |              103 | Unregistered | PH      |
| 4769267eed25 |               91 | Unregistered | IT      |
| 0c8adcc201b2 |               60 | Unregistered | NL      |
| 857d22f278f2 |               55 | KD_999       | BG      |
| 145322cf921e |               53 | Unregistered | BR      |
| 9c6892813c0f |               45 | Unregistered | US      |
| 50796d179daf |               44 | Unregistered | DE      |
| 496c1ebb49bb |               37 | Unregistered | AR      |
| 26b37bb15612 |               34 | Unregistered | US      |
| 8bfc0fbb7d31 |               31 | Unregistered | IN      |
| 2c676bfbff0e |               31 | Unregistered | US      |
| 4e628f3442d1 |               31 | Unregistered | BR      |
| 73aaa345d005 |               30 | Unregistered | AU      |
| 13b4d6b7b692 |               29 | Unregistered | US      |
| 91cb2d037eee |               28 | Unregistered | NL      |
| e40c9db86f87 |               28 | Unregistered | IN      |
| 96bd912beb5d |               27 | Unregistered | IN      |
| 299767cc5bf2 |               27 | Unregistered | ID      |
| 11330bb5bd01 |               27 | Unregistered | US      |
| 18a9b4c29552 |               26 | milhan       | US      |
| 47a14a853303 |               26 | Unregistered | GB      |
| 8a98f1985c12 |               25 | Unregistered | FR      |
| 99f15d8b770f |               24 | Unregistered | UA      |
| a4798823ea4d |               23 | Unregistered | GB      |
| ed3af5326e07 |               23 | Unregistered | US      |
| 67b4b3c0a97e |               23 | Unregistered | SE      |
| ef1e0f8ec62a |               23 | Unregistered | PL      |
| 401f4643e20c |               22 | Unregistered | AR      |
| 5fd3ff8783f5 |               22 | Unregistered | US      |
| a7a86f27afe5 |               22 | Unregistered | DE      |
| e75e8d5e2004 |               22 | Unregistered | US      |
| 8593591e2cdb |               21 | Peasant      | HR      |
| 76ff897ab4c8 |               20 | Unregistered | US      |
| 87cf1ccef093 |               20 | Unregistered | DE      |
| 9d6bb91258b6 |               20 | Unregistered | ES      |
| dd5a37107aac |               19 | Unregistered | UA      |
| 1cab2e056a09 |               19 | Unregistered | US      |
| 91fb4740973e |               18 | Unregistered | CH      |
| f1f17934834a |               18 | Guest        | XX      |
+--------------+------------------+--------------+---------+
40 rows in set (0.01 sec)

Total trivia questions in DB:

Code:
mysql> select count(*) from neo_open_trivia;
+----------+
| count(*) |
+----------+
|      710 |
+----------+
1 row in set (0.00 sec)

 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
All times are GMT -4. The time now is 04:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy