Sponsored Content
The Lounge What is on Your Mind? Debugging Our Computer Science Trivia Feature Post 303040638 by Neo on Saturday 2nd of November 2019 11:33:29 PM
Old 11-03-2019
Lot's of people playing trivia... I will need to code some scoreboards / leaderboards / stats soon:

Top 40 players by questions submitted:

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

I'm closing in on 1000 trivia questions (my goal):

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

My plan was to create some scoreboards when we reached 2000 interactions, but I think I will hold off until 10,000... since we are already nearly 1/2 way there:

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


Guests v. Registered users (not including Neo) - almost ten to one, guests over registered users:

Code:
mysql> select count(*) from neo_trivia_scoreboard where  uid > 1;
+----------+
| count(*) |
+----------+
|      370 |
+----------+
1 row in set (0.01 sec)

mysql> select count(*) from neo_trivia_scoreboard where  uid < 1;
+----------+
| count(*) |
+----------+
|     3387 |
+----------+
1 row in set (0.00 sec)

Neo testing and playing:

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

Actually, I play this (answer questions) when resting between rounds during fitness training at the gym or when I want to kill some time. It's a great way to kill some time on mobile and test at the same time Smilie
 

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 02:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy