scoring

how to call another intent from countdown timer finish method?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 14:20:14
I am working on android quiz. In my code i have countdown timer when time finish i want next question came and score are decreases (for score decrement currentGame.decrementScore() method). If i add folowing code in timer's finish() method. Its work properly but then my exit button not works properly. When i click on that dialog box appears on pressing yes its remain on current page. After pressing it 3-4 times its exit from current activity and goes on menu page. Then from menu page game starts without pressing play button automatically. code for my class:- public class QuestionActivity

Lucene custom scoring for numeric fields

社会主义新天地 提交于 2019-11-30 05:23:21
I would like to have, in addition to standard term search with tf-idf similarity over text content field, scoring based on "similarity" of numeric fields. This similarity will be depending on distance between the value in query and in document (e.g. gaussian with m= [user input], s= 0.5) I.e. let's say documents represent people, and person document have two fields: description (full text) age (numeric). I want to find documents like description:(x y z) age:30 but age to be not the filter , but rather part of score (for person of age 30 multiplier will be 1.0, for 25-year-old person 0.8 etc.)

Safest way to update game score from client to server database? Javascript

我的梦境 提交于 2019-11-30 03:42:08
So I have this game that is completely run on the client. No server interaction what so ever apart from downloading the initial scripts to play the game. Anyway at the end of the game I would like for the client to send me back the scores which should be updated in the server database. Now I have come to accept the fact that there is no way on earth I can hide this from a hacker and send the scores unaltered. But I would like to know till what level can I modify the whole process that it virtually becomes pretty infeasible for the hacker manipulate the data which is being sent. For sure I

Detect which image is sharper

假装没事ソ 提交于 2019-11-29 20:28:27
I'm looking for a way to detect which of two (similar) images is sharper. I'm thinking this could be using some measure of overall sharpness and generating a score (hypothetical example: image1 has sharpness score of 9, image2 has sharpness score of 7; so image1 is sharper) I've done some searches for sharpness detection/scoring algorithms, but have only come across ones that will enhance image sharpness. Has anyone done something like this, or have any useful resources/leads? I would be using this functionality in the context of a webapp, so PHP or C/C++ is preferred. The simple method is to

Can Solr boost results on number of social “likes”?

前提是你 提交于 2019-11-27 14:13:04
I am trying to order the results based on the number of "likes" . The most obvious solution is to have a "likes" field for each row and re-index the document for every user who clicks "like". But re-indexing large documents isnt practical in this case. (following is for the sake of example: no large documents involved) Ideally, I would like to index both the data and the user actions in Solr as separate rows. The data rows (as shown below) are relatively stable over time. id:place_1 title: ela restaurant meta: sea food, chinese food festival description: this place... The action rows are

Safest way to update game score from client to server database? Javascript

独自空忆成欢 提交于 2019-11-27 13:08:16
问题 So I have this game that is completely run on the client. No server interaction what so ever apart from downloading the initial scripts to play the game. Anyway at the end of the game I would like for the client to send me back the scores which should be updated in the server database. Now I have come to accept the fact that there is no way on earth I can hide this from a hacker and send the scores unaltered. But I would like to know till what level can I modify the whole process that it

Detect which image is sharper

匆匆过客 提交于 2019-11-27 10:01:29
问题 I'm looking for a way to detect which of two (similar) images is sharper. I'm thinking this could be using some measure of overall sharpness and generating a score (hypothetical example: image1 has sharpness score of 9, image2 has sharpness score of 7; so image1 is sharper) I've done some searches for sharpness detection/scoring algorithms, but have only come across ones that will enhance image sharpness. Has anyone done something like this, or have any useful resources/leads? I would be

Can Solr boost results on number of social “likes”?

孤街浪徒 提交于 2019-11-26 16:40:41
问题 I am trying to order the results based on the number of "likes" . The most obvious solution is to have a "likes" field for each row and re-index the document for every user who clicks "like". But re-indexing large documents isnt practical in this case. (following is for the sake of example: no large documents involved) Ideally, I would like to index both the data and the user actions in Solr as separate rows. The data rows (as shown below) are relatively stable over time. id:place_1 title: