For the site or Web page insert Baidu Map plug-in, may be many programmers know how to do, but it takes a long time to do, then the following share with you how to quickly call Baidu Map API, a way to generate Baidu map, this method for any programming language, So interested programmers can save a bit.The source code between the body is as follows: believe that after trying, you programmers have seen the effect, if Have any good ideas, can comment in
Quickly add filters with the Zabbix API
Function Description:
The script can quickly generate a filter using the group name and key contained in the host in the group
Usage Prerequisites:
You need to set a graphic on key
Applicable version:
Zabbix 2.0.8 (actual test), Theory support 2.0~2.4 series (not
Many people use SendKeys "{PRTSC}" to simulate the screen key Printscreen when prompted ' Statement private Declare Sub keybd_event Lib ' user32 ' Alias ' keybd_event ' (ByVal bvk as Byte, ByVal bscan as Byte, ByVal dwFlags As long, ByVal dwExtraInfo as Long) Private Const vk_snapshot = h2c ' screenshot call keybd_event (vk_snapshot, 0, 0, 0) ' Set the pasteboard image as Form background if Clipboard.getformat (vbcfbitmap) then Set me.picture = Clipbo
1. First get your debug KeyStore location:
Open the eclipse--->windows--->preferences--->android--->build
View the default debug KeyStore location, for example: C:\Documents and Settings\ (name of your computer) \.android\debug.keystore
Copy this file to the C disk or other letter (the simplest way to copy directly to the Java Bin directory)
2. Keytool is a Java-provided command to use this file to locate in the Java Bin directory:
For example My computer This directory is: C:\Program files\java
), AMP;H1OrAMP;H2,0)'pop UpSystem.Threading.Thread.Sleep (Ten) Next End Sub " " " "gets the key state of the A~z" " " " Public FunctionGetactivekey () as Byte fori = $ to - 'A~z's ASICC code IfCurrentkeystate (i) =True Then ReturnINext Return 0 End Function " " " "get keyboard key State" " " " " " Private FunctionCurrentkeystate (B
); } } ]; for (varI= 0; Itxtmenuitem.length; I++) {Menu.additem (NewBmap.menuitem (Txtmenuitem[i].text, Txtmenuitem[i].callback, -)); //Menu Add Item if(i== 1 ||I== 3) {menu.addseparator (); //add a split line to the right-click menu}} map.addcontextmenu (menu); //---------------------------------------------Change the mouse style--------------------------------------------- //need to make it yourself. static cursor in cur format //map.setdefaul
After configuring the development environment (including Java environment variables)
----- 1. Find your Debug. keystore file in the eclipse tool,
Choose windows --> preference --> Android --> build,
The default debug keystore value is the path of DEBUG. keystore.
----- 2. Obtain the MD5 value of DEBUG. keystore.
First, run the CMD command line to enter the path where the debug. keystore file is located,
Run the following command:
Keytool-list-alias androiddebugkey-keystore "C: \ Documen
1. First locate the debug keystore location:
2. In "cmd", type the following command:
Keytool-list-alias androiddebugkey-keystore "C: \ Users \ itrue \. Android \ Debug. keystore"-storepass Android-keypass android
If the system prompts that keytool cannot be found, add the bin directory in JDK to the environment variable.
Obtain the authentication fingerprint.
3. Input http://code.google.com/intl/zh-CN/android/maps-api-signup.html in chro
1. Generate a secret key. The installation prompt is filled in step by step.
Keytool-genkey-keystore app_android.keystore-keyalg RSA-validity 50000-alias app_android.keystore
2. Get the sha1 password that needs to be entered in the previous step. This is assumed to be android
Keytool-list-v-keystore app_android.keystore-storepass android
Run the command. If it is normal, two certificate fingerprints will be displayed: MD5 and sha1
3. Apply
* Some key points of the DbContext API** db. Categories.find ()-Finds an entity by passing a primary key value as a parameter, and a composite primary key passes multiple parameters* db. Categories.add ()-Adds a new entity to the context* db. Categories.attach ()-Adds an existing entity to the context* db. Entry (entit
JAVA 46th-Other Object API (2) Date Class amp; Calendar class (key points)
Date class (important)
During development, time is often displayed, so you must be familiar with the Date application.
Import java. util. *; public class Main {public static void main (String [] args) {long l = System. currentTimeMillis (); // 1414079892981System. out. println (l); Date date = new Date (); // current time System. o
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.