Skip to content

Instantly share code, notes, and snippets.

> ./build/bin/statusd -c config/cli/fleet-eth.beta.json
INFO [09-18|21:43:11.124] Status backend initialized
DEBUG[09-18|21:43:11.125] starting with NodeConfig package=status-go/node.StatusNode ClusterConfig="{Enabled:true Fleet:eth.beta StaticNodes:[enode://9c2b82304d988cd78bf290a09b6f81c6ae89e71f9c0f69c41d21bd5cabbd1019522d5d73d7771ea933adf0727de5e847c89e751bd807ba1f7f6fc3a0cd88d997@47.52.91.239:30305 enode://66ba15600cda86009689354c3a77bdf1a97f4f4fb3ab50ffe34dbc904fac561040496828397be18d9744c75881ffc6ac53729ddbd2cdbdadc5f45c400e2622f7@206.189.243.176:30305 enode://0440117a5bc67c2908fad94ba29c7b7f2c1536e96a9df950f3265a9566bf3a7306ea8ab5a1f9794a0a641dcb1e4951ce7c093c61c0d255f4ed5d2ed02c8fce23@35.224.15.65:30305 enode://a80eb084f6bf3f98bf6a492fd6ba3db636986b17643695f67f543115d93d69920fb72e349e0c617a01544764f09375bb85f452b9c750a892d01d0e627d9c251e@47.89.16.125:30305 enode://4ea35352702027984a13274f241a56a47854a7fd4b3ba674a596cff917d3c825506431cf149f9f2312a293bb7c2b1cca55db742027090916d01529fe07
> ./build/bin/statusd -c config/cli/fleet-eth.beta.json
INFO [09-18|21:39:33.410] Status backend initialized
DEBUG[09-18|21:39:33.410] starting with NodeConfig package=status-go/node.StatusNode ClusterConfig="{Enabled:true Fleet:eth.beta StaticNodes:[enode://9c2b82304d988cd78bf290a09b6f81c6ae89e71f9c0f69c41d21bd5cabbd1019522d5d73d7771ea933adf0727de5e847c89e751bd807ba1f7f6fc3a0cd88d997@47.52.91.239:30305 enode://66ba15600cda86009689354c3a77bdf1a97f4f4fb3ab50ffe34dbc904fac561040496828397be18d9744c75881ffc6ac53729ddbd2cdbdadc5f45c400e2622f7@206.189.243.176:30305 enode://0440117a5bc67c2908fad94ba29c7b7f2c1536e96a9df950f3265a9566bf3a7306ea8ab5a1f9794a0a641dcb1e4951ce7c093c61c0d255f4ed5d2ed02c8fce23@35.224.15.65:30305 enode://a80eb084f6bf3f98bf6a492fd6ba3db636986b17643695f67f543115d93d69920fb72e349e0c617a01544764f09375bb85f452b9c750a892d01d0e627d9c251e@47.89.16.125:30305 enode://4ea35352702027984a13274f241a56a47854a7fd4b3ba674a596cff917d3c825506431cf149f9f2312a293bb7c2b1cca55db742027090916d01529fe07
```
TRACE[09-18|21:03:15.807] <-net.timeout
TRACE[09-18|21:03:15.807] msg="--- (2) pongTimeout for 43947863cfa5aad1@47.52.74.140:30404: verifyinit -> unknown (ok)"
TRACE[09-18|21:03:15.807] <-net.timeout
TRACE[09-18|21:03:15.807] msg="--- (1) pongTimeout for 5395aab7833f1ecb@206.189.243.57:30404: verifyinit -> unknown (ok)"
TRACE[09-18|21:03:15.808] <-net.queryReq
TRACE[09-18|21:03:15.808] Pinging remote node node=43947863cfa5aad1
TRACE[09-18|21:03:15.808] >>> nodeEvent(1) to 43947863cfa5aad1@47.52.74.140:30404
TRACE[09-18|21:03:15.808] UDP send failed:write udp [::]:30303->47.52.74.140:30404: sendto: host is down
TRACE[09-18|21:03:15.808] <-net.timeout
Statusd
Version: 0.15.0
Build Stamp: 2018-09-18.12:23:26
Network Id: 3
Go Version: go1.9.2
OS: darwin
GOPATH=/Users/oskarth/gocode
GOROOT=/usr/local/Cellar/go/1.9.2/libexec
Loaded Config: {
"NetworkId": 3,
Statusd
Version: 0.15.0
Build Stamp: 2018-09-18.12:23:26
Network Id: 3
Go Version: go1.9.2
OS: darwin
GOPATH=/Users/oskarth/gocode
GOROOT=/usr/local/Cellar/go/1.9.2/libexec
Loaded Config: {
"NetworkId": 3,
@oskarth
oskarth / gist:3469833
Created August 25, 2012 19:30
Intro to gradient descent, and why feature scaling leads to better convergence

Machine learning gives computers the ability to learn without being explicitly programmed.

Linear Regression

Linear regression is a simple model to find best fit for some data.

Example: You have a data set with commute time, sleep time, salary and happiness (1-10). For the three features - commute time, sleep time and salary - you want to predict happiness level.

Cost function and finding a good fit

How well does this line predict the data? Cost function (essentially sum of deltas between a line at a point and the real point) which we want to minimize. Once function converges we know we have a good fit. How do we find it? Gradient descent.

Problem

An overview of the background required to understand the problem. A problem description.

Implementation

Known steps towards feature implementation. What needs further specifying and investigating.

@oskarth
oskarth / clocks.md
Created January 24, 2018 07:11
Status clocs

status-react raw:

> cloc .
   42741 text files.
   25191 unique files.
Complex regular subexpression recursion limit (32766) exceeded at /usr/local/Cellar/cloc/1.74/libexec/bin/cloc line 7938.
Complex regular subexpression recursion limit (32766) exceeded at /usr/local/Cellar/cloc/1.74/libexec/bin/cloc line 7938.
Complex regular subexpression recursion limit (32766) exceeded at /usr/local/Cellar/cloc/1.74/libexec/bin/cloc line 7938.
   21117 files ignored.
2018-01-08 16:11:40.211 [info][tid:com.facebook.react.JavaScript] Requiring: ./resources/images/contacts/etherplay.png
2018-01-08 16:11:40.210924+0900 StatusIm[68569:15958873] Requiring: ./resources/images/contacts/etherplay.png
2018-01-08 16:11:40.211 [info][tid:com.facebook.react.JavaScript] Requiring: ./resources/images/contacts/ethcro.png
2018-01-08 16:11:40.211123+0900 StatusIm[68569:15958873] Requiring: ./resources/images/contacts/ethcro.png
2018-01-08 16:11:40.211 [info][tid:com.facebook.react.JavaScript] Requiring: ./resources/images/contacts/commiteth.png
2018-01-08 16:11:40.211438+0900 StatusIm[68569:15958873] Requiring: ./resources/images/contacts/commiteth.png
2018-01-08 16:11:40.212 [info][tid:com.facebook.react.JavaScript] Requiring: ./resources/images/contacts/gnosis.png
2018-01-08 16:11:40.211728+0900 StatusIm[68569:15958873] Requiring: ./resources/images/contacts/gnosis.png
2018-01-08 16:11:40.212 [info][tid:com.facebook.react.JavaScript] Requiring: ./resources/images/contacts/mkr-market.png
@oskarth
oskarth / packages
Created December 19, 2017 09:53
Run `cat packages | xargs -L1 npm install` to install all packages one by one
react-native
browser
rn-nodeify
assert
asyncstorage-down
awesome-phonenumber
babel-core
babel-generator
babel-helper-builder-react-jsx
babel-plugin-transform-es2015-block-scoping