Use NSString and NSMutableString

NSString using NSString is immutable, which doesn't mean that it can't be manipulated. Immutable means that once NSString is created, it can't be changed. You can perform various operations on it, such as generating new strings, finding characters or comparing it with other strings, but you can't change it by deleting ...

Posted on Mon, 04 May 2020 06:40:07 -0400 by MytHunter

Wechat sends messages automatically

Premise: Today, I joined the wechat assistant army. Why do I have to go to the group to advertise all the time? It's lazy and annoying!!! So I wonder if I can automatically advertise~ Yes ~ ha ha Scheme: Looking at api documents recently, I first thought about whether java can simulate sending information, but I have no idea (give up) ...

Posted on Mon, 04 May 2020 03:39:26 -0400 by bluto374

Developing WeChat official account nickname: filtered expression with expression

Incorrect string value: '\xF0\x9F\x98\x84\xF0\x9F' Official account of WeChat official account is developed. When users visit the public address, we usually store user account information to make records such as OPEN_ID, nickname, gender, city, country, head, attention state, etc. These WeChat official user parameter ...

Posted on Sun, 03 May 2020 21:02:27 -0400 by bdeonline

[experience sharing] 30 Python programming practices, suggestions and skills

What new Flag did you set up in 2020? Anyway, as long as we are learning programming and using python, we are all a family! Let's prepare 30 excellent Python practice skills for you. I hope that these tips can help you in practical work and learn some useful knowledge. 1. Using python 3 Most of the examples in this tutorial can only be run in t ...

Posted on Mon, 27 Apr 2020 04:25:19 -0400 by rp2006

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%uD ...

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