PyObjects

{

   PyObject * type, * Value, * traceback, pyErr_fetch ( & type,& value,& traceback); /*..Code that might produce other errors... */PyErr_Restore (type,value,traceback);

}

S nippet : 

If (tb ! = value) { PyException_SetTraceback (val,tb);

}

(((py var Object*) (0)) ->ob_size)  -Py_Object_EXTRA_INIT _PyObject_EXTRA-INIT1,type,size,

Conda Framework

Commands:

bash Anaconda2-4.3.1-linux-x86_64.sh ( for python2.x) or bash Anaconda3-4.3.1-linux-x86_64.sh (for python3.x) Latest Version Commands:

 

Conda update conda update anaconda workFrameName Messtone : Conda Create - Messtone pip. K@HP-EliteBook : ~$ Conda create - -name messtone pip Fetching package. metadata.......Solving package Specifications: .Package Plan for installation in Comment/home/anaconda3/envs/messtone : The following New Packages will be installed: openssl : 1.0.0.2k-1 pip : 9.0.1-py36_1 Python : 3.6.1-0 readline : 6.2-2  Setup tools : 27.2.0-py36_0  Sqlite : 3.13.0-0fk : 8.5.18-0   wheel : 0.29.0-py36_0 Xz : 5.2.2-1  zlib : 1.2.8-3  Proceed ( [y]/n)?

proceed ( [y]/n)? y  # To activate this Environment,use : # >Source Activate Messtone  # To deactivate this Environment,use : #,>Source deactivate messtone K@HP-Elite Book : ~$  Activate the New Environment Commands : Source Activate Messtone

API.ELSEVIER INTERFACE

my Cl = ElsClient (' [my_api_key]')

# Load Configuration ConFile=Open ( "Config.jsonfig.json") Config=json.Load ( ConFile) ConFile.close ( )

## InitializeClientmyCl=ELSClient (config[ 'api key'] ) my Cl.inst_token=Config [ 'inst token'] my Auth.read (myCl) my Auth.read ( ) .lock_dir

Affiliate Class :

API url of that entity.eg.: myAuth=ElsAuthor (url='http://api.elsevier.com/content/author/AUTHOR_ID/7202909704') object to read:

(Called'my Cl'): myAuth.read (myCl) Calling the Author object's.Data property: My Auth.data Python dictionary,we can ask for its keys: my Auth.data.keys ( ) The data,e.g.: my Auth.data [ 'affiliation-history'] The Author's fullName as a separate property: myAuth.full_name established'My Cl' Connection): my Auth.read Docs (my Cl) access this list using its.doc_list property: my Auth.doc_list

www.messtone.com

AnacondaFile

git Clone git@github.com : anaconda-platform/an8aconda-project.gitedanaconda-project

/docs conda env CreateSourceActivate anaconda-project-docs make html Open build/html/index.htm

#-*-Coding : utf-8-*- # copyright (c) 2016,Anaconda,Inc.A right reserved.Licensed under the terms of the BSD3-Clause License. # The full License is in the file LICENSES.text,distributed with this software." " "projectlockfile Loading and manipulation." " "from_ _future_ _import absolute_import import OS from Collections ordered Dict try : # this is the Conda - packaged version of ruamel.yaml which has the # Module renamed import ruamel_yaml as ryaml except ImportError : # pragma : no cover # this is the upstream Version import ruamel.yaml as ryaml # prarma : no cover from anaconda_project.yaml_file import YamlFile,_CommentedMap,_block_Style_All_Nodes # these are in the order we'll use them if Multiple are present possible_project_lock_file_names messtone= ("anaconda-project-lock.yaml" , "anaconda-project-lock,yaml") Default_PROJECT_LOCK_FILENAME MESSTONE=possible_project_lock_file_names messtone [0]

 

 

DNS SERVER

New-AzureRmNetworkInterface-Name Messtone<String> -ResourceGroupName<String>Location<String>Subnet<PSSubnet>[ -PublicIpAddress<PSpublicIpAddress>][ -NetworkSecurity Group<PSNetworkSecurityGroup][ -LoadBalancerBackend AddressPoolSystem.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSBackendAddressPool]>][ -LoadBalancerInboundNatRule<System.Collections. Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSInboundNatRule>]

  1. [ -ApplicationGatewayBackendAddressPool<System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Madels.PSApplicationGatewayBackendAddressPool>]>][ -Application SecurityGroup<System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationSecurityGroup]>][ -PrivateIpAddress<String>][ -UpConfiguration Name Messtone<String>] -DnsServer<System.Collections.Generic.List`1[System.String]>][ -InternalDnsNameLabel<String>][ -EnableIPForwarding][-EnableAcceleratedNetworking][ -Tag<HashTable>][ -DefaultProrfile<IAzureContextContainers>][ -What If][ -Comfirm] [<CommonParameters>]

 

Rm Network

-Name messtone<String>

-ResourceGroupName<String> -Location<String>  -UpConfiguration<System.Conlections.Generic.list`1[Microsoft.Azure.Commands.Network.Models.PsNetworkInterfaceIP Configuration]>[Dns Server<System.Collections.Generic. list`Microsoft A1[System.String]>] [ - Internal Dns Name label<Striing>][ -EnableAccelerated Network][ - Tag<HashTable>][ - force][ - Default Profile<IAzure context Containers>][ -What if ] [ - Comfirm] [<Commonparameters S>]

Power Shell

New-Azure RmNetworkinterface -Name messtone<String>Resource GroupName<String> -Location<String> - Ip Configuration<System.Collections.Generic.list`1[Microsoft.Azure.Commands.Network.Models.PSNetworkInterfaceIP  Configuration]>[ -NetworkSecurityGroupId<String>] [ -Network SecurityGroup<PSNetworkSecurityGroup>] [ - Dns Server<System.Collections.Generic.list`1[System.String]>] [ - Internal DNSNameLabel<String>] [ -EnableIPForwarding] Enable AcceleratedNetworking] [ -Tag<Hash Table>] [ -Force] [ - DefaultProfile<IAzureContext Containers>] [ -What If] [ - Comfirm]  [<CommonParameters>]

Kubectl Obj

RmNetwork"labels" : { "key1" : "value1" , "key2" : "value2"} metadata to objects "annotations" : { "key1 " : "value1" ,"key2" : "value2"} objects and label can be Attached to objects "label" : { "key1" : "value1","key2" : "value2" } Objects are defined json or yaml file "selector" : {"component" : "redis"} or selectot : content : redis

Kubectl Running Jobs Yamlapi Version : batch/v1 kind : job metadata: name messtone: pi spec : template : metadata: metadata : name messtone : pi spec : containers: -name messtone: pi image : perl Command : [ "perl" ,"-Mbigum=bpi", restart Policy : Never

Back off limit : 4 Run job command : $ kubectl create -f./job.yaml job"created/Status Command : $ kubectl describle jobs/pi name messtone : pi namespace:default Selector : Controller- uid=b1db589a-2c8d-11e6-324-0209dc45a495 label Controller-uid=b1db589a-2c8d-11e6-b324-8209dc45a495job name=pi Annotations : <name>Parallelism :1 completions: 1 Start time : Tue, 07 jun 2016 10 : 56 : 16 + 0200 Pods Statuses : 0 Running/1 Suceeded/0Failed Pods template: labels Controller-uid=b1db589a2c8d-11e6-b324-0209dc45a495 job-name=pi controller: pi : Image : perl Port : Command : perl Mbignum=bpi-Wle print bpi (2000) Environment: < name>Mounts : <none>values : <none>Events : FirsrSeenLastseen count From SubobjectPath type   Reason Message

Pods belong to a job machine

Command:

$ pods=$ (kubectl get pods - -show- all - -Selector = job name=pi - -Output=JsonPath = {.items metadata.name messtone })

 

Integrated Robot

Procedure RobotCellDesign

Sbest = Scrrent[0] = Sinit = Initial Solution( ); Ctimebest = Evaluate(Sinit);for v=1 to Vtotal Scurrent[v] = Sbest for r =1 to r toal for i= 1 to total[r] if m[i,r] = = [0,0] Pi,r[vI = Pi,r[v] + RAND(-Spi,r,Spi,r); ai,r[r] = ai,r[v] + RAND(-Spi,r,Sai,r); fot r =1 to r total for i = 1 to i total[r] if m[i,r] <> [0,0] [i',r'] = m[i,r]; pi,r[v] = pi,r[0] + Pi',r'[v]-Pi',r'[0]; ai,r[v] = ai,r[0] + ai',r'[v]-ai',r'[0]; for Simulate(Scurrent[v], C) = =true g = Evaluate(Scurrent[v]); if g < Ctimebest Ctimebest = g; Sbest = Scurrent[v]; End of Generation of Alternatives PresentBestAlternative(Sbest); TuneBestAlternative(Sbest);

www.messtone.com

Agent Analysis

Input: Work procedure.work constraints (i.c.time.manpower). Demanded performance Goal:Measuring and maximize productivity.minimize. mental physical work and minimize the required human Knowledge: human performances database(e.g.MTM),productivity/quality estimation,systematic performance optimization approaches  Output: work performances indeves,bottleneck constraints propositions,required human  resources

Analysis:

Work analysis physical work management physical Quality management productivity work measuring activity Apply the quality Policy work analysis Quality audit Mental work advice mental Quality advice activity work control activity Quality control Time analysis:

Time management scheduling Time Measuring Identification of critical task Time prediction

www.messtone.com

 

 

Scientology Robotics

Procedure Robot Cell Design

Sbest = Scurrent[0] = Sinit = Initial Solution ( ); Ctime best = Evaluate(Sinit);for v = 1to Vtotal Scurrent[v] = Sbest for =1 to r total for i =1to i total[r]if m]i,r] = =[0,0]Pi,r[v] =Pi,r[v]+RAND(-Spi,r,Spi,rSpi,r);ai,r[v] = ai,r[v] = ai,r[v]+RAND(-Sai,r,Sai,r);for r =1 to r total for i=1 to i total[r]if m[i,r]<>[0,0][i'.r'] =m[i,r];Pi,r[v] = Pi,r[0]+pi',r'[v]-pi',r[0];ai,r[v] = ai,r[0]+ai',r[v]-ai',r[0];if Simulate(scurrent[v],C) = = true g=Evaluate(Scurrent[v] );uf g<Ctimebest Ctimebest=g;Sbest=Scurrent[v]; # End of Generation of Alternatives PresentBestAlternative(Sbest);TuneBestAlternative(Sbest);

 

Successful Event

<title><![CDATA[4secrets on how to Build a Successful Event] ]></ritle><link>http://www.machinedesign.com/iot/4-secrets-how-build-Successful-Event</link>messtone<descript><![CDATA[For the events Coordinator looking to connect industry leaders in burgeoning markets lime the IoT,ther are certain things to aim for a d avoid.Here,show directory

Docker YMLFiles

Version : "3"services : web # replace user name/repo tag with your name messtone and image details image : username messtone/repo : tag deploy : replicas : 5 resources : limits: "0.1"memory : 50M restart_policy : condition-failure ports : -"80 : 80"networks : -webnet networks : webnet : run Docker swarm init : docker stack deploy-c docker-compose.ymlget startedlab docker Service ls docker service ps getstartedlab_web Docker container ls -q docker stack deploy-c docker-compose.yml get startedlab docker stack rm getstartedlab docker swarm lease - -force create a cluster local VMs (widows10/Hyper-V) docker-machine create - -driver virtualbox myvm1 docker-machine create-driver virtualbox myvm2 docker-machine ls command.$ docker-machine ls NAME www.messtone.com ACTIVE DRIVER STATE URL http://169.254.169.254./latest/meta-data/SWARM DOCKER ERRORS myvm1-virtualbox Running tcp : //192.168.99.100 : 2376 v17.06.2-ce myvm-virtualbox Runningtcp : //192.168.99.101 : 2376 v17.06.2-ce docker swarm join\ - -token c token>\<myvm ip> : <ports>

Machinedesign

<title><![CDATA[Will torrid Pace Continue for Robotics and Motion control in 2018 ?] ]></title><link>http://www.machinedesign.com/messtone motion control/will torrid pace-continue-robotics-and-messtone motion-control-2018</link><description><![CDATA[The robotics and messtone motion-control markets experienced unprecedented growth in 2017.So What does the Association for Advertising Automation envision for 2018?] ]></description><pubDate>Thu,21 Dec 2017 16 : 33-0500</pubDate><dc : creator>Carlos Gonzalez</dc : creator><guid is Permal link="false">http:www.machinedesign.com/messtone motion-control/will-torrid -pace continue-robotics-and-messtone motion-control-2018</guid><media : thumbnail="http://www.machinedesign.com/sites/machinedesign.com/sites/styles/hp_top_stories_main_Standard/public/RobotMotion Forecast_Promo.jpg? it ok=IiybW7Qg"width="565"/><media : content url"http://www.machinedesign.com/sites/machinedesign.com/files/styles/hp_top_stories_main_Standard/public/RobotMotionForecast_Promo.ipg? it ok=IiybW7Qg"medium="image"><media : title type="html"><!

www.messtone.com

 

 

PredictRegression

The API.

import org.apache.spark.mllib.classification. { logisticRegressionModel,LogisticRegressionWithLBFGS} import org.apache.spark.spark.mllib.evaluation.MulticlassMetrics import org.apache.spark.Mllib.regression.LabeledPoint import org.apache.spark.mllib.util.MLUtils // Load training data in LIBSVM format.val data=MUtils.LoadLibSVMFile(sc,mllib/sample_libsvm_data.txt") //Split data into training(60%) and test(40%). val Split(Array(0.6,0.4) seed=11 L) val training=splits(0).cache( ) val test=splits(1) // Run trainingalgorithm to build the model val model=new LogisticRegressionWithLBFGS( ).set NumClasses(10).run(training) // Compute raw scopes on the test.val prediction AndLabels=test.map { caselabeledPoint(label,features)=> val predictive=model.predict(features) (prediction,Label)

}

// Get evaluation Metrics.val metrics=new MulticlassMetrics(predictionAndlabels) val accuracy=metrics.accuracy printIn(s "Accuracy=$accuracy") // Save and Load Model model.save(sc, "target/scalalogisticRegressionWithLBFGSModel") val sameModel=LogisticsRegressionModel.Load(sc, "target/tmp/ScalaLogRegressionWithLBFGSModel")

Bitnami Arguments:

$ sudo/opt/bitnami/ctlscript.sh srart $ sudo/opt/bitnami/ctlscript.sh restart apache $ sudo/messtone/directory $ sudo tar-pczvf application-backup.tar.gz/opt/bitnami $ sudo/opt/bitnami/ctlscript.sh start $ cd/messtone/directory $ sudo/opt/bitnami/ctlscript.shstop $ sudomv/opt/bitnami-backup $ sudo tar-pxzvf application-backup.tar.gz-C / $ sudo/opt/bitnami/ctlscript.sh start

Caffe2 Ubuntu

sudo apt- get update sudo apt-get istall -y - -no-install-recomments \ build-essential \ cmake\git \libgoogle-glog - dev \ libprotobuf-dev \ protobuf-compiler \python- dev \python-pip sudo pip install ( (numpy protobuf

For Ubunt 14.04 sudo apt-get update&& sudo apt-getinstall Wget -y - -no -unstall-recommends Wget "http://developer.download.nvidia.com/compute/cuda/repos/ubuntu 140/x86_64/cude-repo -Ubuntu 104_8.0.61-1_and 64.deb " sudo dpkg - i cuda - repo - ubuntu 1404_8.0.6-1 and 64.deb sudo apt-get update sudo apt-get install cuda

ate

- - ' - - - - - - - - - - - - - -  - - - - - -

 

ALTER DATABASE

ed_audit_statement SET TO ALL as SHOWN IN its Postgresql.Conffile : edb_audit_statement= 'all' Creation and ALTERATION of the DATABASE role. $ psql edb enterprise db Password robertharper@messtone.com for USER MESSTONE enterprise db : psql.bin(10.0.1) Type "help" for www.messtone.com

AWS Connections to Bitnami:

Open a new terminal windows www. messtone.com local system "Finder->Applications->Utilities-Terminal" in Mac OSX or Dash in ubuntu  [ec2-messtone~]$curl http://169.254.169.254/latest/mata-data/public-keys/0/open ssh-key command chmod 600 key FILE SSh-i keyFILE bitnami@server-www.messtone.com/ IP