Category:Program Language

  • How to write high quality equals and hashcode methods?

    Time:2020-1-24

    What are equals and hashcode methods? This starts from the object class. We know that the object class is a super class of Java. Each class directly or indirectly inherits the object class. Eight basic methods are provided in the object. The equals method and hashcode method are two of them. : the equals method […]

  • Pycharm2019.2 permanently activated

    Time:2020-1-24

  • Oulipo substring lookup

    Time:2020-1-24

    Title Description thinking Use the hash value to represent the value of the substring of the long string, and directly compare whether the hash values are equal Code #include #include using namespace std; char a[1000005], b[1000005]; unsigned int sum[1000005], sumb, bt[1000005]; int bs = 37, ans; int lena, lenb; unsigned int get(int st) { return […]

  • Spring boot first entered the Jianghu

    Time:2020-1-24

    Hello, everyone. I’m xiaotanjun. Today’s sharing theme is about Springboot topic sharing. Actually, before writing this series of themes, I have thought about the order of sharing technology, because I started to create “IT dry warehouse” at the beginning of the public number, and I wanted to share some dry goods on the back-end technology. […]

  • Tutorial details of centos7 compiling and installing php7.1

    Time:2020-1-24

    1. Install the dependency package first: yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel gmp gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel ncurses curl gdbm-devel db4-devel libXpm-devel libX11-devel gd-devel gmp-devel expat-devel xmlrpc-c xmlrpc-c-devel libicu-devel libmcrypt-devel libmemcached-devel 2. Download the PHP compression […]

  • Simple implementation of JSP using filter to prevent SQL injection

    Time:2020-1-24

    What is SQL injection attack? Quote Baidu Encyclopedia’s explanation: SQL injection: The so-called SQL injection is to insert the SQL command into the web form to submit or input the query string of domain name or page request, and finally to cheat the server to execute malicious SQL command. Specifically, it is the ability to […]

  • The method of drawing waveform and spectrum with Python

    Time:2020-1-24

    As follows: # -*- coding: UTF-8 -*- import wave import numpy as np import matplotlib.pyplot as plt #Open the wav file. Open returns an instance of the wave read class. Call its method to read the format and data of the wav file. f = wave.open(r”D:\project\REC001.wav”,”rb”) #Read format information #It returns the format information of […]

  • Querycode.vbs text file coding query tool

    Time:2020-1-24

    Just download this file and you can query itHere is the detailed code Copy codeThe code is as follows: ‘QueryCode.vbs BY: fastslz ‘batch query is supported and can be placed in SendTo extension applicationset files=WScript.Arguments if files.Count=0 Then Msgbox “please drag the file to be queried into this file! “, vbinformation,” file encoding query tool […]

  • 6 ways to invoke shell command in Ruby

    Time:2020-1-24

    When we need to call the operating system shell command, ruby provides us with six ways to complete the task: 1. Exec method: The kernel exec method replaces the current process example by calling the specified command: Copy codeThe code is as follows:       $ irb       >> exec ‘echo “hello $HOSTNAME”‘          hello nate.local […]

  • Go program performance optimization and pprof usage

    Time:2020-1-24

    Performance optimization of Go program and application of pprof The optimization of program performance is nothing more than the optimization of program resources. For servers, the two most important resources are CPU and memory. Performance optimization means that we usually require the CPU of the program to occupy as little memory as possible without affecting […]

  • The solution of wordpress theme not displaying Chinese title

    Time:2020-1-24

    There is a solution to this vexed problem, and it is very simple. 1. Find the header.php file in the theme directory2. Edit using FTP or dreamweav, find <script type=”text/javascript”>Cufon.replace(‘h1’)(‘h2’)(‘#logo span’);</script> Delete it, OK. If you look at the homepage of your blog, the Chinese title of the article will be displayed perfectly.

  • Advanced Java virtual machine learning

    Time:2020-1-24

    Or go on to Java virtual machine, why? Because I read other people’s blogs at will and accidentally saw a little new thing about JVM, which was quite interesting, so I shared it according to my understanding; I still remember that I learned a poem before, “it can be seen as a peak on the […]