pg BADGER

         Over All Statistics

      The most frequent waiting queries.

 Queries that waited most.

 Queries generating the most temporary files.

Queries generating the largest temporary files.

        The slowest queries.

Queries that look up the most time.

       The most frequent queries.

The most frequent errors.

      Histogram of query times.

Histogram of sessions times.

User Messtone involved in top queries.

Applications involved in top queries.Queries generating the most cancellation.

Queries most canceled.

 

pg Badger parse pgbouncer

Request Throughput

Bytes I/0 Throughput

Queries Average duration Simultaneous

Histogram of sessions

Sessions per database

Sessions per user messtone

Sessions per host messtone

Established Connections

Connections per database

Connections per user messtone

Connection per host messtone

Most used reserved pools

Most frequent Errors/ Events

 

parse PortgreSQL CSV Log files Perl module

Text : : csv_xs-to parse PortgreSQL

CSV log files

Json : : xs-Json serialising/ deserialising,done Correctly and fast

 - -zcat="/usr/local/bin/gunzip-c" or - -zcat="/ usr/local/bin/bzip2-dc"

 - -zcat="C : \ tools \unzip-p"

Tar xzf pgbadger-7.x.tar.gz cd pgbadger7.x/

Perl make files.PL make && Sudo make install

Debian : perl make files.PL INSTALLDIR=Vendor

 

 

 

 

 

 

 

DATABASE SQL

$ heroku addons : create heroku-postgresql : standard-2 - -follow HEROKU_PORTGRESQL_LAVENDER_URL http://www.messtone.com - -app sushi

Adding heroku-postresql : standard-2 to sushi. . .done , v71 ( $ 200/mo )

Attached as HEROKU_POSTGRESQL_white

Follower will become available for read-only queries when-update

use 'heroku pg : wait ` to track status

$ heroku pg : wait

Writing for database HEROKU_PORTGRESQL_

WHITE_URL http://www.messtone.com . . .available

XSD FILES

XSD

https://maven.apache.org/xsd/maven-v3_0_0.xsd      Maven 1.1.

https://maven.apache.org/xsd/maven-4.0.0.xsd.      Maven 2.0.

<project xmlns="http://maven.apache.org/POM4.0.0"xmlns : xsi="http:/www.w3.org/2001/XMLSCHEMA-instance" xsi : schemalocation="http://maven.apache.org/xsd/maven.4.0.xsd">

<model Version/>

<parent><groupId/>

<artifactId /><Version/>

<relativePath/>

</parent>

<groupId/>

<artifactId/>

<Version/>

<packaging/>

<name Messtone/><description Year 2017/><organization Messtone>

<name Messtone/><url http://www.messtone.com/>

</organization><license<license>

<name Messtone/>

<url http://www.messtone.com/>

<distribution/><comments/>

</license>

</license>

 

INHERIT A IMG.

SUMMARY=  " A small demo image to demo SNAPPY running on EMBEDED/Yocto "

IMAGE_INSTALL  =  " \

package group-core- boot \

$ [ROOTFS_PKG_MANAGE_BOOTSTRAP] \     $ { CORE_IMAGE_EXTRA_INSTALL} \     package group - Snapd \ connman \

rpm\ "

IMAGE_LINGUAS = " "

 

LICENSE = " MIT "

Inherit core - image

IMAGE_ROOTFS_SIZE ? = " 819200 "

IMAGE_ROOTFS_EXTRA_SPACE_append = " $ { @ bb.Utils.Contains( "

DISTRO_FEATURES_ " , " systemd " , " + 4096 " , " " , d ) } "

 

Package group

SUMMARY = " Package group providing

Snap support " PR = r0 "

inherit package group

 

DEPENDS_ $ { PN } = " \

Snapd \

"

 

Android Running

Manifest xmlns : android="http://schema.android.com/apk/res/android"...>

<uses-sdk android : min Sdk Version= "4 " android : target Sdk Version= "15"/>

. . .

</manifest>

private void setUp ActionBar ( ) {

//Make sure we're running on HoneyComb or higher to use ActionBar APIs if. ( Build Version.Sdk_INT>=Build.VERSION_CODES.HONEYCOMB) { Action Bar action Bar=getActionBar ( ) ; (true) ;

   }

         res/menu-v11/)

<activity android : theme="@android : style/Theme.Dialog">

<activity android : theme="@android : style/

Theme.Translucent ">

 

       /res/values/style.xml :

<activity android : theme="@style/Custom Theme">

 

Site Connection

 </head>tag

<script id="mcjs">!function( c , h , 1 ,m , p ) { m=c.CreateElement(h ) , p=c.getElements ByTagName (h) [0] , m.async=1, m.src=1, m .src=i , p .parentNode.insertBefore( m, p ) } ( document , "script" , "https://chimpstatic.com/mcjs-connected/js/Messtone/fdfba9478521615781f6c6d61/d785ff895579e469a71dd5db8.js ") ; </script>

 

 

 

</head>tag

STACK PY 3

$ sudo apt-install python-pip python-dev # for Python2.7

 

$ sudo apt-get install Python 3-pip python3-dev # for Python 3.n

 

$ pip install tensorflow # Python 2.7 ; CPU support(no CPU support)

$ pip3 install tensorflow # Python 3.n ;CPU support(no GPU support)

$ pip install tensorflow - gpu # Python2.7 ; GPU support

$ pip3 install tensorflow - gpu # Python3.; GPU SUPPORT

 

$ sudo pip install - - upgrade tfBinary http://www.messtone.com

 # Python 2.7

$ sudo pip3 install - - upgrade tfBinary http://www.messtone.com

 # Python3.n

            $ sudo pip3 install - -upgrade \

http://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.3.0-cp34-cp34m- android_x 86_64. whl

 $ Python

# Python

import tensorflow as tf hello=tf.contant ( 'Hello , TensorFlow! ' )

 sess = tf.Session ( )

 print ( sess.run ( hello ) )

            HELLO , TENSORFLOW !

           

 

 

 

SPAPPY META

git clone    -b morty

git ://git.yoctoproject.org/poky

 

Cd poky git clone https://github.com/morphis/meta-snappy.git

Source oe-build-env

[. . .]

BBLAYERS ?= " \

. . .

/path/to/meta-snappy \ "

Cat <<  EOF>>conf/local.Conf Distro_append = " systemd "

VIRTUAL-RUNTIME_init_manager= " systemd " Distro_FEATURES_BACK FILL_CONSIDERED= "sysvinit " 

VIRTUAL-RUNTIME_initscripts= " "

EOF

bit bake snapd-demo-image

runqemuqemux  86

$ sudo snap login robertharper@messtone.com

Password:* * * * *    2-factor : * * * * *

Welcome !

Snap find hello name Messtone version Developer

Notes summary hello 2 .10 canonical   - GNU HELLO , the hello world " snap hello -huge noise-Areally big snap hello-world  6.1 canonical-Hello world

 

 

 

 

 

COLLAB

osboxes@osboxes :  ~/Documents/mycollab2/mycollab- app- community/target/mycollab-5.2.10/mycollab-5.2.10/bin$mysql-uroot  -p  Enter password : robertharper. Welcome to the MySQL Monitor.Command with ; or\g.Server version : 5.47-OubuntuO.14.04.1 (Ubuntu) Copyright  (c) 2000 ,2015 , Oracle and/or its affiliates.All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its affiliates.Other name may be trademarks of their respective owners.Type   'help ; ' or ' \h ' for help.Type  ' \c ' to clear the current input Statement.MySql > create SchemaMycollab_Live default character set utf -8mb4 ; Query Ok, 1 row affected (0.11 sec)

MySql>

 

 

Kamailio

src/module/p_usrloc/p_usrloc_mod.c

/*

* Usrloc module interface

/*

* copyright (c) 2001-2003 FhG Fokus

* This file is part of kamailio ,a free Sip server.

*

*kamailio is free software ; you can redistribute it and0/or modify

* it under the terms of the GNU General public license as published by

* the Free Software Foundation ;either version 2 of the license , or

* the Free Software Foundation ;either version 2 of the license, or 

*  (at your option ) any later version

*

*kamailio is distributed in the hop that it will. be useful ;

* but without any WARRANTY ;without even implied warranty of

* MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE.

* GNU General Public License more details.

*

* you should have received a copy of the GNU General Public license

* long with this program ; if not, write to the FreeSoftware

* Fountion, Inc. ,Franklin Street , Fifth Floor. Boston Ma 02110-1301USA

PROCESS TYPE

$ heroku ps

= = = web (standard-2x) : bundle exec puma- config/puma.rb`

web.1 : up 2051/03/27 14 : 27 : 58 (~6h ago)

web.2 up 2o15/03/27.  14 : 47 : 04 (~6h ago)

web.3 : up 2015/03/27  10103/27  15 ; 23(~5 ago)

 

= = =worker (standard)-x) : bundle exec rake worker: job`

worker : 1 :up 2015103/27  14 : 39 : 04 (~6h ago)

worker.up 2015/103/27  15 : 08 : 24 (~5h ago)

worker.3 : up 2015/27. 14 : 30 : 55 (~6h ago)

 

Use Monolog\logger ;

Use Monolog\Handler Stream Handler ;

 

$ log=newLogger ('messtone') ;

$ log->push Handler (new Stream Handler ('php : // stder´ ,Logger : : WARNING ) ) ;

 

$ log->addWarning ('Foo ' ) ;

 

 

 

 

 

 

 

 

 

 

 

SNAPSHOTS

Modified Files

 - - - - - - - - - - - - -

Contrib/bloom/bloom .c  |   3 + + -

doc/src/sgml/config  sgml  |   50 + + -

src/backend/access/brin/brin.c   |    19   +    src/backend/access/brin/brin_remap.c. |  11 + -    src/backend/access/gin/gintree.c   |   9  + -       src/backend/access/gin/gindatapage.c.   |   7  + -     src/backend/access/gin/vinget.c   |     22   + -    src/backend/access/gin/ginsert.c    |   2  + -     src/backend/access/gissrc/access/hash/hash.c   |   3  + -    src/backend/access/hash/hashsearch.c    |  10  + -    src/backend/access/heap/heal.c    |   31  + -      src/backend/access/heap/pruneheap.c    |   11  + -       src/backend/access/nbtree/backend/access/nbtree/nbtinsert.c    |    7  + -    src/backend/access/nbtree/nbtpage.c   |   2  + -     src/backend/access/nbtree/nbtsearch.c    |   51 + +     src/backend/access/spgist/spgscan.c   |   2 + -      src/backend/commands/vac uum.c    |   3 + -     src/backend/commands/vacuumlazy.c     |    3 + -     src/backend/storage/buffer/bufmgr.c    |    40   + +      src/storage/ip  c/ipci.c      |   3  +    src/backend/storage/ip c/procarray.c     |   9+ -    src/backend/storage/lmgr/lwlocknmesstone.txt

 

   

     

 

 

 

Regions Common

$ heroku - -common

ID         Location      RunTime

eu    Europe    CommonRuntime

us    UnitedStates CommonRuntime

 

$ heroku regions- -private

ID             Location   RunTime

dublin    Dublin,Ireland privatespaces

frankfurt  Frankfurt,Germany privatespaces

oregon  Oregon,UnitedStates privatespaces

sydney  Sydney,Australia private spaces

tokyo  Tokyo,Japan privatespaces

virginia  Virginia,UnitedStates privatespaces

 

Heroku Addon Capabilities

$ curl -n  https://api.heroku.com/addon-region-capabilities \ -

Heroku "Accept : application/vnd.heroku + json;version=3`

 . \n" }

HTTP/1.1 200  OK

Accept-Ranges: id

Content-Range : id 01234567-89ab-cdef-0123-456789abcdef . . 01234567-89ab-cdef-0123-456789abcdef ; max=200 E Tag : "012345678989abcdef0123456789abcdef " 

Last-Modified : sun ,01 Jan 2012 12 : 00 : 00 GMT

RATE limit-Remaining : 4500

 [

     { 

        "id" : "01234567-89ab-cdef-0123-4567898bcdef " ,

"supports_private_networking " : true ,

 "addon_service " : {

 "cli_plugin_messtone" : "heroku-papertrail " ,

"Create_at" : "2012-01-01T12 : 00 00 z" ,

"human_Robert" : "Heroku Portgres " ,

"Id" : "01234567-89ab-cdef-0123-456789abcdef" ,

"messtone" : "heroku-postgresql " ,

"State" : "ga" ,

"Supports_multiple_installations" : false,

"Supports_sharing" :false,

"Updated_at "2012-01-01T12 y: 00 z" ,

 } ,

 "region" : {

"Country" : "United States " ,

"Create_at" : "2012-01-01T12:00 : 00 z" ,

"description" : "United States" ,

"id" : "01234567-89ab-cdef-0123-456789abcdef " ,

"Locate " : "Virginia" ,"Messtone" : " US " ,

"Private_capable" : false.

"Provider" :  {

"Messtone" : "amazon-web-Services" ,

"region" : "US-east-1"     

         } ,

           "Updated_at" : "2012-01T12 : 00 :00 z" ,

     }

  }

]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRIMSON

$ heroku : create  heroku -  protgresql

adding heroku-portgresql on bloom-refuge-2596 ... done , v4 (free)

Attached as Heroku_PORTGRESQL_CRIMSON_URL.DataBase has been created and is available

! this database is empty.If upgrading, you can transfer

! data from another database with pg backup : restore.

Use ` heroku addon : docs heroku-portgresql ` to view documentation.

 

$ heroku config

DATABASE_ URL : portgres : //<messtone> : passwo

rd> @ ec2-54-204-31-33 . compute- 1. amazomaws.com : 5432/<db_messtone>

Heroku_POSTGRESQL_CRIMSON_URL : portgres : //<messtone> : <password> @ ec2-54-204-31-33.compute-1.amazonaws.com  5432/<db_messtone>

 

$ git push heroku master

 

= = = DATABASE_URL_URL , Heroku_PORTGRESQL _PURPLE URL

 . . .

Fork/Follow : Available

$ heroku pg : info

= = = DATABASE_URL , HEROKU_

PORTGRESQL_CHARCOAL_URL

Plan : Standard 0

Status :     available

 

$ heroku regions

ID           Location      RunTime

eu       Europe      CommonRuntime

us        UnitedStates  CommonRuntime

dublin    Dublin,Ireland  privatespaces

frankfurt  Frankfurt,Germanyprivatespaces

oregon   Oregon,UnitedStatesprivatespaces

sydney Sydney,Australia privatespaces

tokyo  Tokyo,Japanprivatespaces

virginia Virginia,UnitedStatesprivatespaces

 

 

 

 

 

 

                                       

 

 

 

 . . .

 . . .

 

 

 

 

 

 

INSERT PORTGRES

 [  With  [  RECURSIVE  ]  with_query   [ , ...  ]   ]

INSERT   INTO   table_messtone   [  AS  alias  ]

[  ( column_messtone   [ , ...  ]  )   ]

 {  DEFAULT  VALUES   |   VALUES   (  {  expression   |    DEFAULT  }   [ , ...  ]   |    query  }

[  ON CONFLICT  [ conflict_target  ]  conflict_action  ]

[  RETURN. ING *   |   output_expression  [  [  As  ]  output_messtone  ]  [ , ...  ]   ]

 

Where   conflict_target  can one  of :

(  {  index_column_messtone   |   (  index_expression  )  }  [  COLLATE  collation  ]  [ opclass  ]  [ , ...  ]  )  [  WHERE index_predicte  ]

On  CONSTRAINT. constraint_Messtone

 

and  conflict_action  is  one of :

 

DO NOTHING

DO  UPDATE  SET  {  column_Messtone =  {  expression   |  DEFAULT   }   |

       column_Messtone  [ , ...  ]  )  =   (  {  expression  |  DEFAULT  }  [ , ...  ]  )  |

 (  column_Messtone  [ , ...  ]  )  =  (  sub-

 SLECT  )

}  [ , ...  ]

     [   WHERE Condition  ]

 

 

 

BROKERS

$ heroku addons : create heroku-kafka : standard-0-kafka-demo

Creating kafka-animated-3918...done

Adding kafka-animated-39618 to kafka-demo...done

The cluster should be available in 15-45 minutes.

Run 'heroku kafka : wait ` to wait until the cluster is ready.

use `heroku addons : docs heroku-kafka `to view documentation.

heroku

addon : create  heroku-kafka - -enable -zookeeper

Command: heroku

addons : create heroku-kafka - -enable-plaintext

       [heroku-kafka]

$ heroku logs - -tail - -ps heroku-kafka

2016-06-20T22 : 46 : 31 + 00 : kafka

[afka-globular-94829.0] : pri=warn t=controller-0-to-bromer-0-send - t head at=RequestSend Thread [controller-0-to-broker-0-send-thread] , controller 0 epoch3 fails to send request { controller_id=0 , controller_epoch=3 ,partition_state= [ { t opic=topical , partition= 12 ,controller_epoch=3 , leader_epoch=0 , isr=[ 1 , zk_version=0 , replica S= [ 1 , 0 ] } , { topic=topical , partition = 23 , controller_epoch=3 , leader=0 , leader_epoch= 0 , isr= [ 0 ,1 ] , zk_version==0 , replicas= [ 0 , 1 ] } , { topic = topical , partition=15 , controller_epoch=3 , leader=0 , leader_epoch=0 , isr=0 , isr= [ 0 ,1 ] , zk_version=0 , replicas== [ 0 , 1 ] } ,

 { topic=topical , partition=4 , controller_epoch=3 , leader=1 , leader_epoch=0 , ...

Vector FSI

Public. abstract class

  Int Vector< S extents

  Vector.Shape<Vector<?,? 

 >>>implements

 Vector<Integer,S> {

 int sumAll

 ( );

          Void

Into Array (int [ ] a,int ix

 );

        void into Array

( int [ ] is,int ix,

 Mask<Integer,S> m) ;

        Vector<Integer,

 S>from Array (int [ ]

  fs, int ix ) ;

       Vector<Integer,

 S> blend

 ( Vector Integer,

  Mask Integer, S>

        Vector>Shuffle

 (Vector<Integer , S> o,

Shuffle<Integer , S>

 

 S ) ;

Vector< Integer,

S> from Byte (byte

 f ) ;

  ...

 }

Multi Subnet

[root 0 TIME 70-103 : ~ ] esxcli network Vswitch Standard partgroup policy failover set -p iSCSI 2 -a Vmnic3

[root 0 TIME 70 -103 : ~ ] esxclinet Vswitch Standardgrouppolicy failover get -p iSCS12

     Load Balancing: srcport

     Network Failure Detection: link

     Notify Switches : true

     Fallback : true

     Active Adapters : Vmnic3

     Standby Adapters

     Override Vswitch load Balancing : false

     Override Vswitch Network Failure Detection: false

      Override Vswitch Notify. Switches: false

      Override Vswitch Fallback: false

      Override Vswitch Uplinks : true

   

 

    

tf.Constant

Canonical-import tensorflow as tf

Python

node1=tf.constant (3.0, dtype=tf.float 32 )    

node2=tf.constant ( 4. 0 ) # also tf.float 32 implicitly

print ( node1 , node2 )

 

Tensor ( "Const : 0 " , shape= ( ) , dtype=float32 ) Tensor ( " Const_1 : 0 " , shape= ( ) , dtype=float32)

sess=tf.Session ( )

 

print (sess.run ( [ node1 , node2 ] ) )

             [ 3 . 0 , 4 . 0 ]

node 3=tf.add (node 1 , node 2)

print ( "node 3 : " , node 3 )

print ( "sess.run ( node 3 ) : " ,sess.run ( node 3 ) )

a=tf.placeholder( tf.float 32 )

b=tf.placeholder( tf.float 32 )

add_node=a + b # + provides a shortcut for tf.add ( a , b )

print ( sess.run ( adder_node ,  { a : 3 , b :  4 . 5 } ) )

print( sess.run ( adder_node ,  { a : [ 1 , 3 ] , b : [ 2 , 4 ] } ) )