问题标签 [rating]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 将 Ruby 代码翻译成 Java
我从未使用过 ruby,但需要将此代码转换为 java。
谁能帮我。
这是 Ruby 中的代码。
我从这里得到它,所以也许可以在那里找到一些线索。关于计算平均值
这就是解决方案。万一有人需要
jquery - 如何将 Jquery 星级评分的 star-image 从 fyneworks 更改为不同的图像
我使用这个插件:http ://www.fyneworks.com/jquery/star-rating
它包含一个star.gif(实际上包含三种不同颜色的星星)并且它只在包含的css文件中引用这个gif一次:
我不想再使用star.gif,而是使用我自己的png格式的图像。我怎样才能做到这一点?
我想会有三种选择:
创建我自己的 myGif.gif 并在 jquery-rating CSS 中引用它(我不想要,因为我想使用我的 .png-Images 并且我不太了解 gif 并且不知道如何创建一个包含多个图像的图像)
将 CSS-File 更改为它引用我的 .png-Images (这里的问题是 gif 包含三种不同颜色的星星,但 png 只包含一个图像,所以星星的颜色不会再改变)
也许更改 Jquery-Rating Javascript 文件,以便它自动包含我的 pngs?
你会推荐什么?怎么做?
android - How to best add a comment/rating system to an android app
I already published an android app where you can see a list of specific objects and detailed informations about them. The list changes every day but some of the objects can appear again. The application is communicating with a PHP server over HTTP and periodically pulls the list of objects.
I now plan to extend the app to make it possible to rate the objects and add a comment similar to how it is done in the android market. I'd like to avoid forcing the user to sign up for an account for being able to comment.
I see two problems:
- The comment-system could be abused by spammers
- A comment could be added from another system
So my questions are:
- How to protect the system from spam?
- How to authenticate the application with the server?
- How do I limit the number of comments to one per user and object?
- What about the androids device id? Is it unique enough to use it as identifier for the user?
- Which other problems do you see?
app-store - 使用 UIAlert 评价 5 星提醒
我在网上搜索这个,但最后是我自己做的。只需复制到viewdidload即可显示应用第三次打开后的提醒
plugins - Web Posts\Images Rating - Component Required
i am working on some image blog... i need to put the "rate it option"..
i can do this in two ways
have one thumbs up & one thumbs down image and caption it like it or not and then do my rating with AJAX + MySQL
second option is display line of stars & all you know...
both methods are common.. but i haven't implemented either on before.. the first one i can do... but i can't do the second one & want to do the second one...
i was thinking if there is something off-the-shelf available which i could use plugin into my leech page that would look something like this [see the stars under the image] OR this [look at top center]...
algorithm - 如何为 Web 应用程序中的用户完成评分系统?
我正在实现一个有很多用户的 Web 应用程序,我会根据用户的活动和喜欢他们活动的其他用户给用户评分。我将如何为此实现这样的算法?我正在寻找可以提供帮助的优雅而智能的算法。
magento - Magento - 如何在评论中添加评分信息
我在 Magento 中手动创建评论,并试图找出如何添加评分信息?我可以毫无问题地添加评论,但我在评分值(星级值)上苦苦挣扎。我有一个看起来像这样的数组: array("Price"=>80, "Value"=>60, "Quality"=>60);
如何将其添加到星级系统和总结评级?
谢谢。
好的,这就是我到目前为止所拥有的:这增加了一条评论:
这增加了评论的评级<-我被困在这里!
谢谢!
c# - 按用户评分对产品进行排序/排名的公式
我正在尝试为我的产品数据库获得一个不错的排序算法。用户可以使用从 0 到 5 的分数为他们的产品投票(0.5 分数也可以像 2.5 一样)。我的表结构目前如下所示:
每当用户投票时,我都会使用一个非常简单的公式来计算最终得分,例如 (TotalPoints / NumberOfVotes) = FinalScore。
然后我根据 FinalScore 和 NumberOfVotes 对表格进行排序。
虽然这可行,但并不完全公平,因为只有 1 票 5 星的产品很容易进入最高排名。
我不太擅长统计或算法来获得公平的产品排名。我正在寻找一个相对容易实现的公式,它比我现在使用的方法更公平。
如何才能做到这一点?
php - PHP:星级评分系统概念?
我正在使用 PHP/MYSQL/JQUERY。
我有一个有新闻部分的网站。在新闻详细信息页面上,我想添加星级评分系统,允许用户对新闻故事进行评分。我正在使用这个 jquery 评级系统http://www.fyneworks.com/jquery/star-rating/
现在,我没有得到数据库结构以及我需要用 PHP 编写的代码。我需要为此应用什么逻辑,例如如果有 1000 人为这篇文章投票,一些人给出的评分为 2 或 3 或 1 或 5。然后我应该在哪里存储(数据库结构)这一切以及我将计算的内容(在php代码)。
如果有人有任何显示此概念的文章,请提供。
请帮助,了解这个的逻辑和概念。
谢谢!
android - 带有 ratingBarStyleIndicator 主题和评分小于 0.5 的 Android RatingBar
应用了 ratingBarStyleIndicator 主题的 RatingBar 不想显示小于 0.5 的值,而是将它们显示为 0.5。但是对于更大的值,例如 0.6..1,一切都很好。当样式是默认行为是正确的。你知道原因吗?