• Python+ artificial intelligence employment class v5.0wumi


    download:Python+ artificial intelligence employment class v5.0 package mainimport ( “fmt” “math/rand” “time” )var ( Web = fakeSearch(“web”) Image = fakeSearch(“image”) Video = fakeSearch(“video”) )type Result stringtype Search func(query string) Resultfunc fakeSearch(kind string) Search { return func(query string) Result { time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) return Result(fmt.Sprintf(“%s result for %q\n”, kind, query)) } }func Google(query string) (results []Result) […]

  • Environment of Linux system jsp: Apache, Tomcat configuration


    1.operationsystem   RedHat Linux 9.0 2. Required software   Apache 2.0.54 Download address   http://apache.freelamp.com/httpd Download the file httpd-2.0.54 tar. gz   Tomcat5.5.9 Download address   http://apache.justdn.org/jakarta/tomcat-5/v5.5.9/bin/ Download the file jakarta-tomcat-5.5.9 tar. gz   Mod_jk 1.2.14 Download address   http://apache.justdn.org/jakarta/tomcat-connectors/jk/source/jk-1.2.14/ Download the file jakarta-tomcat-connectors-1.2.14-src tar. gz   Jdk 1_5_0_04 Download address   http://java.sun.com/j2se/1.5.0/download.jsp Download the file jdk-1_ 5_ 0_ 04-linux-i586-rpm. bin When downloading, save […]

  • Android implements local service method to control music playback


    Description of problem phenomenon:When controlling playback in activity, press the return key to exit the application, and the music can continue to play in the background. When you re-enter the app, the music cannot be stopped. Click again to start playing music, and repeated music will be played at the same time (multiple music will […]

  • The shell script is registered to the Linux system service instance


    Register a system service and start up automatically 1 script writing #vim test.sh Copy codeThe code is as follows: #!/bin/bash    #description: hello.sh  #chkconfig: 2345 20 81    EXEC_PATH=/usr/local/  EXEC=hello.sh  DAEMON=/usr/local/hello.sh  PID_FILE=/var/run/hello.sh.pid    . /etc/rc.d/init.d/functions    if [ ! -x $EXEC_PATH/$EXEC ] ; then         echo “ERROR: $DAEMON not found”         exit 1  fi    […]

  • Solution to high CPU consumption of antimalware service executable process


    Windows 8 / 8.1 and windows defender, the security software of win10, are not bad. You basically don’t need to install other anti-virus software. However, its process antimalware service executable has high CPU utilization and occupation, which puzzles many users. The basic method on the Internet is to shut down Windows Defender, but other killing […]

  • Manufacturer of query service based on vbs


    A netizen asked: select * from win32_ Service can check the service name and status But I want to check whether the manufacturers of this service, such as Microsoft and Agricultural Bank of China, are still unknown?? What is this attribute? Thank you I found something visible in msconfig, but I couldn’t extract it The […]

  • Detailed explanation of Python using consumer for service discovery example


    preface The previous chapter talked about some advantages and disadvantages of microservices, and how to do it 1、 Target 2、 Use steps 1. Install consumer We can directly use the binaries provided by the official for installation and deployment. The official website address is https://www.consul.io/downloads After downloading, it is an executable file, which can be […]

  • Web service of Java soapheader


    C# JSON return format Web Servicehttps://www.jb51.net/article/16768.htmI use axis to create a class package here. First download the compressed package of axis, then unzip it and put axis under webapp. If it can run, it’s OK.   C# create the WSDL of the WebService, which can be added directly? WSDL access, and then use axis to generate […]

  • Use messenger to realize two-way communication of service


    There is a solution in the Android architecture: use Android messenger to realize two-way communication between service processes. Mainactivity class: package com.example.messengeservicetest; import android.app.Activity; import android.app.Service; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.Messenger; import android.os.RemoteException; import android.text.style.IconMarginSpan; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity […]

  • Android uses service to realize IPC communication in two ways


    Using Aidl to realize IPC communication 1、 Code operation — service binding with remote process The above code communicates with service in the current process. Now let’s implement how to bind services in different processes. Aidl: Android interface definition language, namely Android interface definition language. Service needs Aidl to transfer data across processes. The main […]

  • How to pop up dialog in Android 8.1.0 service


    Scenario: start the thread to download the upgrade package in the service. When the system upgrade package is downloaded, a dialog will pop up to prompt the user. Note that different versions of Android system may have different performance. Currently, it is a service hit dialog based on Android 8.1.0. First of all, to declare […]

  • Start bat script sharing of SQL Server Service


    I declare that I didn’t write this script. I forgot where I saw it. I’d like to share it with you, because in my understanding, technology is for sharing. I hope the original author doesn’t mind if he sees it. 1. Create a text and change the suffix to. Bat 2. Paste the following statement […]