represent the affine transformation matrix.
M1, m2, m3, and m4 indicate the scale and rotation characteristics. tx indicates the translation in the x direction and ty indicates the translation in the y direction.
Then the coordinates of a matching point can be written
Or write it
Where (x, y) is before transformation, (u, v) is the coordinate after transformation.
To understand how to evaluate the affine transformation parameters, perform the foll
1. Problem description:
There are four modules in system s: M1, M2, M3, and M4. Each module is a Web application. Sessions in one module cannot be read from other modules.
2. cause:
A Web application is equivalent to a site, and the session cannot be shared between the application and the application.
3. solution:
1) include four web applications in the same solution
(Note: Adjust the. webinfo file to make the solution work properly)
2) create
(test, 0.1)# Checks for programs.Ac_prog_cc
# Checks for libraries.
# Checks for header files.Ac_check_headers ([unistd. H])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
Ac_config_files ([makefileSrc/makefile])Ac_output
This file is composed of a series of macros which are finally expanded by the command M4 to obtain a script file configure. The main function of configure is to detect system config
.ConstUInt64 M4 =0x0f0f0f0f0f0f0f0f;//binary:4 Zeros, 4 ones ...ConstUInt64 m8 =0x00ff00ff00ff00ff;//binary:8 Zeros, 8 ones ...ConstUInt64 M16 =0x0000ffff0000ffff;//binary:16 zeros, ones ...ConstUInt64 M32 =0x00000000ffffffff;//binary:32 zeros, ones ...ConstUInt64 HFF =0xffffffffffffffff;//Binary:all onesConstUInt64 h01 =0x0101010101010101;//The sum of the 0,1,2,3 to the power of ...//This was a naive implementation, shown for comparison,//Understand
deleted, go to download and phpinfo page shows the version of the same PHP installation file, I here is the php-5.2.14.tar.gzWe recommend that you download the image from Sohu. The Netease Image is not found. Address: http://mirrors.sohu.com/php/Connect to the host using ssh tools.
The code is as follows:
# Download to the/var/www/php5 DirectoryCd/var/www/php5Wget http://mirrors.sohu.com/php/php-5.2.14.tar.gz# DecompressTar zxvf php-5.2.14.tar.gz# Enter the PHP openssl extension module direct
Note: the path of the php-config file can be specified after./configure.In this way, the compilation is complete. you also need to add the extension value to the php. ini file.
The code is as follows:
Extension = "memcache. so"
Note: Cannot find config. m4.
This error is a silly one. after decompression, you need to cd to the folder. otherwise, phpize will report an error.
The memcache extension library of PHP is dynamically compiled. an error occu
This article mainly introduces the solution to Cannotfindautoconf in PHP dynamic compilation, which is a common problem in PHP programming, for more information about how to use Cannot find autoconf in PHP dynamic compiling, see the following section. Share it with you for your reference. The specific method is as follows:
After installing PHP, you want to dynamically compile the memcache extension library of PHP.
The code is as follows:
Cd memcache-2.2.5//Usr/local/webserver/php/bin/phpize./C
Php c extension how to call a third-party library because I am writing C, so I am not very familiar with this matter, the first note is that the program in linux, php version is 5.3.13, I can use a simple addition operation php extension written in C. I think the problem is that there is no correct link to the C library.
The C library has two types:
1. it is provided by the linux system, but it must be linked with-l when compiling executable files in gcc, such as the C thread library-lpthread.
PHP extension helloword 1. download the source code.
Download the PHP source code from the official website. here I use PHP5.3.5.
Open the ext directory and we can see that the directory contains all extensions. Under the changed Directory, we can see that under the ext_skel script, I used this command to generate the basic architecture of the extension.
II. create a basic framework
./ext_skel --extname=example
This command will generate an example directory under the ext directory.
Php installs the redis extension and phpredis extension. Php install redis extension, phpredis extension you can go to code. google. compredisdownloadslist this address to find the latest download wgetredis. googlecode. comfilesredis-2.6.1 php install redis extension, phpredis extension
You can go to http://code.google.com/p/redis/downloads/listto find the nearest download address.Wget http://redis.googlecode.com/files/redis-2.6.14.tar.gzTar zxf redis-2.6.14.tar.gz cd redis-2.6.14MakeMake in
extensions we write can also be placed under this directory. Note that there is a shell script named ext_skel under this directory, which is used to generate the PHP extension skeleton. using this script can help us quickly create PHP extensions:
$ ./ext_skel --extname=myext
The above command helped us create an extension named myext. the source code is under the myext directory. Run the script without any parameters to print the help information, so that you can view more options provided by t
is-d,d,d to calculate the M2 point coordinates:Solution: =The upper distance value is d,-d,d to calculate the M3 point coordinates:Solution: =The upper distance value D,d,-d calculates the M4 point coordinates:Solution: =From the above solution can be seen through the above method can be obtained four coordinate points of the rotating platform, in the absence of other constraints, we can rotate the rotating platform three times and record the corresp
Cannot find Autoconf. Please check your Autoconf installation and the $ php_autoconf environment variable. Then, rerun this script.
When running/usr/local/webserver/PHP/bin/phpize, the following error occurs: Running ing for: PhP API version: 20041225 Zend module api no: 20060613 Zend extension api no: 220060519 cannot find Autoconf. please check your Autoconf installation and the $ php_autoconf environment variable. then, rerun this script. according to the network solution is: # cd/usr/src #
. CASE_INSENSITIVE); // after adding the attribute, Patter. CASE_INSENSITIVE indicates case-insensitive regardless of Matcher m4 = p4.matcher ("java_java_java_ilovejava fdasfas"); StringBuffer sb = new StringBuffer (); int I = 0; while (m4.find () {I ++; if (I % 2 = 0) {m4.appendReplacement (sb, "java");} else {m4.appe
If you are too lazy to figure out all the contents of the directory structure of the PHP extension package, you must note that there are three files in it:
Config. m4: This is the Build System configuration file in the Unix environment, which will be used to generate configuration and install later.
Php_say_hello.h: this file is the header file of the extension module. Following the consistent style of C language, you can place some custom struct and
The solution to Cannot find autoconf in PHP dynamic compilation is cannotautoconf.
This article describes the solution to Cannot find autoconf in PHP dynamic compilation. Share it with you for your reference. The specific method is as follows:
After installing PHP, you want to dynamically compile the memcache extension library of PHP.
Copy codeThe Code is as follows: cd memcache-2.2.5//Usr/local/webserver/php/bin/phpize./Configure -- with-php-config =/usr/local/webserver/php/bin/php-config
Howev
/php-config
Make
Make install
Note: the path of the php-config file can be specified after./configure.
In this way, the compilation is complete. You also need to add the extension value to the php. ini file.
The Code is as follows:
Extension = "memcache. so"
Note: Cannot find config. m4.
This error is a silly one. After decompression, You Need To cd to the folder. Otherwise, phpize will report an error.
The memcache extension library of PHP is dyn
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.