loitrewasのブログ -7ページ目

loitrewasのブログ

ブログの説明を入力します。

Thermal paper ranking algorithm is optimizedtoday my intention to change my Blog article ranking algorithm. The algorithm is based on the number of former clicking ranking, there are many deficiencies, such as not considering the time factor, without considering such factors as users of its recommendation, the recent catch shrimp using the system, to catch shrimp ranking algorithm produces thermal paper interest, so I intend to use a similar ranking to my Blog article ranking. The integration algorithm which is more difficult to determine, and I intend to article views, comments, number of times, and the article cited date to generate. The number of users as a recommended number of comments, publication date of the article to today's time as the time factor. 1 comments Personality Nike Air Force 1 High Womens Black Red Shoes and 100 views have the same points. A Traceback equal to two comments points. Reviews and cited the growth is linear. Views increases with the square root of the integration achieved in the way growth that the larger the number, the smaller the change. Date of the article as negative points, exponentially 2015 Latest Nike Shoes growing older articles will become more and more negative points. That represents a mathematical algorithm: log_CommNums * 100 + log_TrackBackNums * 200 + sqr (log_ViewNums) * 10 - (date () - Log_PostTime) * (date () - Log_PostTime) From this algorithm, references, and comments on the impact of the increase of the maximum points The time factor is the greatest impact on reducing integration. Top thermal paper produced with this algorithm see on the left, it will be automatically updated every day, I will observe a period of time to see how effective this method. Specific modifications as follows: Add the following function in c_system_event.asp in: '********************************* ************************ 'Objective: reconstruction Ranking' ************************************************************ ************************************* Function BlogReBuild_Toplist () Dim iDim objRSDim objStreamDim objArticleDim strLogUrlDim strPreviousSet objRS = objConn.Execute (SELECT [log_ID], [log_Url], [log_Title] FROM [blog_Article] WHERE [log_Level] 1 ORDER BY log_CommNums * 100 + log_TrackBackNums * 200 + sqr (log_ViewNums) * 10 - (date () - Log_PostTime) * (date () - Log_PostTime) DESC) If (Not objRS.bof) And (Not objRS.eof) Nike Air Max 90 Premium ThenFor i = 1 to ZC_PREVIOUS_COUNTstrLogUrl = objRS (log_Url) If IsNull (strLogUrl) Or IsEmpty (strLogUrl) Or strLogUrl = ThenstrLogUrl = objRS (log_ID) End IfstrLogUrl = ZC_BLOG_HOST ZC_STATIC_DIRECTORY / strLogUrl. ZC_STATIC_TYPEstrPrevious = strPrevious lia href = strLogUrl objRS (log_Title) /a/liobjRS.MoveNextIf objRS.eof Then Exit ForNextEnd IfobjRS.closestrPrevious = TransferHTML (strPrevious, [no-asp]) Set objStream = Server.CreateObject (ADODB.Stream) With objStream.Type = adTypeText.Mode = adModeReadWrite.Open.Charset = utf-8.Position = objStream.Size.WriteText = strPrevious.SaveToFile BlogPath /include/toplist.asp,adSaveCreateOverWrite.CloseEnd WithSet objStream = NothingBlogReBuild_Toplist = TrueEnd Function '****************************************** *************** then later BlogReBuild_Categorys MakeBlogReBuild function add the line BlogReBuild_Toplist. Modify c_html_js.asp, at f = TRACKBACKS later increase ElseIf f = toplist Thenf = TOPLIST modify single.html template file, add the following lines in place. div class = function id = divTopListh3 hot text Rank / h3ulscript language = JavaScript src = # ZC_BLOG_HOST # c_html_js.asp? include = toplist type = text / javascript / script / ul / div Finally, rebuild the index, rebuild the file, is complete. See the specific effects of thermal paper Top left of this page section. Update: Modify the code in front of the Classic Nike Air Force 1 Unisex Purple White Shoes same method to modify Z-BLOG 1.7 below, after which modify TEMPLATE \\ default.html template in place by adding the following statement: div class = function id = divTopListh3 hot text Rank / h3ul # CACHE_INCLUDE_TOPLIST # / ul / div modify TEMPLATE \\ single.html template in place by adding the following statement: div class = function id = divTopListh3 hot text Rank / h3ul id = ulToplistscript language = JavaScript type = text / javascriptstrBatchInculde + = ulToplist = toplist, / script / ul / div finally to rebuild the index. Reference article: catch shrimp index of thermal paper The Ranking Source: http: //www.zhuaxia.com/blog/ p = 20 catch shrimp on top of a hot article is everyone from?. For each Nike Lunar Mens article, everyone has one and only one vote (including our own shrimp, too, have only one vote). Recommended out of the article, according to the following order of the rules, hoping to reconcile with fresh article (by time) and value (by votes). 1. Recommended articles within two days, take precedence over two days; (2) the same is Recommended articles within two days, the number of votes a high priority; 3, the same two days, and the same number of votes in the article, recently It had recommended priority. That is, if no one continue to recommend an article in two days, it is estimated we not much interest in it, or that it is a bit outdated, and it should be in the back row. Day window period is temporary drafted, it might be adjusted later. Genuine Nike Air Force 1 Mens Blue Yellow Shoes In addition, each Nike Blazer Unisex person that votes, after the weights may be different (for example, if shrimp Recommended articles always recognized by everyone, then the shrimp will recommend more weight later.) The general idea, or want to balance fresh and value of the article. Will be added later sort, search, and filtering capabilities, so that we more easily see their favorite articles.