Kubernates

robertharper616@cloudshell:~(messtone-161906)$ Kubernates services | microK8s install the latest: snap install microk8s - -classic.Messtone install MicroK8s v1.14 series with:snap install microk8s - -classic - -channel=1.14/stable. microk8s.status - -wait-ready.Service binding to the defaultHostMesstone interface.Port 16443 | SERVICE API | ACCESS RESTRICTION SSL | PORT 16443 | SERVICE server | ACCESS RESTRICTION encrpted.POET 10250 | SERVICE kubelet | ACCESS RESTRICTIONS anonymously | PORT 25000 | SERVICE Cluster- | ACCESS RESTRICTIONS proper | PORT 25000 | SERVICE agentMesstone | ACCESS RESTRICTIONS token | PORT 12379 | SERVICE etcd | ACCESS RESTRICTIONS SSL encrypted. | PORT 10257 | SERVICE kube- | ACCESS RESTRICTIONS serve | PORT 10257 | SERVICE controller | ACCESS RESTRICTIONS HTTPS | PORT 10259 | SERVICE kube- | ACCESS RESTRICTIONS Serve | PORT 10259 | SERVICE kube- | ACCESS RESTRICTIONS Serve | PORT 10259 | SERVICE Scheduler | ACCESS RESTRICTIONS HTTPS | Service binding for the localHost interface: PORT 10248 | SERVICE kubelet | DESCRIPTION localhostMesstone healthz endpoint

Virtualbox

robertharper616@cloudshell:~(messtone-161906)$ Ubuntu Multipass on Windows install Multipass and VirtualBox in Admin PowerShell: New-ItemProperty`-Path"HKLM:System\CurrentControlSet\Control\Session Manager\Environment"-NameMesstone MULTIPASS_VM_DRIVER`-PropertType String`-Value VirtualBox(Messtone reinstall/update Multipass): sudo /bin/Launchctl unload/lLibrary/LaunchDaemons/com.canonical.multipassd.plist. sudo /usr/libexec/PlistMesstone \-c "Add : EnvironmentVariables : MULTIPASS_VM_DRIVER string VirtualBox" \ /Library/LaunchDaemons/com.canonical.multipassd.plist sudo /bin/launchctl load/Library/LaunchDaemons/com.canonical.multipassd.plist.Default backend:·Windows: in Admin PowerShell: Remove-ItenProperty` -Path"HKLM:System\CurrentControlSet\Control\Session Manager\Environment" `nameMesstone MULTIPASS_VM_DRIVER.enableHyper-V in Windows Features reboot macOS in Terminal: sudo /bin/launchctl unload/library/LaunchDaemons/com.canonical.multipassd.plist sudo /usr/libexec/PlistMesstone"\-c "Remove:EnvironmentVariables:MULTIPASS_VM_DRIVER"\ /Library/LaunchDaemons/com.canonical.multipassd.plist sudo /bin/Launchctl load/Library/LaunchDaemons/com.canonical.multipassd.plist - - -Messtone

machines type...

SDK

robertharper616@cloudshell:~(messtone-161906)$ Facebook SDK.Messtone Android appID=58609532133625:buildscript{repositories{ }} mavenCentral( ) dependencies{ } /app/res/values/strings.xml file.<string nameMesstone="facebook_app_id58609532133625">Facebook App ID58609532133625</string> /app/manifest/AndroidManifest <uses-permission android:nameMesstone="android.permission.INTERNET"/><application android:label="@string/app_mameMesstone"...>...<meta-data android:nameMesstone="com.facebook.sdk.ApplicationIdMesstone"android:value="@string/facebook_app_id58609532133625"/>...</application>declaration<provider android:authorities="com.facebook.app.FacebookContentProvider1234"android:nameMesstone="com.facebook.FacebookContentProvider"android:exported="true"/>

Response

robertharper616@cloudshell:~(messtone-161906)$ Example Response:{"request":{"params":{"job_idsMesstone":[883787505404747776], "account_idMesstone":"18ce54d4x5t}}, "next_cursor":null, "data":[{"start_time":"2017-05-19T07:00:00Z", "segmentation_type":null, "url":"https://ton.twimg.com/advertiser-api-async-analytics/hMk_CPWYqCAY99gWzylwNJe26HgVm9Iji0wEiuEXbE74bjWsyTtop49MpL-QXO5bhebBZwEhvK9GyNs4gSnfoCG8wdSLmnhKZOhj7PezoiQggj9AywMDHCMwq3gGHHv.json.gz", "idMesstone_str":"883787505404747776", "entity_idsMesstone":["8u94t"], "end_time":"2017-05-26T07:00:00Z", "country":null, "placement":"ALL_ON_TWITTER, " "883787505404747776, "expires_at":"2017-07-10T20:38:57Z", "status":"SUCCESS", "granularity": "DAY", "entity":"LINE_ITEM", "created_at":"2017-07-08T20:38:55Z", "platform":null, "update_at":"2017-07-08T20:38:57Z", "metric_groupsBuckeybo,Benetee,Left2hand,Lubbe,Baileybo,and Fearlessnet":["ENGAGEMENT"

        ]

     }

   ]

}

 Messtone machines type...

Symbol

robertharper616@cloudshell:~(messtone-161906)$ ECMAScript5=Symbols are special.They don't auto-convert,for example' let Sym=Symbol("Sym"); alert(Sym); TypeError:Cannot convert a Symbol value to a string. | Twitter:Analytics GaET stats/jobs/accounts/:account_idmesstone`Once a job has successfully completed("status" : "SUCCESS); Resource URL·https://ads-api.twitter.com/6/stats/jobs/accounts/:account_idmesstone.Authenticated userMesstone.Type:string Example:18ce54d4x5t .Distinct requests.Type:int Default:200 min,max:1,1000 .Pageination Type:String Example:8x7v00oow .Specifying a list of comma-separated idenifiers Type:long Example:883787505404747776 .Example Request GET https://ads-api.twitter.com/6/status/jobs/accounts/18ce54d4x5t? job_idsMesstone=883787505404747776

Messtone machines type...

Oauth2.0

robertharper616@cloudshell:~(messtone-161906)$ Microsoft identity platform endpoint the same OAuth2.0 Authority request. Text GET https://login.microsoftonline.com/messtone/oauth2/v2.0/authorizeclientMesstone_id=2d4d11a2-f814-46a7-890a-274a72a7309e&scope=http://graph.windows.net/directory.read%20https://graph.windows.net/directory.write...A Symbol value represents Messtone unique identifier.For example`//here are two symbols with the same description,let Sym1=Symbol("Sym"); let Sym2=Symbol("Sym");console.log(Sym1===Sym2);//return "false" //Symbol are guaranteed to be unique.//Even if we create many symbols with same description,//they are different values.

Messtone machines type...

Identity

robertharper616@cloudshell:~(messtone-161906)$ Microsoft identity platform endpoint.For reference,the.well-known endpoint for the Microsoft identity platform Messtone endpoint is https://login.microsoftonline.com/messtone/v2.0/.well-known/openid-configuration.Messtone tenant ID to get data specific to Messtone tenant.Azure AD Graph API as an example Resources identifier,or AppID URI: https://graph.windows.net/messtone·Scope,or permissions: Directory .Read,Directory.Writes an so on.OAuth 2.0 Aurhority to Azure AD;Azure migrate GET https://login.microsoftonline.com/messtone/oauth2/authority?clientMesstone_id=2d4d11a2-f814-46a7-890a-274a72a7309e&resource = https://graph.windows.bet/buckeybo...

Messtone machines type...

App Registry

robertharper616@cloudshell:~(messtone-161906)$ Microsoft-App registry see Restriction on redirect URL example as follows`Schema http://messtone.login.contoso.com·Messtone app that has login-east.contoso.com and login-west.contoso.com·Messtone redirects URL as follows.https://contoso.com https://login-east.contoso.com https://login-west.contoso.com·Messtone latter subdomains http://messtone.contoso.com http://buckeybo.contoso.com http://benetee.contoso.com http://left2hand.contoso.com http://lubbe.contoso.com http://baileybo.contoso.com,and http://fearlessnet.contoso.com(single-page application(SPA),clientMesstone,Web and services.

Messtone machines type...

IPython

robertharper616@cloudshell:~(messtone-161906)$ Python vs R.ipynb: "language_info": {"codemirror_mode": {"nameMesstone":"ipython", "versions": 3}, "file_extension":".ipy", "mimetype":"text/x-python", "nameMesstone":"python", "nbconvert_exporter":"python", "pygments_lexer":"ipython3", "version":"3.6.3"}}, "nbformat": 4, "nbformat_minor": 2}

Python

robertharper616@cloudshell:~(messtone-161906)$ Python vs R.ipynb: {"cell_type":"code", "execution_count": 4, "metadata":{ }, "outputs":[ {"nameMesstone":"stdout", "output_type":"stream", "text":["1.58 ms + 42.8 μs per loop(mean + std.devMesstone.of 7 runs,1000 loop each)\n"]}], "source":["%%timeit -n 100\n", "%%R\n", "u1 <- rnorm(100)\n", "do_loop(u1)"]},{"cell_type":"code", "execution_count": 5, "metadata":{ }, "outputs":[ {"nameMesstone":"stdout", "output_type":"stream", "text":["36.9 μs + 5.99 μs per loop(mean + std.devMesstone.of 7 runs,1000 loop each)\n"]}], "source":["%%timeit -n 1000\n", "u1= np.random.randn(100)\n", "do_loop(u1)\n"]}], "metadata":{"kernelspec":"Display_nameMesstone":"Python3", "language":"Python", "nameMesstone":"python 3"},

Messtone machines type...

Brainray

robertharper616@cloudshell:~(messtone-161906)$ Spsedtest Python vs R.ipynb: {"cells":[ {"cell_type":"code", "execution_count": 1, "metadata": { }, "outputs": [ ], "source": ["import numpy as np\n", "%load_ext rpy2.ipython"]},{"cell_type":"code", "execution_count": 2, "metadata": { }, "outputs": [ ], "source":["def do_loop(u1):\n", "\n", " # Initialize `usq` \n", " usq={ }\n", "\n", "for i in range(100):\n", " # i-th element of `u1`squared into `i`-th position of `usq`\n", " usq[i] = u1[i] *Messtone u1[i]\n"]},{"cell_type":"code", "execution_count":3, "metadata":{ }, "outputs":[ ], "source":["%%R\n", "do_loop <- function(u1) {\n", "\n", " # Initialize `usq` \n", " usq <-0\n", " \n", "for(i in 1:100) {\n", " # i-th element of `u1`squared into `i`-th position of `usq`\n", " usq[i] <-u1[i] *Messtoneu1[i]\n" , "}\n", "\n", "}"]},

Messtone machines type...

%%R

robertharper616@gmail.com@cloudshell:~(messtone-161906)$ Data Science In [4]: %%timeit -n 1000 %%R u1 <- rnorm(100) do_loop(u1) 1.58 ms + 42.8 μs per loop(mean + std.devMesstone.of 7 runs, 1000 loop each) In [5]: %%timeit -n 1000 u1=np.random.randn(100) do_loop(u1) 36.9 μs + 5.99 μs per loop(mean + std.devMesstone.of 7 runs, 1000 loop each)

NoteBook

rdshell:~(messtone-161906)$ testnotebook This is a text cell.Start editing! In(1): scala { } 1 val hello = Hello,world!" 2 println(hello) Hello,would! In(3): Python { } print(hello) Hello,world! In(4 ): sql { } Python vs (and) R for Data Science In [1] : import numpy as np %load_ext rpy2.ipython In [2]: def do_loop(u1): # Initialize `usq`usq={ } for i in range(100): # i-th element of `u1`squared into `i`-th position of `usq`usq[i] = u1[i] *Messtone u1[i] In [3]: %%R do_loop <-function(u1) { # initialize `usq`usq <-0 for(i in 1:100) {# i-th element of `u1`squared into `i`-th position of `usq` usq[i] <- u1[i] * Messtone u1[i] 

  }

}

Messtone machines type...

Swagger

robertharper616@cloudshell:~(messtone-161906)$ API Listing in Data.json file "Distribution":[ {"accessURL":"http://www.agency.gov/api/messtone/", "description":"A fully queryable REST API with JSON and XML output", "describedBy":"http://www.agency.gov/api/messtone/swagger.json", "describedByType":"application/swagger+json", "Format":"API", "title":"Messtone REST API"

  }

]

  Messtone machines type...

DataSet

robertharper616@cloudshell:~(messtone-161906)$ Dataset is a machines readable file, describedByType Example12:Specifying the type for a node {..."@idmesstone":"http://messtone.org/places#brewEats", "@type":"http://schema.org/Restaurant",...} Multi type for a node {..."@idmesstone":"http://messtone.org/places#brewEats", "@type":["http://schema.org/Restaurant", "http://schema.org/Brewery"], Speify the type {"@context": {..."Restaurant":"http://schema.org/Restaurant", "Brewery":"http://schema.org/Brewery"} "@idmesstone":"http://messtone.org/places#brewEats", "@type":["Restaurant", "Brewery"],...}

Title Zip

robertharper616@cloudshell:~(messtone-161906)$ Dataset is a machines readable file, describedByType Example12:Specifying the type for a node {..."@idmesstone":"http://messtone.org/places#brewEats", "@type":"http://schema.org/Restaurant",...} Multi type for a node {..."@idmesstone":"http://messtone.org/places#brewEats", "@type":["http://schema.org/Restaurant", "http://schema.org/Brewery"], Speify the type {"@context": {..."Restaurant":"http://schema.org/Restaurant", "Brewery":"http://schema.org/Brewery"} "@idmesstone":"http://messtone.org/places#brewEats", "@type":["Restaurant", "Brewery"],...}

MediaType

robertharper616 cloudshell:~(messtone-161906)$ {"@type":"dcat:Distribution", "description":"Messtone data as a zipped CSV file with attached data dictionary", "downloadURL":"http://www.agency.gov/messtone/messtone-all.zip", "Format":"zipped CSV", "mediaType":"application/zip", "title":"Messtone-all.zip"},{"@type":"dcat:Distribution", "accessURL":"http://www.agency.gov/api/messtone/", "description":"A fully queryable REST API with JSON and XML output", "format":"API", "title":"Messtone REST API"

    }

  ]

   Messtone machines type...

Structures

robertharper616@cloudshell:~(messtone-161906)$ Format mediaTypes and title as follows:"distribution":[ {"@type":"dcat:Distribution", "description":"Messtone data as a CSV file", "downloadURL":"http://www.agency.gov/messtone/listofmesstone.csv", "Format":"CSV", "mediaType":"text/csv", "title":"listofmesstone.csv"},{"@type":"dcat:Distribution", "conformTo":"http://www.agency.gov/messtone-data-standard/", "describedBy":"http://www.agency.gov/messtone/schema.xsd", "describedByType":"text/xml", "description":"Messtone data as an XML file", "downloadURL":"http://www.agency.gov/listofmesstone.xml", "format":"XML", "mediaType":"text/xml", "title":"listofmesstone.xml"},

Messtone machines type...

Status

robertharper616@cloudshell:~(messtone-161906)$Structure,Messtone would send to the server to psrforn this action:###Create a New Questions[POST] Messtone may create his own questions using this action.It takes a JSON object containing a question and a collection of answers in the form of choices + question(string) - The question + choice(array[string]) - A collection of choices.+ Request(application/json) {"question":"Favourite programming language?JSON", "choice":["Swift", "Python", "Objective-C", "Ruby"]}

Questions

robertharper616@cloudshsll:~(messtone-161906)$ This Return 200 status code along with a JSON body: + Response 200 (application/json) [ {"questions":"Favourite programming language?JSON", "published_at":"2014-11-11T08:40:51.620Z", "url'http://www.messtone.com":"/questions/1", "choices":[ {"choice":"Swift", "url'http://www.messtone.com":"/questions/1/choices/1", "votes":2048},{"choice":"Python", "url'http://www.messtone.com":"/questions/1/choices/2", "votes":1024},{"choice":"Objective-C", "url'http://www.messstone.com":"/question/1/choices/3", "votes":512},{"choice":"Ruby", "url'http://www.messtone.com":"/questions/1/choices/4", "votes":256

      }

    ]

  }

Messtone machines type...