and: 1: “…”: invalid command code

use Linux Friends might be more familiar with the command,It can quickly and text documents in batches to operate in the script,For example a row or alternatively change the specific content ......

macOS Naturally have this command,But one thing is not quite the same,If you execute and -i ,So probably you will get a strange error and: 1: “…”: invalid command code

 [……]

Click link to continue reading...

DoT DoH addition DNSCrypt,You can also learn more about the DNS encryption scheme

2018On November 2nd update,One day after switching to DoT,All stubby built-in server running unusually slow,Until daily use is immune to give up ......。

2018On November 1st update,used 5 After days DoH,Since the server is currently offering this service only 1.1.1.1,I was here at this address operators blocked。

 

 

three years ago[……]

Click link to continue reading...

swift4 urlSession get and post requests network

Ado,Directly on the code。

GET:

POST:

 [……]

Click link to continue reading...

Four small rocket Shadowrocket Advanced Configuration

Using small rocket for a long time,Many of my friends say,Small rocket Shadowrocket Unstable,Old out of their own background,I would say this is how I use it。

Previous iOS does not support this type of VPN applications,Every time over the wall on iOS,We are a people thing painstaking。Later Surge appeared ...... my first time to buy,of course,Later, Lower shelf Surge,I also completely change the Apple ID of the United States District,I would not buy another copy Surge,Instead bought relatively cheap Shado[……]

Click link to continue reading...

How to use dictionary types as generic constraints in Swift

Today, the group participants Someone made such a problem,Why use the characteristic dictionary type as a generic type constraint,It will inevitably error?

Obviously,He said very clearly,"You can not be from a non-agreement、Non-type class inheritance. "。Obviously,The dictionary is a generic structure...

Then the solution is also very clear ideas,Creating a class to decorate a dictionary might be a good choice but too much trouble,Then start from the agreement。

Conditional agreement to follow

We can give the dictionary[……]

Click link to continue reading...

NSTextField text blur solution canDrawSubviewsIntoLayer

Among developing pocketed input process macOS,I have been plagued by a strange question - text blurred。

Sub-pixel

No matter how I debug,Pocketed candidate text input method can not achieve the original text as clear and sharp。After a big ask God,The resulting experience is to see live a long time - upstreamSub-pixel rendering bug。

In many platforms have similar problems,macOS underlying rendering there such a mistake,Once your layout there was not an integer or decimal point,It will lead to blurred text rendering。

that[……]

Click link to continue reading...

In the end "Larry" is a what?

This article first appeared inDigital lychee,Formerly known as "in the end" Larry "is a what? Larry input method developers listen to you say "

Just last weekend,I recommend Larry input to a new friend,He is the kind of concern in this respect has never been a man - even the "spelling" concept,Also I know after I introduced him to Larry - "So I have been called by spelling (phonetic) Input Method"。

It is this matter,It prompted me to write this article hands。As a developer Larry input method,Speak the truth,I was also very "catch chicken",We often say that high efficiency Larry、double[……]

Click link to continue reading...

Subscribe to a paid app shelves,In addition to code for what you need to do?

Finally,Pocketed X input method successfully shelves。From development to shelves,A lot has happened。

Now,I would say it,In addition to the code,Added a subscription fee app,You need to do something。

Use Agreement

In General,Apple provides to youUnified Software Use Agreement,In your correspondence on the app "app infomation" page,There is a right of the License Agreement。

If you want to offer subscriptions purchased,We need to use your own protocol before they can use,You need a[……]

Click link to continue reading...