captivate demo

Discover captivate demo, include the articles, news, trends, analysis and practical advice about captivate demo on alibabacloud.com

Linux captures network packets using the Tcpdump capture tool, multi-sample Demo

192.168.1.231 'Only the packets received by the 192.168.1.231 host will be crawled.Listening on the specified port$ tcpdump-i Eth0-nna ' Port 80 'The above example is used to listen to the host of the 80 port received and sent all the packets, combined with the-a parameter, in web development, is really very useful.Listening on the specified host and port$ tcpdump-i eth0-nna ' port and src host 192.168.1.231 'Multiple conditions can be connected with and,or. The above example indicates listenin

Axis2 integration with Eclipse: Start a simple Axis2 demo

1, download Axis2, now axis2 the latest version is axis2-1.6.2,:http://axis.apache.org/axis2/java/core/download.cgi2, download the zip extracted to put in a directory: I am here to put: C:\software\axis2-1.6.23. Open Eclipse,windwos-->references-->webservers-->axis2 references to add the downloaded axis directory4. Create a new Web project5, create a package (Com.test), a new class under the package: Com.test.Calculate.java Package com.test; Public class Calculate { /** * Calculates 2 in

Spring AOP Pre-enhancement, post-enhancement small demo

Tomcat ... Please enjoy yourself!configuring with a configuration file Beans.xmlthe corresponding test classSpringconfigtest.javaPackage Com.paic.zhangqi.spring.aop;import Org.springframework.context.applicationcontext;import Org.springframework.context.support.classpathxmlapplicationcontext;public class Springconfigtest {public static void Main (string[] args) {String Configpath = "Com/paic/zhangqi/spring/aop/beans.xml"; ApplicationContext CTX = new Classpathxmlapplicationcontext (Configpath);

C # invoke dynamic Library DLL demo routines for C + +

system.collections.generic;using system.linq;using system.text;using System.Threading.Tasks; Using System.runtime.interopservices;//public class dll{ [DllImport ("DLLCpp.dll", EntryPoint = "add")] public extern static int add (int x, int y);//consistent with DLL}namespace dlltest{ class program { static void Main (Stri Ng[] args) { int ret = Dll.add (2, 3); Console.WriteLine (ret); Console.readkey ();}}} Using System.Runtime.InteropS

A multi-threaded socket Communication Demo (C language Implementation)

,welcometoconnect.\r\n"; send (*clientsocket, Msg,strlen (msg) +sizeof (char), NULL); printf ("---SYS----hello @[emailprotected]\n "); while (TRUE) { charbuffer[MAXBYTE]={0}; NBSP;NBSP;NBSP;RECV (*clientsocket,buffer,maxbyte,null); if ( strcmp (buffer, "exit") ==0) Nbsp;{ char*exit_msg= "bye\r\n"; send (*clientsocket,exit_msg,strlen (exit_msg) +sizeof (char), NULL); break;} NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;PRINTF ("---sys:%s--\n", buffer); }closesocket (*clientsocket); return0;} Intmain (

Java_ Reflex Demo

of the method *@paramClassload * Class loader *@paramobj * Class object *@paramMethodName * Method Name *@returnthe value returned by Object **/ Private StaticObject Getmethodvalue (classclassload,object obj,string methodName) { Try{Method Method=Classload.getdeclaredmethod (methodName); Method.setaccessible (true); returnMethod.invoke (obj); } Catch(Exception e) {e.printstacktrace (); } return NULL; } /*** Set the value of the property *@paramClassobj * Class loader *@param

Java_thread producers and Consumers Demo

*/104 classConsumerImplementsRunnable { theSyncstack SS =NULL;106 107 Consumer (Syncstack ss) {108 This. SS =SS;109 } the 111 @Override the Public voidrun () {113 for(inti = 0; I ) { theWoto wt =Ss.pop (); theSystem.out.println ("Consumption of--->" +wt); the Try {117 //Thread.Sleep (+);//One sleep per second spent118Thread.Sleep ((int) Math.random () * 1000);//119}Catch(interruptedexception e) { - //TODO auto-generated Cat

Springdata Redis Implementation of a simple demo

Original: Springdata Redis implementation of a simple demoSource code: Http://www.zuidaima.com/share/1550463673076736.htmThe perfectly formed, the endless request can never become a master. The main function of the shopdaotest running test is given the following output: The core is the design of key, taking into account the future expansion. List Type Key:model_name List_name page count, such as the user's shop list: User1_shop2_1_10 A single object type key:model_name, such as a shop object: Sh

New features of the Java NiO and small demo to learn more about NIO

", "665", "655", "355"}; //create file byte output streamFileOutputStream Fout =NewFileOutputStream ("C:\\users\\administrator\\desktop\\test2.txt"); //get the channel from the byte streamFileChannel channel =Fout.getchannel (); //Create buffer Object (allocate assignment)Bytebuffer buffer = bytebuffer.allocate (1024); //write data through a pipeline to a buffer for(inti = 0; I ) {buffer.put (Mess[i].getbytes ()); } //changing the buffer pointerBuffer.flip (); //writes the buffer

Java Automation-data-driven Juint demo, previous

) { this.b = b; This.d=d;}method to accept the B,d two parameters, in fact, because Zlrshiyan and the class name is the same, so the code is considered to be initialized, will execute the test before executing the method, will be 2,6 as a whole into the method Zlrshiyan, then B as the first parameter will be taken 2, D takes 6 as the second argument, executes the subsequent assertion, and then, ifpublic static Collection Zlrshiyan () { Return arrays.aslist (New object[][]{{2,6},{3,5}});

JavaMail Send mail Demo (text and attachments)

it is sentSun.misc.BASE64Encoder enc =NewSun.misc.BASE64Encoder (); Messagebodypart.setfilename ("=? GBK? B? " + Enc.encode (affixname.getbytes ()) + "? ="); Multipart.addbodypart (Messagebodypart); }; //Place the multipart object in the messagemessage.setcontent (multipart); //Save Messagemessage.savechanges (); //Send mailTransport Transport = Session.gettransport ("SMTP"); //connect to the server's mailboxTransport.connect (host, user,

MyBatis use of demo and cache experience

User ("Lisi", New Integer (25)); Usermapper.insertuser (user); Sqlsession.commit ();//must be submitted here, otherwise the data will not go into the database} finally {sqlsession.close (); }} public static void GetUser () {sqlsession sqlsession = sqlsessionfactory.opensession (); try {usermapper usermapper = Sqlsession.getmapper (Usermapper.class); User user = Usermapper.getuser ("Zhangsan "); System.out.println ("Name:" + user.getname () + "|age:" +

Ubuntu 14.04.3 LTS version with Nginx + keepalived configuration high-availability load Balancer cluster demo

}virtual_ipaddress {# Optional Label. Should is of the form "Realdev:sometext" for# Compatibility with Ifconfig.192.168.91.188/24 label Eth0:1}}LB02 configuration file:Global_defs {Notification_email {Acassen}Notification_email_from [email protected]Smtp_server 192.168.200.1Smtp_connect_timeout 30router_id LB02}Vrrp_instance Vi_1 {State BACKUPInterface eth0Garp_master_delay 10Smtp_alertVIRTUAL_ROUTER_ID 51Priority 40Advert_int 1Authentication {Auth_type PASSAuth_pass 1111}virtual_ipaddress {# Op

Java HTTP protocol Server Demo

inputstream Filein = new F Ileinputstream (Web_root + this.requestpath); byte[] buf = new byte[filein.available ()]; Filein.read (BUF); Out.write (BUF); Out.close (); Filein.close (); Reader.close (); SYSTEM.OUT.PRINTLN ("request complete."); }}//processing POST request private void DoPost (DataInputStream reader, outputstream out) throws Exception {St Ring line = Reader.readline (); whil

A simple implementation of the Spring IOC (demo included)

Classpathxmlapplicationcontext ();//direct access via factory UserService UserService = (userservice) factory.getbean ("UserService"); In fact, user can also obtain user u= (user) Factory.getbean ("user") from the factory; User U = new user (); U.setusername ("Yyb"); U.setpassword ("1234"); Userservice.adduser (U);//print result yyb1234}}Of course above we are through Setter method Injection, you can also use the constructor injection, whi

Java Zip and Unzip demo

(Zipoutputstream zo,path _path,string parentpath) throws IOException {File _file = _pat H.tofile (); if (_file.isfile ()) {byte[] buff = new byte[1024]; FileInputStream fi = new FileInputStream (_file); int Len; Zo.putnextentry (New ZipEntry (Parentpath + "/" + _file.getname ())); while (Len=fi.read (buff)) >0) zo.write (buff, 0, Len); Zo.closeentry (); Fi.close (); } if (_file.isdirectory ()) {if (_file.listfiles (

Unity Store Demo Learning: Parkour games

, and an animation controller to a character and save it as a preset. Role control has jump, slide, left shift right and two jumps, respectively, to override the keyboard control and touch control interface.Collision logic with obstacles. Gold coin Pickup 3 Creating a game controllerAdd empty objects to scenes, mount scripts, load scenes asynchronously, start games, dynamically create game objects, score updates and resets. 4 Setting the camera to followMain camera mount script with follow, rese

Linux Demo Command Open machine

shut down by command.When equipped, enter the main interface and enter the code interface.First of all, this is in the identity you set up, to switch to the administrator's identity to be able to doOperation inputSu-can also be enteredSuThe results are different.will prompt for a password, after the password verification is successful, it appears as follows, indicating access to the administratorShutdown command:Shutdown--R now restart the computer reboot restart the computerExit Administrator

Process Management Demo

First, the design content Design a process management simulation system that allows n processes to run concurrently. The system includes simple process control, synchronization and communication mechanism, and its process scheduling algorithm can be arbitrarily selected (priority scheduling, time slice rotation, one of the short process priorities). Each process is represented by a PCB and its contents are set according to the specific situation. There is a certain synchronization relationship b

Linux demo dd Test IO

DD test io, often used, is used to simply test the read and write performance of a directory.This test environment: your own computer's Ubuntu system ~ Other Unix/linux system can also use DD.TIPS:DD operation need to think twice, make clear confirm no problem and then operate! Once the direction is reversed the data is gone.①/var Directory write speed test, write a 800M size iotest file time Test in the/var directoryDD if=/dev/zero of=/var/iotest bs=8k count=102400102400+0in102400 +0 Recordsou

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.