• Let’s introduce a PHP modernization framework (preparatory work)


    preface Starting from this chapter, we continue to build wheels to complete a modern PHP framework similar to larravel. Why modernization? Because he has to have a few points Comply with psr-4 coding specification Package management using composer Standard HTTP request mode Elegant use of design patterns In the beginning, we don’t need to care […]

  • How to use Python crawler BS4 parser correctly


      The reason why BS4 library can quickly locate the elements we want is that it can parse the HTML file in a way, and different parsers have different effects. The following will be introduced one by one. The choice of BS4 parser The ultimate goal of web crawler is to filter and select network […]

  • Common PHP class library, resources


    Continuous update: https://github.com/ar414-com/… learning resource PHP related reference community, blog, website, articles, books, videos and other resources PHP websites PHP the right way – a quick reference guide to PHP practices PHP best practices – a PHP best practice PHP weekly news – a PHP weekly Securing PHP – about PHP security related PHP Fig […]

  • Step by step understanding spring MVC through the project (1)


    Related reading: Address of this document and project code:https://github.com/zhisheng17/springmvc Please indicate the source and keep the above words! Learn about spring: Spring website:http://spring.io/ A good thing usually has a good document explanation. If your English is OK, it is suggested to read the official document. Spring MVC Basics What is spring MVC? Principles of spring […]

  • For the fuzzy query of mybatis like, “>” and “<" need to be described by escape characters


    Suppose there is a table user (ID, name, sex, age); 1. Fuzzy query of mybatis SELECT * FROM user WHERE 1=1 AND name like concat(‘%’,#{obj.keyWorld,jdbcType=VARCHAR},’%’)   2. Mybatis in mapper.xml File use greater than or equal to, and less than or equal to error “>” is not allowed in mybatis XML file“ field Symbol explain […]

  • [spring framework] [1] resource


    This article has included the transition path of [cultivating internal skill] It is extremely boring to read the source code. For components that are frequently used, if you can know what they are and why they are, it will do more good than harm in daily work, whether it is troubleshooting, code optimization, function expansion, […]

  • XML learning notes


    XML learning notes 1. What is XML? XML refers to extensible markup language(EXtensible Markup Language) XML is aMarkup Language, very similar to HTML XML is designed forTransmit dataInstead of displaying data XML tags are not predefined. You needSelf defined label。 XML is designed to haveself descriptiveness 。 XML isW3C recommendations 2. Why use XML? Before […]

  • [suggested collection] an XML learning note that Ali Danio spent three days sorting out, which is very detailed


    1. What is XML? XML refers to Extensible Markup LanguageXML is a markup language, very similar to HTMLXML is designed to transfer data, not display itXML tags are not predefined. You need to define your own tags.XML is designed to be self descriptive.XML is a W3C recommendation 2. Why use XML? Before we had XML, […]

  • [reprint] about the XML document’s xmlns xmlns:xsi and xsi:schemaLocation


    I believe that many people like me, when writing spring or Maven or other programs that need to use XML documents, they usually copy these XML document headers without understanding the elements (such as xmlns, xmlns:xsi , xsi:schemaLocation )I don’t know which elements are superfluous or why. In this way, sometimes when the XML header […]

  • Python library collection


    Author: Xiao ahhttps://www.zhihu.com/questio… awesome-web-scrapingChinese versionThis paper is written byBole Online – LynnShawTranslation,Lai XintaoProofread. No reprint without permission!English source:Gregory Petukhov。 Welcome to joinTranslation team。 This list contains Python libraries for web crawling and data processing network currency urllib-Network library (stdlib). requests-Network library. grab– Network Library (pycurl based). pycurl– Network Library (bindinglibcurl)。 urllib3– Python HTTP library, secure […]

  • Case analysis: application of spark hive custom function


    Abstract: Spark currently supports UDF, udtf and udaf. 1. introduction Spark currently supports UDF, udtf and udaf. UDF usage scenario: input a line and return a result, one-to-one. For example, define a function to input an IP address and return a corresponding province. Udtf usage scenario: input one line, return multiple rows (hive), one to […]

  • Netty realizes the long connection between server and client through websocket


    Server code import com.chinadaas.bio.chinadaasbio.webSocket.handler.ServerHandler; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelOption; import io.netty.channel.ChannelPipeline; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.handler.codec.http.HttpObjectAggregator; import io.netty.handler.codec.http.HttpServerCodec; import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler; import io.netty.handler.logging.LogLevel; import io.netty.handler.logging.LoggingHandler; import io.netty.handler.stream.ChunkedWriteHandler; public class Server { public static void main(String[] args) throws Exception { NioEventLoopGroup boosGroup = new NioEventLoopGroup(1); NioEventLoopGroup workerGroup = new NioEventLoopGroup(); try […]