Supervisor will use your Python program becomes Services

Many of my friends are using Flask framework to write a small server,Easy and fast,But also a key to run,Very comfortable。but,If you really want your service to be deployed on the server,Then you will find that there are some homework to do,This article,We mainly talk about how to write the program into a service on the server instead of the terminal in the execution of the command。

If we write a Python web application,Then it needs to be running to listen for HTTP requests,If direct execution terminal
[crayon-690728f32[……]

Click link to continue reading...

macOS app automated publishing to upload AppCenter

Before I wrotemacOS app script to automate notarize,Because I use Microsoft's HockeyApp input method for crash statistics,So I also need to upload it here once app "publish",So HockeyApp to receive the corresponding version of error statistics。

now,Microsoft has updated HockeyApp become AppCenter,Automated command also very friendly,In fact, this operation can also be added to your automation scripts inside,complete in one step。

Click link to continue reading...

On macOS compiled Tensorflow to open AVX2 and FMA

When using Tensorflow,There has been a strange warning: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA ,Although not affect the use,But looking annoying,You can use this command to turn it off: the.about['TF_CPP_MIN_LOG_LEVEL'] = '2'

but,Have you noticed it? " could speed up CPU computations"……Ok?!

background

In short,according toThe official,Ten[……]

Click link to continue reading...

Proper use PIP to install Python package to avoid TypeError: ‘module’ object is not callable

Before,I have been so install and use pip on the macOS:

later,This method is ineffective,Become such:

Finally one day,I need to update it prompted pip,then:

After the query,Python is found that to be so safe[……]

Click link to continue reading...

WordPress automatically add copyright text and text link

Blog post past few days has been grabbed someone else take,Though Contact Webmaster and communication to solve,But I still have to reflect on their own,The body of the article did not add article link,Cause even if people can not get crawled pingback ......

Plug-law

In short,Search a pass,There seems to be a plug-in before you can step (I happen to be the kind of person like a lot of plug-ins),Called "Add Post URL",But this plugin has the shelf。

This approach does not work,But to try to modify the code level:

Change text Template

This approach requires your theme[……]

Click link to continue reading...

Use ClamAV and Linux Malware Detection (LMD) Protect your servers

Use CalmAV scan / home

This article originated inR0uter's Blog,ClickView original

 

Normal,Speaking of viruses, Trojans,People will probably think of Windows,In fact, as long as the operating system,There will be loopholes,So long as the operating system was used,Then some people will take advantage of this loophole to develop malware (such as viruses, Trojans)。In short,Since the Windows operating system users is far greater than macOS and various Unix-like,So many people think the latter even immune to the virus。

Not really,Although Linux[……]

Click link to continue reading...

Pocketed input macOS 2 It is how to restart the free activation input method

On macOS,Install the input method has always been a nightmare,To open the system input method directory,We should drag input into this directory,The process also enter a password,Full manual bad enough,After we had to reboot the system to recognize,Not really a headache。

Later, we gradually realized the problem,Pocketed input method is also provided macOS standard installation package pkg。

Having said that,But in fact it seems that there is a way to automatically load input method,such asSogouHe did restart free,After installing only be able to identify without rebooting,Even installation[……]

Click link to continue reading...

Use Mailgun create your free domain mail

This article now has expired,Because Mailgun no longer offer free credit,And the necessary functions used herein, "recipient routing" feature set for advanced users no longer offer free,I changed the site to achieve another domain mail,see:When Mailgun no longer free,How do you placed your domain mail?

Creating a website is easy,But there should own a domain name and e-mail address associated Domain mail,It seems to be more trouble。For Chinese webmaster,“QQ-mail domain name"It seems to be the only option,Of course, if using Pay,Then use[……]

Click link to continue reading...

Why is my upload so slow Fastlane?

automation

Processed using automated tools for iOS test Flight distribution,It is a very pleasant thing,It can save you a lot of time,Reduce the amount of manual intervention - especially like this need to wait a long time to look at things that require manual operation,Although it does not make you feel tired,But a lot of time so wasted。

use fastlane A key to compile、Upload,And then wait for Apple server processing is complete,Automatic release test Flight,It would have been a great operation,However, due to changes in the network environment,My fast[……]

Click link to continue reading...

macOS app script to automate notarize

According to Apple's official description,Since macOS 10.15 rise,All downloaded from the Internet were not notarize the app,Default will not be opened,So distributed outside the App Store app,The app must also be uploaded to Apple's servers for processing before release。

Use Xcode comes archive tool can be easily notarize,But this operation can not be automated process,In order to facilitate distribution,I pocketed input method macOS 2 The flow distribution[……]

Click link to continue reading...

Disabling automatic start Android File Transfer

Android File Transfer is a good thing,In macOS can easily transfer files in to Android phones etc.,But one thing is this bad thing will reside process in the background to monitor usb insert,People very uncomfortable。

Especially when the device is inserted Android,Automatic pop-ups,Also the connection fails (because you have no time to point authorized on the phone),Very annoying。

To disable automatic startup,First, open the activity manager,Search Android File Transfer Agent in it[……]

Click link to continue reading...

Changjei generation and accelerated code table from cns11643 Chinese official standard full flash

Has long been,I'm rightCJandExpressThis is useful advice ...... circulated on the Internet version of the code table many fellow sufferers,But the name called "CJ",By contrast and Wubi,Anyhow, also points a stroke 86 and 98,Then there is little new in the new century, and so on,But no Changjei,No matter what version of the CJ,Called "CJ"。

This is very embarrassing,Changjei code table is different for each person with,But not the same where,He did not know。

In short, Full font (cns11643) provides a common Chinese official coding,Actually, this stuff is used to make up utf8[……]

Click link to continue reading...

How pocketed input method is a process of PUSH messages

Do the soft keyboard on a mobile device,So how to handle user clicks position,It is the first problem you encounter,in this problem,I have come a long way。

I touch a logical development since input method pocketed roughly classified into three stages,Now were Laijiangjiang design ideas,I hope this can help you。

The first generation of touch engine

Obviously,For a beginner,There's nothing better use of the control system,Full-featured,Speed ​​is not slow,Improve the business logic,so,Pocketed generation of a first input message is treated with[crayon-690728f3[……]

Click link to continue reading...

df-dferh-01 Solution after China, Android Google Play Store to install the error

When using an Android device,If you purchased a separate area of ​​China issued a customized version of Android devices,It is likely that your device is not built-in Google Kit,Such as Play Store。

This time we need to install it yourself,There are many ways to install,Not repeat them here。In short,Once you have installed,You will find,Even open proxy,Play Store is also possible after logging content can not be loaded correctly (login is normal)。

This displays the error:df-dferh-01[……]

Click link to continue reading...

Ubuntu ultra-fast server deployment wireguard

New out of a lot of people want to try Wireguard,Here VPN over the wall in the end it is appropriate for us to discuss not,Let's look at how fast service from a wireguard on vps。Many people have heard of this service particularly complex to configure,So discouraged,Actually quite simple。

The environment

Here I use the latest ubuntu 18.04.2 To configure,First you have to have a vps,After the best as I created After purchasing a VPS you should spare security measuresConfiguring credentials in ssh access。

installation[……]

Click link to continue reading...

Let iOS macOS Chinese font achieve visual vertical centering

In the development off the grid when the input method macOS,I encountered a problem of a more wonderful,This problem has plagued me now - the time when some places need to display a row of vertically centered text,How to make these characters real "center"?

 

At first glance this seems to make much sense,Well ...... like vertical center,On macOS NSTextField Really no way to get your line of text vertically centered ...... 🤷♂️

The first generation of programs

later,Well, I[……]

Click link to continue reading...

independently developed iOS:Manage your redemption code

As iOS developer you,Promo codes must be aware of this thing,That is, we often say that the redemption code。(of course,As perhaps you iOS users also no stranger to this)

this time,We take a look,This seemingly endless redemption code,What are the restrictions in the end。

Validity

Apple background rendering valid redemption code has been a mystery,Although the official statement of 4 week,That is 28 day,But in fact this period if your app update,Then the redemption code will most likely fail[1]。

&nbs[……]

Click link to continue reading...

Swift in the array to re-program

When developed using Swift input pocketed,I met a very interesting question -Deduplication

All to known,Candidate input method in the calculation will always be out there may be a duplicate options (such as code table and have a word in the lexicon,They may be different coding,But the word is the same and the like),This time you need to re,But while keeping the same order of candidates。

Others solutions

If you go online to find,Then you may find is this:

source:[……]

Click link to continue reading...