News for hackers. Stuff that matters.

DataInSolutions

Re:Open-Source Controller for the IKEA Bekant Standing Desk on Monday January 28, 2019 @03:11PM (#19020622)
I also have a Skarsta. I got tired of hand cranking it and cut the crank's shaft to approx 12" length, then attached a $10 electric drill to it.

Works great but the cheap drill is a bit noisy. At some point I may upgrade that.

Re:How to Handle Monetary Values in JavaScript on Tuesday October 30, 2018 @05:33PM (#18341463)
My goto for any kind of arbitrary precision math in JavaScript is https://github.com/MikeMcl/big.js

As others have noted, if you're doing any kind of math that involves floating point numbers and you will displaying them to a user, you'll almost certainly want something like this.

While it's not specifically a "Money" class it can form an excellent base for one.

Re:Digital Ocean Managed Databases on Wednesday October 24, 2018 @03:55PM (#18295800)
this is fantastic! I've got several droplets for smaller customers and it's always a pain to setup and manage a DB for them.

I just hope it's not terribly expensive for the smallest tier.

The app looks nice but I hate doing any kind of data entry on an app.

You might consider making a web based version, then it could be accessed on desktop as well.

That's a great question. I've been considering Hasura for an upcoming app and have been prototyping things with great success. I hadn't really considered how it implements the subscriptions, and had assumed it worked only by observing mutations that came in through GraphQL. However that doesn't really explain how it works with subscriptions against a view.

I dug into the code a bit and think it all happens here: https://github.com/hasura/graphql-engine/blob/master/server/... Which if my fledgling Haskell is correct digs into the subscription to find the sources and then adds a trigger on them.

On a related note, I've been very impressed with the Hasura GraphQL server. In particular how the authentication works with a JWT token and it's access restrictions seem pretty well thought out and flexible.

I have not yet used it in production but :fingers-crossed: it performs as well there as it has in testing and development