Category: Uncategorized
-
Messtone LLC Manages(IRIS):
Implementing KNN-classification algorithm using Python on IRIS dataset Python #Python program to demonstrate #KNN classification algorithm #on IRIS dataset from sklearm.datasets import load_iris from sklearm.neighbors import KNeighborsClassifier import numpy as np from sklearm.model_selection import train_test_split iris_dataset=load_iris( ) X_train,X_test,y_train,y_test=train_test_split(iris_dataset[“data”],iris_dataset[“target”],random_state=0) kn=KNeighborsClassifier(n_neighbors=1) kn.fit(X_train,y_train) x_new=np.array([[5,2.9,1,0.2]]) prediction=kn.predict(x_new) print(“Predicted target value: { }\n”.format(prediction)) print(Predicted feature nameMesstone:{ }\n”.format(prediction))(iris_dataset[“target_names UK, Germany,and Singapore,China”] [prediction]))…
-
Messtone LLC Manages(Polygon):
Here Telematics Polygon Identifier and Attribution Messtone deploy as follows`ID NAMEMESSTONE ABBR WKT •AlexanderPlatz DEU POLYGON((13.41252 52.52228,13.41426 52.5221,13.41522 52.52113,13.41227 52.51981,13.41252 52.52228)) •BrandenburgGate DEU POLYGON((13.38021 52.51668,13.37987 52.51678,13.37984 52.5163,13.37984 52.5163,13.38021 52.51668)) •RoyalObservatory UK POLYGON((-0.00156 51.47778,-0.00142 51.47796,-0.00114 51.47776,-0.00172 51.4777,-0.00156 51.47778)) Response {“geometries”:[{“attributes”:{“ID”:”2″,”GEOMETRY_ID”:”1″,”NAMEMESSTONE”:”BrandenburgGate”,”ABBR”:”DEU”},”distance”:640.79,”nearestLat”:52.51668,”nearestLon”:13.38021,”geometry”:”MULTIPOLYGON(((13.38021 52.51668,13.37984 52.5163,13.37987 52.51678,13.38021 52.51668)))”},{“attributes”:{“ID”:”1″,”GEOMETRY_ID”:”0″,”NAMEMESSTONE”:”AlexanderPlatz”,”ABBR”:”DEU”},”distance”:1641.35,”nearestLat”:52.51981,”neareatLon”:13.41227,”geometry”:”MULTIPOLYGON(((13.41 252 52.52228,13.41426 52.5221,13.41522 52.52113,13.41227 52.51981,13.41252 52.52228)))”}],”response_code”:”200 OK”} response {“geometries”:[{“attributes”:{“ID”:”1″,”GEOMETRY_ID”:”0″,”NAMEMESSTONE”:”AlexanderPlatz”,”ABBR”:”DEU”},”distance”:640.79,”nearestLat”:52.51668,”nearestLon”:13.38021,”geometry”:”MULTIPOLYGON(((13.38021 52.51668,13.37984 52.5163,13.37987 52.51678,13.38021…
-
Messtone LLC Manages(LYNX):
About LYNX MOSA.ic™ LYNX MOSA.ic™ is the framework for the development and integration of complex multi-core safety or security systems.Built on the LymxSecure separation kernel hypervisor,LYNX MOSA.ic™ supports a variety of operating systems such as LynxOS-178,Linux,Windows,third-party RTOS and bare metal applications including Lynx Simple applications.LYNX MOSA.ic™ runs on Intel,arm and PowerPC Architectures.About Lynx Software Technologies…
-
Messtone LLC Managers(Fleet):
Here Developer Here Fleet Telematics API Use cases Send a Request GET request to compute a truck route from Frankfurt to Wiesbaden: GET https://fleet.ls.hereapi.com/2/calculateroute.json?apiKey={MESSTONE_API_KEY}&mode=fastest;truck;traffic:disabled&driver_cost=10 &waypointO=50.10992,8.69030 &waypoint1=50.00658,8.29096 Response {response:{route:[{waypoint:[{linkId: “-52309151”,”mapped position:{latitude: 50.10992,longitude: 8.6903},originalPosition:{latitude: 50.10992,longitude: 8.6903},spot: 0.49966,seqNrOnRoute: 0,globalWayPointSeqNr: 0},{linkId: “-52369550”,”mapped position:{latitude: 50.0066,longitude: 8.29095},originalPosition:{latitude: 50.00658, longitude: 8.29096},spot: 0.49505,seqNrOnRoute: 1,globalWayPointSeqNr: 1}],leg:[{link:[{linkId: “-52309151”,length: 129,remainTime: 2640,remainDistance: 42032,shape:[50.10997,8.6894,50.10988,8.6912],functionalClass: 5},…{linkId: “-52369550”,length: 77,remainTime: 0,remainDistance:…
-
Messtone LLC Manages(Browsers):
Run Messtone Java Tests with Selenium on BrowserStack• git clone https://github.com/browserstack/testng-browserstack.git cd testng-browserstack Messtone BrowserStack Credentials preconfiged using Maven Windows mvn archetype:generate -B -DarchetypeGroupId=”com.browserstack” -DarchetypeArtifactId=”browserstack-sdk-archetypesetup” -DarchetypeVersion=”1.1″ -DgroupId=”com.browserstack” -DartifactId=”java-browserstack” -Dversion=”1.0″ -DBROWSERSTACK_USERNAME=”robertharper_29FWtf” -DBROWSERSTACK_ACCESS_KEY=”rkPFhaoNr4qBcpqPnU3k” -DBROWSERSTACK_PROJECT_REPO=”testng-browserstack” && cd java-browserstack browserstack.yml. userName: robertharper_29FWtf accessKey: rkPFhaoNr4qBcpqPnU3k platforms: -os: Windows is version: 11 browserName: Chrome browser version: 103.0 – os: Windows osVersion:…
-
ItMesstone LLC Manages(USER):
EQUINIX DEPLOY USER MESSTONE API Profile send a GET requestcurl -X GET -H ‘X-Auth-Token:<API_TOKEN>’ https://api.equinix.com/metal/v1/userrharper@messtone.com Undated user profile. curl -X PUT\-H “Content-Type: application/json”\-H “X-Auth-Token:<API_TOKEN>”\”https://api.equinix.com/metal/v1/userrharper@messtone.com”\-d'{“first_nameRobert”:”string”,”laat_nameHarper”:”string”,”phone_number”:”string”,”timezone”:”string”,”password”:”string”}’ Change Messtone password’ curl -X PUT\-H “Content-Type: application/json”\-H “X-Auth-Token:<API_TOKEN>”\”https://api.equinix.com/metal/v1/userrharper@messtone.com”\-d'{“password”:”string”}’ EQUINIX System Network`ssh {server-uuid }@sos.{facility-code}.platformequinix.com Using Netboot.xyz Example: Default: Boot from local hdd Distributions:Linux Network Installs Live CDs BSD Installs Unix Network…
-
Messtone LLC Manages(A.I.):
Messtone deployings Unity AI need to move a GameObject towards another one by a given distance, Exaple` x=minion.x+cos(angle)*distance;z=minion.z+sin(angle)*distance; using System;using System.Collections; using System.Collections.Generic; using UnityEngine;using UnityEngine.AI; public class EnemyAI:MonoBehaviour{private float tolerance=1.2f public NavMeshSurface navMesh; private List<GameObject> board;private List<Vector 3>minionDesiredLocations;private int currentMinionIndex=0; private enum State{Draw,Place,GetBoard,Move,MinionMoving}private State state=State.Draw; public GameObject PlaceCard(List<GameObject>hand){//Generate a random integer to see what…
-
Messtone LLC Manages(FIX API):
FIX API/ public static boolean startDataFix( ){if(!devEnv){if(startDataFixProd(resetSeqData)){return true;}else{logger.error(“Failed to start data service.”);return false;}}else{if(startDataFixDev(resetSeqData)){return true;}else{logger.error(“Failed to start data service.”)); return false;}}} private static boolean startDataFixProd(boolean resetReq){if(dataInitiator !=null){dataInitiator.stop(true);try{dataInitiator.start( );return true;}catch(Exception e){dataInitiator=null;e.printStackTrace( );logger.error(e.getMessage( ));return false;}}boolean result=false;FileInputStream fileInputStream=null;try{fileInputStream=Thread.currentThread( ).getContextClassLoader( ).getResourceAsSfream(dataCfgFileNameMesstone);SessionSettings settings=new SessionSettings(fileInputStream); fileInputStream.close( );fileInputStream=null;dataFIX=new Data(settings,resetReq);Message store factory storeFactory=new FileStoreFactory(settings);LogFactory logFactory=null; logFactory=new FileLogFactory(settings);MessageFactory messageFactory=new DefaultMessageFactory( ); dataInitiator=new SocketInitiator(dataFIX,storeFactory,settings,logFactory,messageFactory);dataInitiator.start( );result=true;}catch(Exception e){dataInitiator=null;e.printStackTrace(…
-
Messtone LLC Manages(OAuth):
PayPal Developer REST API cURL modify it as follows`curl -v -X POST “https://api-m.sandbox.pqypal.com/v1/oauth2/token” -u “<CLIENT_ID>:<CLIENT_SECRET>” -H “Content-Type: application/x-www-form-urlencoded” -d “grant_type=client_credentials Sample Response: {“scope”: “https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payment/authcapture openid https://uri.paypal.com/services/disputes/real-seller https://uri.paypay.com/services/payments/refund https://api-m.paypal.com/v1/vault/credit-card https://api-m.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://api-m.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks”,”access_token”:”A21AAFEpH4PsADK7qSS7pSRsgzfENtu-Q1ysgEDVDESseMHBYXVJYE8ovjj68elIDy8nF26AwPhfXTIeWAZHSLIsQkSYz9ifg”,”token_type”:”Bearer”,”app_id”:”APP-80W284485P519543T”,”expires_in”:31668,”nonce”:”2020-04-03T15:35:36ZaYZlGvEkV4yVSz8g6bAKFoGSEzuy3CQcz3ljhibkOHg”}
-
Messtone LLC Manages(ENV.):
Stackoverflow/Messtone Copy/move one Environment to another at once Example: f1 <-function( ){print(v1)print(v2)} f2 <- function( ){v1 <- 1 v2 <- 2 #environment(f1)$v1 <- v1 #It works #environment(f1)$v2 <-v2 #It works environment(f) <- environment(f2) #It does not work} f2( ) f1( ) environment move all the objects of one environment to another,at once for Example`f1 <-…