HN user

zjonsson

65 karma
Posts27
Comments21
View on HN
www.npmjs.com 1mo ago

ETL CLI – the Swiss army knife you always wanted

zjonsson
1pts0
gist.github.com 5y ago

GPT-3: “The universe was created by a mistake.”

zjonsson
3pts3
medium.com 6y ago

Unzipping S3 files back to S3 without uncompressing entire file (Streaming)

zjonsson
1pts0
better.com 9y ago

RSU units and mortgages in the 21st century

zjonsson
2pts0
better.com 9y ago

Commissions for Loan Officers Is Bulls*it

zjonsson
1pts0
www.npmjs.com 9y ago

Show HN: Unzip from 500MB remote archive in 400ms or less

zjonsson
10pts0
medium.com 9y ago

The house that got away

zjonsson
1pts0
bl.ocks.org 10y ago

D3.js blackjack in 150 lines

zjonsson
2pts0
github.com 10y ago

Moongoose – the 100 LOC JSON-schema ORM for mongo

zjonsson
1pts0
courts.zjonsson.com 10y ago

Show HN: Realtime streaming data from all US courts (100 loc)

zjonsson
8pts2
traffix.zjonsson.com 11y ago

Show HN: Realtime busses (websockets, leaflet and d3) (

zjonsson
1pts0
bl.ocks.org 11y ago

The blizzard – live from New York (20 LOC)

zjonsson
2pts0
status.azure.com 11y ago

Irony of a status page: status.azure.com

zjonsson
18pts8
bl.ocks.org 11y ago

Constant Energy Diffusion in D3

zjonsson
6pts2
hraun.vedur.is 11y ago

Icelandic Earthquakes in 3d (three.js)

zjonsson
1pts0
bl.ocks.org 11y ago

Optimal denominations to split a dollar

zjonsson
3pts3
bl.ocks.org 11y ago

Show HN: Happy Birthday Obama – In-browser with popcorn.js and speak.js

zjonsson
10pts0
bl.ocks.org 12y ago

Show HN: New York City live – in 38 lines

zjonsson
1pts0
nypost.com 12y ago

Huge explosion reported in uptown Manhattan

zjonsson
2pts0
bl.ocks.org 12y ago

Priceonomics Bitcoin Puzzle, solved in browser

zjonsson
2pts0
traffix.nodejitsu.com 13y ago

Show HN: Realtime traffic (websockets, leaflet & d3)

zjonsson
2pts1
traffix.jitsu.com 13y ago

Realtime Reykjavik Traffic (speed & heading) using D3, Leaflet and socket.io

zjonsson
3pts2
rafhladan.is 13y ago

"Hóp" New York settled in 1008 AD (Viking sagas)

zjonsson
1pts1
metronorth.jit.su 13y ago

Show HN: Metro North train activity using websockets

zjonsson
2pts0
zjonsson.github.com 13y ago

Icelandic Law - Network Analysis with d3.js

zjonsson
1pts0
icequake.herokuapp.com 13y ago

Show HN: Earthquakes on Leaflet, Crossfilter and D3

zjonsson
22pts7
flights-ajax.herokuapp.com 13y ago

Server-side Crossfilter on node.js

zjonsson
1pts0
[dead] 10 years ago

10:45 AM PDT We are investigating increased error rates for ElasticSearch clusters in the US-EAST-1 Region.

Multiple clusters unreachable

If you look more closely at the actual code, this exercise compares the performance of readFileSync (an operation that deliberately blocks) on 1 core vs 2 cores.

Initially they overlap which is one of the main cause of the jitter. Spreading out the initial locations would be a remedy, but then I would have to find a different way to explain "diffusion" to my daughter :)

Show HN: Speedsums 12 years ago

This works as well (using jquery): var a=0,t;setInterval(function(){t=$("#question").text().replace('x','*').replace('÷','/');t=t.slice(0,t.length-2);if(t!=a)$("#answer").val(eval(t)).keyup();a=t;},0);

For continuous known functions we would look at the mathematical derivative (using stochastic calculus). For sparse sample data with an unknown derivative, we resort to calculating differences between consecutive numbers.

This analysis is interesting, however I have to comments on the methodology:

* Same measure

Comparing USD/INDEX with BIT/USD is a little bit like comparing apples and oranges, as the underlying measure for each of the time-series is different.

Multiplying BIT/USD with USD/INDEX gives us a time-series that is BIT/INDEX. Subsequently USD/INDEX can be compared with the new BIT/INDEX to get the correlation between USD and BIT with the INDEX basket as a measure.

* Correlation is only relevant for non-integrated series

It's well known that correlation for any unrelated random walks can easily be very high (positive or negative) in a spurious and random manner. The solution here might be to take the take first-difference (geometrical) of both series (de-integrating) and then check the resulting differences for correlations.

The Future of Excel 13 years ago

Not only that, regular algebraic operations also work with vectors/matrices as inputs, as long as you press CTRL-SHIFT-ENTER after editing. This means that most functions with complex MATCH and OFFSET can be replaced as well (i.e. SUM( (column_vector = cvalue) * (row vector = vvalue) * (matrix))

D3 is an excellent tool for managing a large array of SVG objects. Connecting it to leaflet is easy, just call function _initPathRoot() on the leaflet map object, followed by d3.select("#map").select("svg"). Then you can use map.latLngToLayerPoint(..) and map.latLngToLayerPoint(...) leaflet functions to calculate the X,Y coordinates in SVG space.

A great idea, however the web workers would have to be semi-persistent as the initial build of the crossfilter object takes some time (i.e. I wouldn't spawn a new worker on a new request). Here I simply increased the heroku nodes to respond smoothly to Hackernews traffic. I'm pretty happy with the results.

This script got me an 8GB phone just now (took 10 minutes). Simply paste into your console window (hit F12 and then ESC)

setInterval( function() { var buttons = document.getElementsByClassName( 'buy-button-price' ); for ( var i = 0; i < buttons.length; i++ ) { if ( buttons[i].value === 'Proceed' ) { buttons[i].click(); console.log("click") } } }, 2000);