Skip to content

Instantly share code, notes, and snippets.

@donSchoe
donSchoe / eth.log
Created November 4, 2015 21:59
panic: runtime error: invalid memory address or nil pointer dereference
I1104 20:46:59.109071 13529 database.go:71] Alloted 16MB cache to /home/user/.ethereum/chaindata
I1104 20:54:00.741350 13529 database.go:71] Alloted 16MB cache to /home/user/.ethereum/dapp
I1104 20:54:00.894163 13529 backend.go:331] Protocol Versions: [63 62 61], Network Id: 1
I1104 20:54:00.949802 13529 backend.go:379] Blockchain DB Version: 3
I1104 20:54:01.197791 13529 blockchain.go:189] Last header: #490315 [7eb3f425…] TD=2620417395934625116
I1104 20:54:01.199421 13529 blockchain.go:190] Last block: #490315 [7eb3f425…] TD=2620417395934625116
I1104 20:54:01.201046 13529 blockchain.go:191] Fast block: #490315 [7eb3f425…] TD=2620417395934625116
I1104 20:54:02.145285 13529 cmd.go:124] Starting Geth/v1.4.0-unstable/linux/go1.5.1
I1104 20:54:02.147900 13529 server.go:311] Starting Server
I1104 20:54:21.513464 13529 table.go:97] Failed to open node database: open /home/user/.ethereum/nodes/MANIFEST-000095: too many open files
@donSchoe
donSchoe / make.log
Created October 22, 2015 18:04
webthree-helpers also fail to compile, too, related?
ETHBUILD - INFO: Starting build of webthree-helpers/utils for requested project all.
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
@donSchoe
donSchoe / make.2d028e0.log
Last active October 22, 2015 18:00
webthree-umbrella fails against libboost 1.59
# webthree-umbrella @ 2d028e0 (1.0rc2)
==> Making package: ethereum 1.0rc2-1 (Thu Oct 22 17:50:56 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating ethereum git repo...
Fetching origin
==> Validating source files with sha256sums...
ethereum ... Skipped
@donSchoe
donSchoe / README.md
Created September 17, 2015 12:43
array buffers for javascript webgl rendering for tile (8,137,83)

zum rendern brauche ich die vertices mit den pixel koordinaten (siehe vertex_array in arrays.js) und die entsprechenden indices für den draw call (siehe index_array in arrays.js).

um epsg:4326 oder epsg:3857 in pixel koordinaten zu convertieren habe ich dir die rechnung in conversions.js gepackt.

ich habe eine tile mit zoom=8, x=137 und y=83 als rohdaten in geojson unter tile_8_137_83.json abgelegt. die konvertierten und vorberechneten arrays sind in arrays.js.

tl;dr ich brauch ein vertex und ein index array im gltf. falls das format relevant ist, für die vertices nutze ich ein Float32Array und für die indices Uint16Array

@donSchoe
donSchoe / leaflet-epsg.js
Created July 9, 2015 12:08
Where is EPSG:3857 in Leaflet?
map.getBounds().getNorthEast(); // LatLng(52.5262, 13.44907)
map.getPixelBounds().getTopRight(); // Point(2253845, 1375425) ???
map.getPixelOrigin(); // Point(2252165, 1375425) ???
L.Projection.SphericalMercator.project(
map.getBounds().getNorthEast()
); // Point(0.23473, 1.08117) !?!
/*
Generic Canvas Overlay for leaflet,
Stanislav Sumbera, April , 2014
- added userDrawFunc that is called when Canvas need to be redrawn
- added few useful params fro userDrawFunc callback
- fixed resize map bug
inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat
@donSchoe
donSchoe / gist:f12fffb3584ee2b9042d
Created July 2, 2015 07:24
epsg4326 latLonToPixels xy
// JavaScript
// converts lat/lon to pixel x/y at zoom level 0 for 256*256 tile size , inverts y coord
function latLonToPixels(lat, lon) { // lat, lon: epsg:4326
var sinLat = Math.sin(lat * Math.PI / 180.0);
var pixelX = ((lon + 180) / 360) * 256;
var pixelY = (0.5 - Math.log((1 + sinLat) / (1 - sinLat)) / (Math.PI * 4)) * 256;
return { x: pixelX, y: pixelY }; // object with .x and .y
}
@donSchoe
donSchoe / gist:8267693
Created January 5, 2014 12:36
protoshares coincontrol make stack
$ make
Making all in src
make[1]: Entering directory `/home/afri/opt/Proto-coincontrol/src'
make all-recursive
make[2]: Entering directory `/home/afri/opt/Proto-coincontrol/src'
Making all in .
make[3]: Entering directory `/home/afri/opt/Proto-coincontrol/src'
CXX addrman.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
addrman.cpp:1:0: note: this is the location of the previous definition
@donSchoe
donSchoe / ringo.strace
Created October 19, 2013 04:39
--> ERROR :Closing link:
31458 0.009987 gettimeofday({1382146110, 430027}, NULL) = 0 <0.000015>
31458 0.000077 futex(0x7f6b1ce489c0, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000014>
31458 0.000070 futex(0x7f6b1ce48a04, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 131854369, {1382146110, 440027000}, ffffffff <unfinished ...>
31457 0.005613 <... select resumed> ) = 0 (Timeout) <0.100164>
31457 0.000119 clock_gettime(CLOCK_REALTIME, {1382146110, 435917146}) = 0 <0.000028>
31457 0.000129 select(4, [3], NULL, NULL, {0, 100000} <unfinished ...>
31458 0.004103 <... futex resumed> ) = -1 ETIMEDOUT (Connection timed out) <0.009934>
31458 0.000097 gettimeofday({1382146110, 440242}, NULL) = 0 <0.000029>
31458 0.000109 futex(0x7f6b1ce489c0, FUTEX_WAKE_PRIVATE, 1) = 0 <0.000027>
31458 0.000098 futex(0x7f6b1ce48a04, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 131854371, {1382146110, 450242000}, ffffffff) = -1 ETIMEDOUT (Connection timed out) <0.009868>
@donSchoe
donSchoe / ringo.strace.log
Created October 19, 2013 04:36
UNKNOWN PROTOCOL PART: ERROR :Closing link:
--> PING :folly.JxcelDolghmQ.net
<-- PONG :folly.JxcelDolghmQ.net
--> PING :folly.JxcelDolghmQ.net
<-- PONG :folly.JxcelDolghmQ.net
<-- PING :1382144069.0660088
--> :folly.JxcelDolghmQ.net PONG folly.JxcelDolghmQ.net :1382144069.0660088
--> PING :folly.JxcelDolghmQ.net
<-- PONG :folly.JxcelDolghmQ.net
--> PING :folly.JxcelDolghmQ.net
<-- PONG :folly.JxcelDolghmQ.net