Detailed explanation of Xftp5 software

First, run Xftp5 first, then there is a small plus sign on the navigation bar, click in. Second, the following interface appears, fill in the name here (this optional), the host to fill in the IP address of the host to connect, and then the protocol, Linux system generally choose SFTP protocol, port default can. Three, then enter the host account password.Note that you can’t log in here with the root account (that is, the super administrator account), otherwise the “SSH server rejected the password. Please try again.   Four, click OK. This allows the transfer of files between ...

Nginx common mistakes

error message Error description “upstream prematurely(Premature “closed connection” The exception that occurs when requesting URI is due to the disconnection of the user before upstream returns the response to the user. It has no effect on the system and can be ignored “recv() failed (104: Connection reset by peer)” (1)The number of concurrent connections of the server exceeds its carrying capacity, and the server will drop some of its connections to Down. (2)The client turned off the browser while the server was sending the dat...

PIP bulk updates of installed packages

——————pipBatch update library 1)View expired Library pip list --outdated  Updating a single library: pip install --upgrade The name of the library Batch upgrade update all expired Libraries import pipfrom pip._internal.utils.misc import get_installed_distributionsfrom subprocess import callfor dist in get_installed_distributions():    call("pip install --upgrade " + dist.project_name, shell=True) AnacondaBatch update library  Update all libraries conda update -all Update Anaconda conda update conda

Database – something you might overlook.

databases. You may have overlooked them. https://www.cnblogs.com/joylee/p/7768457.html Database management is a very professional thing, the database tuning, monitoring is usually done by database engineers, but developers also often deal with the database, even a simple addition, deletion, modification and investigation is also a lot of tricks, here, to talk about the database is easy to overlook the problem. The length of the field is saved. First, let’s talk about the storage length of our commonly used types: Column type storage length tinyint 1byte smallint 2byte int 4byte bigint ...

[WPF] WPF sets the scroll bar for StackPanel.

<ScrollViewer x:Name="scrolls" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Height="300"> <ScrollViewer.Content> <StackPanel x:Name="numberedItemsStackPanel" Orientation="Horizontal" ScrollViewer.VerticalScrollBarVisibility="Auto"> ………………………………………… </StackPanel> </ScrollViewer.Content> </ScrollViewer> But I couldn’t scroll through the test after adding it, and it turned out that my StackPanel had set the Height pro...

Application of GIT stash

Looking at a bug today, the previous version of a branch is normal, adding a lot of logs to the new branch to find no reason, hoping to go back to the previous version, determine which submission to introduce the problem, but do not want to submit the current changes, also do not want to see the current version of the modification on Git.(with lots of log and debugging information). So, check if Git has provided similar functions and found it.git stashThe command. Continue reading “Application of GIT stash”

The use of —6. branch management in Git

1. branch”. The simple understanding of the branch is separation, just as Monkey King pulls out his monkey hair and turns out many monkeys exactly like himself, and then each monkey does his own thing without interfering with each other. After all the monkeys have done, the monkeys gather to merge the results of labor, and then Monkey King takes back all the monkeys and monkeys Sun Men. GitBranch is also a killer level function. In order to get closer to our actual work, let’s take a look at a century’s worth of examples to give you a glimpse of a branch: For example: you...

Python (sys module)

sysModular The first is the file name, followed by the incoming content.   1 #!usr/bin/python 2 # -*- coding: utf-8 -*- 3 4 import sys 5 6 print(sys.argv) #The command line parameter List, the first element is the program itself path. 7 8 def post(): 9 print('ok') 10 11 def dowmload(): 12 pass 13 14 if sys.argv[1] == 'nizhipeng': 15 post() 16 17 elif sys.argv[1] == 'download': 18 download() 19 20 import time 21 print(sys.path) #Returns the search path of the module and initializes the value of the PYTHONPATH environment variable. 22 23 print(sys.platform) #...