Tag:Visits

  • Statistics of user access times of hive basic operations

    Time:2022-4-12

    preface According to several pieces of data on user ID, access date and access times, the cumulative access times of each user are analyzed, involving string replacement, time function, windowing, summation and other technologies. 1. If there are users accessing data (user ID, access date, access times) userId visitDate visitCount u01 2017/1/21 5 u02 2017/1/23 […]

  • Choose lightweight application server or ECS? A picture helps you distinguish completely

    Time:2022-4-3

    Introduction: lightweight application server is suitable for lightweight and low traffic application scenarios, more suitable for individual developers and more friendly to novice Xiaobai; ECS can cover all business scenarios (such as big data analysis, in-depth learning, etc.) and requires users to have certain development technology capabilities. This article starts with the official account of […]

  • Share a simple redis current limiting

    Time:2022-3-29

    /** * Class RedisLimit * @package app\common\service *Redis simple current limiting */ class RedisLimit { /** * @var int */ static $oneITime = 60; // Unit time: one minute /** * @var int */ static $oneIMax = 50; // A user IP can only be accessed up to 10 times a minute /** * @var […]

  • [note] Linux basic instructions

    Time:2022-3-20

    Linux basic instructions CD jump folder cd To the root directoryCD usr to the usr directory under the root directorycd .. To the upper level directoryCd ~ to home directoryCD – to the last accessed directory SH executes the SH command Ls view all directories and files in the current directoryLS – a view all […]

  • The purpose of learning architecture from 0

    Time:2022-2-19

    preface This article introduces what the purpose of the architecture is and what problems the architecture solves. objective The purpose of architecture is not to build architecture for the sake of architecture. It is not done by others, so you have to do it yourself, not for the sake of technology… The real purpose of […]

  • Create her favorite GitHub home page

    Time:2021-11-12

    Hello, I’m tree sauce. Let’s talk about the origin of this article. One day, when I saw a big man’s GitHub account home page in Shuiqun, my appearance was just bursting. Watching the GitHub home page of tree sauce is simply a “humble room”, which is hard to see! Or many development partners, like me, […]

  • GitHub traffic statistics

    Time:2021-10-15

    Visit statistics icon of GitHub profile based on firebase database and next.js framework Operation guide Step 1: fork Fork current project Step 2: configure firebase Register your personal firebase account: clickstartandadd item. Create a live database and selectTest mode. The structure of the database shall be as shown in the figure below: Please change the […]

  • Statistics of user access times for hive basic operations

    Time:2021-10-8

    preface According to several pieces of data on user ID, access date and access times, the cumulative access times of each user are analyzed, involving string replacement, time function, windowing, summation and other technologies. 1. If a user accesses data (user ID, access date, access times) userId visitDate visitCount u01 2017/1/21 5 u02 2017/1/23 6 […]

  • [from single architecture to distributed architecture] (II) increased requests, single point change cluster (1): load balancing

    Time:2021-8-29

    In the last chapter, we built the simplest single service project. The single architecture is to put all functions in one project. However, when the number of visits is increasing, we can’t afford to deploy only one environment. Is there any solution at this time? If we go shopping in a supermarket, when the number […]

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

    Time:2021-6-16

    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

    Time:2021-6-8

    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

    Time:2021-5-13

    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> […]