Preparations: lftp must be installed in VPS in advance. lftp is powerful. CentOS directly executes: yuminstalllftp and Debian execute: apt-getinstalllftp. You need to create the/home/backup/directory on VPS and the backup directory on FTP. If there are not many VPS databases, you can use Godaddy free space (10 GB space, 300
Preparations:
Lftp needs to be installed in VPS in advance. lftp is powerful and can be directly executed in CentOS:Yum install l
Many Personal webmasters encounter capital bottlenecks during their business operations, such as domain name and space fees for website construction, external chain purchases, staff salaries, and even office equipment, we are often forced to give up the blue ocean of good projects due to funding issues. So todayOnline earning tutorialWe will mainly share with you the strategies for saving money on domain names. There are mainly the following methods:1. low discount prices for IDC agents:This met
To implement the following functions: Upload the source code to the web site.
First, use Upload. exp to implement automatic FTP upload]
#! /Usr/bin/empty CT
Because my space is hosted in free Godaddy space, all pages are embedded with Godaddy ads, and all source code files need to be processed, the function is to replace
[Upload. Sh]
#! /Bin/sh
Usage:
./Upload. Sh test. cpp
Files are stored in the CPP
.
------Solution--------------------
discuss
You can also use the Define page to refer to the definition of the define file to determine whether the define exists.
------Solution--------------------
discuss
Reference:
You can also use the Define page to refer to the definition of the define file to determine whether the define exists.
Anti-jumps over Ah, but others files are directly downloaded static files, here is not used.
------Soluti
Server more, the site is more and more, always feel not the whole backup heart, and there are several times RM operation errors, resulting in irreparable damage. And most VPS providers are not providing automatic backup functionality or this feature charges slightly higher prices. So it is necessary for me to put this work into practice, and maybe one day it will be used.
Use of the backup space I am using GoDaddy online Storage, the advantage is tha
This is the age that robs people of their eyeballs, there are too many products need to promote publicity, there are too many businesses to carry out a variety of promotions, the Internet is no exception, a variety of cases, emerging, SEO also came into being at this time, after a period of optimization, I also have their own little sentiment, That is SEO is very important, but not to the SEO betting.
Although there are certain rules of SEO, search engines also have their own standards, but the
A lot of webmaster friends These two days must be concerned about the electric circle competition, rich bonuses also attracted a lot of novice webmaster participation, more important is that many people want to pass this contest actual combat test under the personal SEO ability. I also belong to one of the latter.
Well, gossip is not much said, this article will focus on the novice to participate in the electric Circle competition to provide an economical and convenient operation steps, the vet
yuan/1 years (million net) and 100 Yuan/1 years (new network). Million Network Enterprise virtual host price 780 Yuan/1 years (150M space, ASP, PHP, 20G traffic per month, can be bound to 10 domain names), new network virtual host price of 750 yuan/1 years (300M space, ASP, PHP, the monthly 10G traffic, can be bound to 4 domain names). The two COM domain name Agent price is about 55 yuan.
The advantage of the new network and the Million network is that the operation is more formal, is a well-kn
Principle of principal component analysis and its Python implementation preface:This article mainly refers to Andrew Ng's machine learning course handout, I translated, and with a Python demo demo to deepen understanding.This paper mainly introduces a dimensionality reduction algorithm, principal component analysis method, Principal components analyses, referred to as PCA, the goal of this method is to find a sub-space of the approximate concentration of data, as to how to find this subspace, th
sampled.3, some basic functions of the arrayZeros (m): M-Order all zeros policyZeros (m,n): m*n-Order all zeros policyEye (m): M-Order Unit matrixMatrix operations:Left except \ ax=b; X=a-1 times the square is multiplied by BRight divide/xa=b;x=b times A-1 Times SquareIn the operation of matrices and constants, constants are usually only used as divisorThe Inverse (ab=ba=e (unit matrix)) of the matrix is obtained, and there are corresponding methods.Inverse can be obtained by the function invTo
CLC;
Clear all;
A=xlsread (' C:\Users\d e l l\documents\matlab\problem four\problem-Two.xls ', ' c34:af61 ');
A=size (a,1);
B=size (a,2);
For I=1:b SA (:, i) = (A (:, i)-mean (A (:, i)))/std (A (:, i))
,%%% standard processing
end
Cm=corrcoef (SA);
[V,d]=eig (CM);
For j=1:b
DS (j,1) =d (b+1-j,b+1-j);
End for
i=1:b
DS (i,2) =ds (i,1)/sum (DS (:, 1));
DS (i,3) =sum (DS (1:i,1))/sum (DS (:, 1));
End
t=0.85;
For k=1:b
if DS (k,3) >=t
covariance matrix;
2. Calculate the feature values of S and sort them in ascending order;
3. Select the feature vectors corresponding to the first n feature values to form a transformation matrix E = [E1, E2 ,..., En '];
4. Finally, for each n-dimensional feature vector X can be converted to n-dimensional new feature vector Y:
Y = transpose (E) (X-m)
Finally, I have to do it myself to remember: I did it with Python numpy. If I do it with C, it's okay to look for things. It's too t
.
pinv(X)
Returns the pseudo-inverse B of matrix X.
norm(X , ref)
The ref specifies the type of the matrix or vector to be solved.
cond(X, p)
Returns the condition number of the P-norm of matrix X. If P = 2 corresponds to 2 norm
[v,d]=eig(X)
Calculate the matrix feature value and feature vector. If the equation XV = VD has a non-zero solution, V is the feature vector and D is the feature value.
Matrix Creation
I. Matrix Definition
Example:> A = [1 2 3; 4 5 6; 7 8 9]1. The matrix is enclosed by square brackets []. 2. Elements in the same row of the matrix are separated by spaces or commas. 3. columns and rows are separated by semicolons. 4. Direct input., you can use carriage return to replace 2. assign values to matrix elements 1. assign values to matrix elements separately.
Example:> X (5) = ABS (x (1 ))2. A large matrix can use a small matrix as its element.
Example:> A = [A; 11 12 1
weight vector.Attention:In this case, it is possible to replace A with the eigenvector of the maximum feature root, possibly in order to maximize the amount of information (a) of the original data (not sure ...). )3. Conformance TestingConsistency test, the specific also involves the combination of consistency test.Third, the realization of MATLABHere first search the data, see this code, the code is very clear, here directly posted here.Clc;clear; A=[1 1.2 1.5 1.5;0.833 1 1.2 1.2;0.667 0.833
., 2.])
Merge arrays
Use the vstack and hstack functions in numpy:
The code is as follows:
>>> A = np. ones (2, 2 ))>>> B = np. eye (2)>>> Print np. vstack (a, B ))[[1. 1.][1. 1.][1. 0.][0. 1.]>>> Print np. hstack (a, B ))[[1. 1. 1. 0.][1. 1. 0. 1.]
Check whether the two functions involve the shortest copy problem:
The code is as follows:
>>> C = np. hstack (a, B ))>>> Print c[[1. 1. 1. 0.][1. 1. 0. 1.]>>> A [1, 1] = 5>>> B [1, 1] = 5>>> Print c[[1. 1. 1. 0.][1. 1. 0. 1.]
We can see that the
eigenvectors of P, resulting in XX (k,1), resulting in a projection matrix Z (KXN) of X on K eigenvectors.5. Reconstruct xx with Z and compare with X to calculate the reconstruction error4. MATLAB implementation of PCA[V, E] = Eig (cov (X ')) [E index] = sort (Diag (e), ' descend '); v = V (:, index); Meanx = mean (X ') '; P=v (:, [1:k]) [r,c] = size (X); Y = P ' * (X-repmat (meanx,1,c)); [R,c] = size (Y); XX = P * Y + repmat (Meanx, 1, c);5. PCA mai
1 #import2 3 intMainintargcConst Char*argv[]) {4 @autoreleasepool {5 //Create and set the number of array elements6Nsmutablearray *arr1=[nsmutablearray arraywithcapacity:7];7 //Copying an array8Nsarray *[email protected][@"Mon",@"Tue",@"Wed",@"Thu",@"Fri",@"Sat",@"Sun"];9Nsmutablearray *arr3=[Nsmutablearray arraywitharray:arr2];Ten //add an element to an array One[Arr3 AddObject:@"Eig"]; A //inserts an element according
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.