Swift strftime use quick format date and time

Processing time and date software development is a very common operation,Almost all programming languages ​​provide a corresponding API to facilitate the development of the date and time to process,Swift is no exception,such as DateFormatter ,You can use it any Date Custom format is converted into a text string。

--but,[crayon-672465d86b70a283[……]

Click link to continue reading...

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-672465d86[……]

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 that,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...

LogInput 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...