popularity

Implementing a visitor counter

∥☆過路亽.° 提交于 2019-11-30 05:44:12
问题 I am a newbie and developing a website using ASP .Net 2.0 with C# 2005. I would like to add a facility to count the no. of visitors to my website. I have collected the basic informations to add this feature using Global.asax. I have made modifications to Web.config by adding the line "" under system.web section. I am using a table to keep the count of visitors. But I don't know how to complete the task. My default Global.asax file came with different sections Application_Start, Application

Why is SCTP not much used/known

吃可爱长大的小学妹 提交于 2019-11-29 18:43:11
I recently checked out the book "UNIX Network Programming, Vol. 1" by Richards Stevens and I found that there is a third transport layer standard besides TCP and UDP: SCTP . Summary: SCTP is a transport-level protocol that is message-driven like UDP, but reliable like TCP. Here is a short introduction from IBM DeveloperWorks . Honestly, I have never heard of SCTP before. I can't remember reading about it in any networking books or hearing about it in classes I had taken. Reading other stackoverflow questions that mentions SCTP suggests that I'm not alone with this lack of knowledge. Why is

Deciding and implementing a trending algorithm in Django

五迷三道 提交于 2019-11-29 09:36:44
I have a Django application in which I need to implement a simple trending/ranking algorithm. I'm very lost as a : I have two models, Book and Reader . Every night, new books are added to my database. The number of readers for each book are updated too every night i.e. One book will have multiple reader statistic records (one record for each day). Over a given period (past week, past month or past year), I would like to list the most popular books, what algorithm should I use for this? The popularity doesn't need to be realtime in any way because the reader count for each book is only updated

Popularity Algorithm

一世执手 提交于 2019-11-28 18:55:41
I'm making a digg-like website that is going to have a homepage with different categories. I want to display the most popular submissions. Our rating system is simply "likes", like "I like this" and whatnot. We basically want to display the submissions with the highest number of "likes" per time. We want to have three categories: all-time popularity, last week, and last day. Does anybody know of a way to help? I have no idea how to go about doing this and making it efficient. I thought that we could use some sort of cron-job to run every 10 minutes and pull in the number of likes per the last

Why is SCTP not much used/known

青春壹個敷衍的年華 提交于 2019-11-28 13:31:15
问题 I recently checked out the book "UNIX Network Programming, Vol. 1" by Richards Stevens and I found that there is a third transport layer standard besides TCP and UDP: SCTP . Summary: SCTP is a transport-level protocol that is message-driven like UDP, but reliable like TCP. Here is a short introduction from IBM DeveloperWorks. Honestly, I have never heard of SCTP before. I can't remember reading about it in any networking books or hearing about it in classes I had taken. Reading other

Deciding and implementing a trending algorithm in Django

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 02:58:10
问题 I have a Django application in which I need to implement a simple trending/ranking algorithm. I'm very lost as a : I have two models, Book and Reader . Every night, new books are added to my database. The number of readers for each book are updated too every night i.e. One book will have multiple reader statistic records (one record for each day). Over a given period (past week, past month or past year), I would like to list the most popular books, what algorithm should I use for this? The