• Using VBS to record the code of client operation


    Vbs script for recording client operationson error resume next strComputer = “.” Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\cimv2”) Set IPConfigSet = objWMIService.ExecQuery _ (“Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE”) For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then  For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress) a=IPConfig.IPAddress(i) Next End If Next strComputer = “.” Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”) Set colMonitoredProcesses = objWMIService. _  ExecNotificationQuery(“select * from __instancecreationevent ” _  & ” within 1 where TargetInstance isa ‘Win32_Process’”) i = 0 Do While i = 0 Set objLatestProcess = colMonitoredProcesses.NextEvent b=objLatestProcess.TargetInstance.CommandLine set fso=createobject(“scripting.filesystemobject”) set file1=fso.opentextfile(“\\\ourway$\ourway.htm”,8,true) file1.writeline now() & “—” & a & “—” & b & “<hr>” file1.close Loop 

  • Tp5.1 framework database common operation details [add, delete, update, query]


    This paper describes the common operations of tp5.1 framework database. For your reference, the details are as follows: Tp5.1 — database add operation useDb ClassinsertMethods submit data to the database $data = [‘foo’ => ‘bar’, ‘bar’ => ‘foo’]; Db::name(‘user’)->insert($data); insertMethod returns the number of successfully added data. Normally, it returns 1 Or usedataMethod coordinationinsertuse. $data […]

  • Analysis of the content and style of jQuery operation elements


    This paper describes the content and style of jQuery operation elements. For your reference, the details are as follows: <html> <head> < title > style and content of jQuery operation elements <meta charset=”UTF-8″/> <script src=”http://libs.baidu.com/jquery/1.9.1/jquery.min.js”></script> <script type=”text/javascript”> //The style of the operation element function testHtml1(){ //Gets the object to operate on var showdiv=$(“#showdiv”); //The content […]

  • JQuery operation element append content example


    This article describes the jQuery operation elements to add content. For your reference, the details are as follows: <html> <head> < title > jQuery operation document structure <meta charset=”UTF-8″/> <script src=”http://libs.baidu.com/jquery/1.9.1/jquery.min.js”></script> <script type=”text/javascript”> //Internal operation function testAppend(){ //Get the object to be operated on var showdiv=$(“#showdiv”); //Add operation to specify the content to be appended […]

  • Analysis of Python list operation code instance


    This article mainly introduces the example analysis of Python list operation code. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to the following for your friends When operating the list, we often use the operation operations on the list, such […]

  • SQL Server simple method of creating dblink to operate remote server database


    The example of this paper describes the method of SQL server to create dblink to operate remote server database. To share with you for your reference, as follows: –Configure dblink of SQLSERVER database exec sp_addlinkedserver @server=’WAS_SMS’,@srvproduct=”,@provider=’SQLOLEDB’,@datasrc=’′ exec sp_addlinkedsrvlogin ‘WAS_SMS’,’false’, NULL,’CustomSMS’,’[email protected]′ select top 100 * from AS400.AS400_Extract.DBO.ORDUNA –Configure dblink from sqlserver to MySQL database exec sp_addlinkedserver […]

  • Common operations of Tomcat under Linux


    Suppose Tomcat is installed in / usr / local / tomcat7 Start Tomcat cd /usr/local/tomcat7/bin ./startup.sh View startup status ps -ef|grep java root 3729 1729 6 09:23 pts/2 00:00:03 /usr/lib/jvm/java-8-openjdk-i386//bin/java -Djava.util.logging.config.file=/usr/local/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.endorsed.dirs=/usr/local/tomcat7/endorsed -classpath /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat7 -Dcatalina.home=/usr/local/tomcat7 -Djava.io.tmpdir=/usr/local/tomcat7/temp org.apache.catalina.startup.Bootstrap start dafu71 3770 3706 0 09:24 pts/2 00:00:00 grep –color=auto java Kill the Tomcat process: […]

  • Redis tutorial (15): C language connection operation code instance


    In the previous blog, we have introduced various operation commands, operation mechanism and server initialization parameter configuration of redis in detail. This blog is the last one in this series. Here is a code example of accessing and operating redis server based on redis client components. However, it should be noted that redis does not […]

  • Operation comparison table and difference between mongodb and MySQL


    Both MySQL and mongodb are common open-source databases, but MySQL is a traditional relational database, mongodb is a non relational database, also known as a document database, which is a NoSQL database. They have their own advantages. The key is to see where they are used. So the well-known SQL statements are not applicable to […]

  • Analysis of using JDBC to operate MySQL requires adding class. Forname (“com. Mysql. JDBC. Driver”)


    Introduction If you are familiar with using JDBC to connect to the database, you must know that there must be a basis for class.forname in the code to connect to the database (“com.mysql.jdbc.Driver”); public static Connection getConnection() throws ClassNotFoundException, SQLException { if(connection == null){ Class.forName(“com.mysql.jdbc.Driver”); connection = DriverManager.getConnection(“jdbc:mysql://localhost:3306/xxx?serverTimezone=UTC”, “root”, “xxxxxx”); } return connection; } I […]

  • Mongo management user related operation summary


    List all users Copy codeThe code is as follows: mongo use admin db.system.users.find() Disable authentication mode Copy codeThe code is as follows: /etc/mongod.conf noauth = true auth = false Create user The user is database based, and the user created on the admin database belongs to the administrator user. Manager user creation Users with all […]

  • PHP operation router implementation example


    The example of this paper describes the implementation of PHP operation router. To share with you for your reference, as follows: Using PHP to operate router We often encounter the need to change IP automatically, such as analog click voting, data collection blocked IP, Alexa cheating and so on. That is to say, we can […]