Comparison rules under utf8 character set

Preface: In mysql, utf8 and utf8mb4 are commonly used character sets. The two character sets are similar. Utf8 is an alias of utf8mb3, so later mentioned in MySQL that utf8 means using 1-3 bytes to represent a character. If you use 4 bytes to encode a character, such as storing some emoji expressions, you need to use utf8mb4. In fact, each cha ...

Posted on Fri, 27 Mar 2020 14:05:15 -0400 by Il-Belti

Matplotlib draws a table of Spring Festival holidays

I haven't updated the python&gis blog series for a long time. In fact, I have been neglecting python's learning and summary recently. I just learned Python's matplotlib drawing these days, and it's time for the Spring Festival vacation.In order to let the team members know their vacation time intuit ...

Posted on Mon, 20 Jan 2020 22:55:45 -0500 by mattbarber

Add emoticons to the applet

The native textarea has discarded the button of selecting expression, so it simulates an expression selector Here is the effect display Realization principle Preparation The expression can be qq expression zone Mid view Through the two functions of escape() and unescape(), the expression is parsed and reconstructed escape("😃") // %uD83D%uDE ...

Posted on Sat, 14 Dec 2019 09:23:54 -0500 by farkewie

iOS string processing

I. use of NSCharacterSet NSCharacterSet is a character set. With this class, you can operate strings more easily. For example, "abcdefghijklmnffajkjawifa", we need to remove the "f" and "a" in this character. We will probably do this: NSString *str = @"abcdefghijklmnfwafajkfjawifa"; NSInteger l ...

Posted on Fri, 06 Dec 2019 05:34:40 -0500 by bwcc

About the front-end processing emoticons (solution)

Today, there is a problem in the test feedback, that is, the comments with emoticons are uploaded and reported wrongly. It is obvious that there is no relevant processing for emoticons in the background. Let them handle it. What kind of trouble do they say? Forget it. The front end should handle it by itself! The specific reason is ...

Posted on Tue, 03 Dec 2019 15:39:17 -0500 by MattSharp

How to load template file with MarkDown rich text editor

We only need a piece of loading code to finish the mark down loading template file. $("#md-demo").bind('click', function () { $.get("/Lib/MarkDown/examples/test.md", function (md) { testEditor = editormd("test-editormd", { width: "99%", height: 740, path: "/Lib/MarkDo ...

Posted on Mon, 04 Nov 2019 09:25:12 -0500 by villas

Imitation wechat chat page

Imitation wechat chat page Make a chat page similar to wechat, and paste the code: wxml: <view class='container chat'> <view class="page_bd"> <scroll-view catchtap="scrollClick" class="msg_scroll" style="max-height:{{scrollHeight}};height:auto;" scroll-into-view='{{toView}} ...

Posted on Fri, 01 Nov 2019 05:29:23 -0400 by ForgotMyPass

Android copy of little red book custom expansion of folded TextView

Detailed explanation This is the beginning of the story. There is a demand for products. To make a small red book text folding function, there are a series of things in the back. However, after the implementation, I have learned a lot about TextView intercepting text. The specific effect is as follows: First, summarize the following points to ...

Posted on Sat, 19 Oct 2019 17:03:17 -0400 by TheLoveableMonty

Start validating forms with HTML5 and CSS3

This article is reproduced on: Ape 2048 website Start validating forms with HTML5 and CSS3 Verify forms using HTML5 and CSS3 Client-side validation is one of the most commonly used functions of web client programs. We used various js libraries to validate forms before. HTML5 is already available for us. Form Validation Function. As for why i ...

Posted on Tue, 10 Sep 2019 09:12:36 -0400 by mikeq

python implements itchat

python implements itchat install sudo pip install itchat Sign in itchat.auto_login() This method will scan the two-dimensional code login through Wechat, but this way of login is really short-term login, and will not retain the status of login, that is, the next login still needs to scan the two-dimensional code, if added.hotReload==True,Then ...

Posted on Sun, 30 Jun 2019 17:11:15 -0400 by christine75