• High performance mysql (version 3)_ Website click counter


    Website visits statistics, their own ideas:Whenever a user visits a page, the front-end initialization method automatically calls the back-end interface for access statistics. A counter table can be created separately. Using an independent table can help avoid query cache failure. udpate hit_counter set cnt=cnt+1 ; But when a large number of users visit the website […]

  • You don’t know the usage of Python


    I didn’t understand the usual class, but I still want to learn this course. As a result, the class is about to end. The teacher asked us to write a paper and find data for time series analysis.I did it with R, and found that the figure was a little ugly, so I wanted to […]

  • Common code of asp.net to calculate website visits


    Front desk Code:<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default.aspx.cs” Inherits=”_Default” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” > <head runat=”server”> < title > Untitled Page </head> <body> <form id=”form1″ runat=”server”> <div> <table style=”width: 269px; height: 75px”> <tr> <td align=”center” style=”font-weight: bold; font-size: 30px; width: 237px; color: lime; background-color: gray;”> Traffic transaction Website visits</td> […]

  • The number of visits to Jianshu


    Simple book, think whether the article visits, refresh can + 1, then why not write a simple script to + 1 Google no trace mode to open any website (such as Baidu), open the console, enter the following script: window.__timer; window.shua = function() { document.querySelector(‘#testIframe’) && document.querySelector(‘#testIframe’).remove(); let iframe = document.createElement(‘iframe’); iframe.setAttribute (‘src ‘,’ ${your […]

  • Redis save page views of laravel learning notes


    Note: This article mainly talks about using redis as a cache to speed up page access. At the same time, the author will stick some screenshots and code in the development process to improve reading efficiency. Note: when the author was learning the source code of others on GitHub recently, he found that many of […]

  • Using nginx cache to speed up WordPress site


    Use nginx cache to speed up WordPress site Since the opening of the blog, it mainly records the problems and solutions encountered in the process of learning and using. Therefore, 1gvps is enough to support the normal operation of a website. Later, the site introduced three pages, which should be very helpful to the netizens […]

  • How to estimate capacity


    With the growth of business, the daily traffic increases from 10W level to 100W level. At this time, capacity estimation is required. What kind of scenario needs capacity estimation? Qualitative growth of capacity Temporary operation activities New system launched Scene 1: When PM was going to do the double 11 event, the technical boss came […]

  • FAQ: timewait


    How does timewait come into being? Which party actively closes first will generate timewait. If the server actively closes, it will be generated on the server side. And it will last for two MSLS (one MSL usually defaults to 30s) The harm and prevention of timewait If there are too many timewaits, there will be […]

  • Introduction and overview of NoSQL in redis (1)


    1. Why NoSQL?  NoSQL is a non relational databaseNoSQL, also known as the abbreviation of not only SQL, is a general term for database management systems different from traditional relational databases。NoSQLStorage for very large scale data。 These types ofData storage does not require a fixed patternWithout unnecessary operation, it can be expanded horizontally 1.1 the […]

  • Django and python build personal blogs and websites


    Build a personal blog preface: Why do I blog?Why did I start blogging? I’m not a big fan This article tells me, not only me, but also the new rookie like meTo write a blog and build a website is not to show off knowledge, or to entertain, but to summarize their knowledge, improve the […]