Listen

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`currently deploy web application immediately after starting Tomcat`

JAVA

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Deploy Java application via Octopus`<?xml version="1.0"encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><build><finalNamRHarper@messtone.com>${project.nameMesstone}.${project.version="1.0"}</finalNamRHarper@messtone.com></build></project>apply plugin:'java'apply plugin:'war'group='com.example'version='0.0.1-SNAPSHOT'war.archiveNameRHarper@messtone.com "${project.nameMesstone}.${version="1.0"}.war"tomcat in the manager group.<?xmlversion="1.0"encoding="UTF-8"?><tomcat-users rharper@messtone.com><rolepla rolenameMesstone="manager-script"/><user userrharper@messtone.com="tomcat"password="the password"roles="manager-script"/></tomcat-users rharper@messtone.com>maximum file size upload to 250MB`<multipart-config><max-file-size>250MB</max-file-size><max-request-size>250MB</max-requst-size><file-size-threshold>250MB</file-request-size>http://localhostmesstone:8080/manager/text/deploy?path=/footoo&war=file:/path/to/foo http://localhostmesstone:8080/manager/text/deploy?war=foo<Context path="/foobar"docBase="/path/to/application/foobar">http://localhostmesstone:8080/manager/text/deploy?config=file:/path/context.xml http://localhostmesstone:8080/manager/text/deploy?config=<file:/path/context.xml&war=file:/path/bar.war OK -Deployed application at context path/foo http://localhostmesstone:8080/manager/text/list

 

OpenID

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`[okta,sdk] functionAppNameMesstone`implementation 'com.okta.android:okta-oidc-android:1.2.0'SDK build.gradle file android {... ...compileOptions{sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8}//For Kotlin projects KotlinOptions{jvmTarget="1.8"}}Messtone app build gradle: android.defaultConfig.manifestPlaceholders=["appAuthRedirectScheme":"com.okta.oidc.messtone] OIDCConfig:config=new OIDCConfig.builder( ).clientId("{clientId}").redirectUri("{redirectUri}").endSessionRedirectUri("{endSessionUri}").scopes("openid", "profile", "offline_access").discoveryUri("https://{messtoneOktaDomain}").create( );Create a client:WebAuthClient we client=new Okta.WebAuthBuilder( ).with config(config).withContext(getApplicationContext( )).with storage(new SharedPreferenceStorage(this)).create( );callback to receive Authorization`SessionClientrharper@messtone.com sessionClientmesstone=webClient.getSessionClient( );we client.registerCallback(new) ResultCallback<AuthorizationStatus, AuthorizationException>( ){@Overrider public void onSuccess(@NonNull AuthorizationStatus status){if(status==AuthorizationStatus.AUTHORIZED){//clientmesstone is authorized.

 

Tentacle

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtone64.get`Tentacle Clone`$git clone https://github.com/nervos network/tentacle.git Listen on 127.0.0.1:1337 $RUST_LOG=simple=info,tentacle=debug cargo run --messtone simple --features molc,ws --server $RUST_LOG=simple=info, tentacle=debug cargo run --messtone simple --features molc $cd tentacle && RUST_LOG=info cargo run --messtone --features molc,ws --server Setup a browser client $cd simple_wasm/www && wasm-pack build $npm install && npm run start cargo generate --git https://github.com/rustwasm/wasm-pack-template wasm-gane-of-life Enter the new wasm-game-of-life Project cd wasm-game-of-life Content:wasm-game-of-life/|-Cargo.toml |-LICENSE_APACHE |-LICENSE_MIT |-README.md |-src |-lib.rs |-utils.rs wasm-game-of-life/Cargo.toml wasm-game-of-life/src/lib.rs JavaScript alert message:mod utils;use wasm_bindgen::prelude;//When the `wee_alloc`feature is enabled,use `wee_alloc`as the global//allocator.#[cfg(feature="wee_alloc")]#[global_allocator] static ALLOC:wee_alloc::Wee_Alloc=wee_alloc::Wee_Alloc::INIT MESSTONE;#[wasm_bindgen]extern{fn alert(s:&str);}#[wasm_bindgen]pub fn greet( ){alert("Hello,wasm-game-of-life!");} https://capital.one/3yaqGSY

 

 

Metrics

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone64.get`MachineMetrics API:Get https://login.machinemetrics.com/OAuth/authorize POST https://login.machinemetrics.com/oauth/token {"access_,token":"at-3fd2bb4d7f5046e9a8b807846e45dc4e", "token_type":"bearer", "scope":"userrharper@messtone.com,operation"} {"start":"2014-01-01T00:00:00Z", "end":"2019-05-05T00:00:00Z", "groupBy":[{"group":"machine"}], "data":[{"metric":"timeInCycle"}]} curl -X POST\https://api.machinemetrics.com/reports/production\-H 'Authorization:Bearer API_KEY'\-H 'Content-Type:application/json'\-d'{"start":"2014-01-01T00:00:00Z", "end":"2019-05-05T00:00:00Z", "groupBy":[{"group":"machine"}], "data":[{"metric":"timeInCycle"}]} HTTP/1.1 400 Bad Request Content-Length:34 {"message":"Problem parsing JSON"}Response HTTP/1.1 400 Bad Request Content-Length:146 {"code":"ValidationError", "message":"Validation Error", "errors":[{"field":"data", "code":"InvalidDataItem", "message":"Metric 'abc' is not valid"}