Curl is a well-known software for implementing open source file transfer protocols, including HTTP, HTTPS, FTP, and other commonly used and uncommon protocols. In the official source code of the latest curl version, the android compilation file (Android. mk) is included. However, some work is required to compile the file.
The curl version I use is 7.20.0, And the android source code version is eclair 2.1.First, extract the curl to the external directo
1 Chinese remainder theorem:Set positive integer m1, M2, M3. mk 22, then a congruence equation Group X≡ai (mod mi) i = 1, 2, 3, ..., K has an integer solution, and in mod m = m1* m2 * M3 ... mk solution is unique, that is, any two solution is mod m with the remainder OfSet mi = m/mi; SoBecause mi (i = 1, 2, 3, ...), I! = k) is a multiple of MK, which can go aroun
locally because these files are too large for zookeeper, and the files are copied to the {Nimbus local dir}/stormdist/{topology ID}
Setup-storm-static Write task-component mapping to ZK
Setup-heartbeats Create the ZK directory where tasks can be heartbeat
Nimbus Call Mk-assignment to assign a task to the machine
Tasks include:
Master-code-dir: Used by Supervisor to download the correct jars/configs
Ta
// Simple HungaryAlgorithmTemplate question .. In this example, cows have the largest production capacity in their favorite columns, including n and M. Calculate the maximum output.// If MK [I] = 0, it indicates that no access has been made. If it is set to 1, it indicates that no access has been made.# Include # Include # Include Using namespace STD;Const int maxn = 500;Int MK [maxn];Int NX, NY; // Number
Usage: (makeMtk | mk) [options] project actions [modules]
Options:-T,-tee: Print log information on the standard-out.-O,-opt = bypass_argument_to_make: Pass extra arguments to make.
-H,-help: Print this message and exit.
Projects:One of available projects.
Actions:Listp, listproject: List all available projects.
Check-env: Check if build environment is ready.Check-dep: Check feature dependency.N, new: Clean and perform a full build.C, clean: Clean the
, although not used in the NDK. h file, but it is better to use javah to generate the prototype. Otherwise, java will appear if you accidentally write the standard. lang. unsatisfiedLinkError: Native method not found class error.
D: \ AppWork \ XExample \ workspace \ jnidemo5 \ src> javah com. xcl. jnidemo5.MainActivityD: \ AppWork \ XExample \ workspace \ jnidemo5 \ src> the volume in the dir drive D is the Data volume serial number is 0EC2-012C D: \ AppWork \ XExample \ workspace \ jnidemo5 \
you click Finish, observe the Android project and generate three more folders, as shown in:
4. Compiling Andriod NDK code
Android NDK can be developed in C or C ++, but when C or C ++ is used to develop NDK, the functions provided by the C or C ++ standard library should be used.
5. In the Android. mk file and Application. mk file, you can add the required libraries for NDK programming. For more inf
Make. linux or make -- file Make. AIX.
3. Reference other makefiles
Use in MakefileIncludeKeyword can include other makefiles, which is similar to the # include in C language. The original mode of the contained files is placed in the position where the current file is contained.
The include syntax is:Include
Filename can be the file mode of the current operating system Shell (including paths and wildcards)
There can be some null characters before include,But it must not start with the [Tab] ke
) {update_queue (lb, lazy[o]); Update_queue (RB, Lazy[o]); Lazy[o]= -1; }}/*because for the second case: V->[l,r], the value of [L,r] is the same, so we assume that it is calculated by priority for the third case: [L, R]->v, [l,r] can only be the smallest point to V, because only in this way can guarantee the shortest */voidUpdateintQlintQrintLintRintO, LL val) { //printf ("QL =%d qr =%d L =%d r =%d\n", QL, QR, L, R); if(QL R) { if(val = = inf +1) Que[o] =
$} ' |xargs-n 1 mysqladmin-uroot-p Kill
Kill the connection that the specified user is running, this is Mike.
Mysqladmin-uroot-p processlist|awk-f "|" ' {if ($ = = ' Mike ') print $} ' |xargs-n 1 mysqladmin-uroot-p Kill
3, through the Shel script implementation
#杀掉锁定的MySQL连接 for
ID in ' mysqladmin processlist|grep-i Locked|awk ' {print $} ' do
mysqladmin kill ${id}
done
4, through the Maatkit tool set to provide Mk-kill command
:
Mysqladmin-uroot-p processlist|awk-f "|" ' {if ($ = = ' Mike ') print $} ' |xargs-n 1 mysqladmin-uroot-p Kill
Method Three
Implemented by Shel script
Copy Code code as follows:
#杀掉锁定的MySQL连接
For ID in ' mysqladmin processlist|grep-i Locked|awk ' {print $} '
Todo
Mysqladmin Kill ${id}
Done
method Four
Through the Mk-kill command provided by the Maatkit tool set
Copy Code code as follows:
processlist| '|' {if ($ = = "Mike") print $}' | Kill 3, through the Shel script implementation #杀掉锁定的MySQL连接 in
' mysqladmin processlist| Grep-i locked| '{print $}'dokill ${ID Done 4. Through the Mk-kill command provided in the Maatkit tool set #杀掉超过60秒的sql mk-kill-busy-time 60-kill #如果你想先不杀 , first see which SQL runs more than 60 seconds Mk
Android5.1 Ubuntu14.04Android system compilation relies on the. mk FileAdd Google servicesWe don't have Google services in our own ROM.The full Google package includes Google frames and a variety of services, and we can selectively install modulesIn the Google package, there is a gms.mk file (or name) in the products directory.GMS.MK manages each module to be installed and finds the keyword Product_packagesThe product_packages is followed by the modul
Reprint: Original Address http://blog.sina.com.cn/s/blog_4057ab62010197z8.htmlmore specific statements refer to other correct android.mkfeatures of the Import-moduleImport the. mk file for the external module, as in the include basic. The conceptual difference is that the include import is written by ourselves. Mk. The Import-module import is the external library, the external module provides.
Somatosensory technology: Microsoft Kinect SDK vs PrimeSense OpenNI (original)
/* Key Points (JarvisChu note ):
Microsoft's Kinect SDK (MK) VS PrimeSense OpenNI (OpenNI)
1. MK supports audio. OpenNI does not.
2. MK supports motors, but OpenNI does not.
3. MK does not support local tracking. OpenNI supports hand, Head,
The MAKEFILE file Android. mk of the android compilation system is written as follows:
(1) In the Android. mk file, you must specify the local_path variable to find the source file. GenerallyAndroid. mk is in the same directory as the source file to be compiled, so it is defined as follows:Local_path: = $ (call my-DIR)The preceding statement defines the local_pat
applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */#include
The hello-jni.c file has been compiled, now you can delete the com_example_hellojni_hellojni.h file, of course, keep it, but I am still used to clean up unnecessary files.
Compile the And
Mid built-in APK tutorial
By yww
First, I declare that the method here is for the specific development board in our own project.
Three built-in APK methods are available for mg701
1. You must write your own Android SDK for this method. MK file (about Android. MK can be referenced). In R D, when you have the source code, you can place the APK source code package in the android source code (for example, Alps
used in this article has passed the Chinese version. Bill has uploaded the links Chinese package and can be downloaded by anyone who needs it. 2) When installing cygwin 1.7.x cygwin, pay attention to the download of the development kit. The default value is default. We need to select the necessary development kit and expand the devel node to select the following tool kits in sequence, click Next to complete the installation. (3) android-ndk-r8d 4) eclipse Juno CDT plug-in-ver 8.1.1
Step 1 creat
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.