HNHacker News
TopNewBestAskShowJobs

adevx

472 karma · joined October 28, 2018

submissionscomments
adevx··on Openstreetmap’s product fails to compete with Google Maps
Thanks, I looked into this but commercial use is prohibited for the free download which makes it a no go for my use case.
adevx··on Openstreetmap’s product fails to compete with Google Maps
I think an easy to setup self-hosted vector/tile server could help increase adoption. I'am currently looking into replacing Mapbox with a self hosted solution. My last attempt ran out of disk space building the docker images (with european maps) from https://github.com/Overv/openstreetmap-tile-server. Haven't found the time to setup a larger VPS but this looks like a great project to get started.
adevx··on Getting Started in BBC Basic
I fondly remember the days of the BBC Microcomputer. Typing out pages of code from a book. Then after fixing all the typo's finally being able to run a simple program. Modifying games by tinkering with the code is what inspired me to become a developer.
adevx··on Ask HN: What Lived Up to the Hype?
For me it was the opposite, but I guess it really depends on your use case. I was heavily into a typescript based custom server side rendered setup and I would need massive refactoring to be able to use vue 3 (vue class based components). The SSR story in Vue 3 is still very much up in the air. I switched to next.js with mobx and for me React seems to live up to it's hype more than I expected.
adevx··on 51% of 4M Docker images have critical vulnerabilities
Are these critical vulnerabilities exploitable? If I run npm audit on some of my projects I get critical vulnerabilities on a package that Webpack is using during the build phase. Another interesting section is the paragraph about dynamic payloads, I can see Go Lang or Deno builds requesting modules from arbitrary urls being a security issue.
adevx··on Next.js Commerce store, one-click deploy to Netlify
"It looks like rendering a new page is blocked until API requests to both "categories" and "products" endpoints are completed" This could be the known issue[0] with how Next.js does Server Side Rendering with getServerSideProps(). It calls this on every page transition, even client side. Often resulting in unnecessary loading of initial data.

[0][https://github.com/vercel/next.js/issues/11897]

adevx··on PostgREST: REST API for any Postgres database
PostgREST is not inherently more secure, it is as secure as your RLS policies and session mapping. It comes at a price of tight database coupling. When using a cache layer you might need to write an api level security layer anyway.
adevx··on PostgREST: REST API for any Postgres database
Even with WordPress the assumption that you pay for it in the future is valid. Albeit anecdotal, I have always needed to rewrite from scratch after first launching on WordPress. But that doesn't have to be a bad thing. Often with tools that help you bootstrap quickly, say ORM's, GraphQL, and in this case PostgREST there comes a time that optimizing or extending is more work than writing a custom build solution. You have to decide if time to market or validating your business model is more important than a potential premature optimization.
adevx··on Espruino: JavaScript for Microcontrollers
I've had a lot of fun using Espruino on the ESP8266 platform for various sensor applications. The biggest hurdle was keeping things simple. It's easy to get creative with JavaScript resulting in memory overflows and hard to debug issues. I eventually switched to Node.js on the Raspberry PI as my use case did not require low power / small form factor.
adevx··on Covid herd immunity – NY and Sweden
I think articles like this do not sit well with the strong pro covid-19-vaccine, facemask and lockdown leaning crowd on HN. This is another interesting article about long lasting immunity against covid-19. Which I believe is a good counter against the often told herd immunity requires x percent antibodies in the population argument: https://www.nature.com/articles/d41586-020-02400-7

https://agencia.fapesp.br/herd-immunity-to-novel-coronavirus...

adevx··on I had Covid-19, and these are the things nobody tells you
As mentioned below one must look at deaths per million to get any meaningful insight from the data per country. I probably should have left Sweden out to prevent you from jumping on that specific case. Anyway, the measures about quarantine you point out or only just in effect and have no bearing on the spread and then decline, without masks as seen from February/March. Looking at how masks are being used (reused, touched) one could argue they do more harm than good. As was the original story from experts.
adevx··on I had Covid-19, and these are the things nobody tells you
I believe he may feel it was this slip up, but I highly doubt it. Look at The Netherlands, Denmark, Sweden or Norway where practically nobody is using masks. If masks made that much of a difference, we would surely be able to tell.
adevx··on Treating children for worms yields long-term benefits, says new study
Ivermectin is known to have a negative impact on biodiversity: https://www.sciencedirect.com/science/article/abs/pii/S00489...
adevx··on Treating children for worms yields long-term benefits, says new study
I agree. Not only does it negatively affect human gut flora and fauna, but the deworming agents have a negative effect in nature especially on certain flies and beetles when administered to live stock. Instead of focusing on medication, I think there is a ton we can do by being more mindful about what we eat and how we prepare our food.
adevx··on Vue 3: mid 2020 status update
Sounds like a great stack. I was also looking for a clean, simple and productive stack and looked into Svelte. But I do really enjoy TypeScript and it does not seem to be well supported.
adevx··on Vue 3: mid 2020 status update
I run a small business where my website generates my main income. So if I make the wrong choice here it's all on me. But I don't think it's that young in web-cycle terms.
adevx··on Vue 3: mid 2020 status update
You need "vetur.experimental.templateInterpolationService" set to true in settings.json, have a look here: https://vuejs.github.io/vetur/interpolation.html#generic-lan...
adevx··on Vue 3: mid 2020 status update
This is supported at IDE level even in Vue 2 with Vetur (vscode), but has performance issues.
adevx··on Vue 3: mid 2020 status update
It's good to see a status update for Vue 3, and creatively done I must say. If Vue's (Vuex) TypeScript support wasn't as bad as it is in Vue 2, I would not be as eagerly awaiting this 3.0 release. Currently on the fence to rewrite a large project to Next.js + TypeScript + Mobx as I have to move things forward and expect the whole ecosystem to take a long time to catch up.
adevx··on Bootstrap 5 alpha
I can attest to this. I had the hardest time getting a vue wrapped google maps library to work, until I decided enough is enough and used the native google maps sdk. Perfectly doable and can save you a ton of time. If possible use a vue/react compatible library, but don't do it at all cost.
adevx··on Seven years later, I bought a new MacBook. For the first time, I don't love it
Probably not very good. Personally I always use a Magic Trackpad 2 so I no longer have to take this into consideration.
adevx··on Seven years later, I bought a new MacBook. For the first time, I don't love it
If the XPS 17 has decent Linux driver support, a high brightness matt display option, I'm all in.
adevx··on Nuxt.js over Vue.js: when should you use it and why
I've used Nuxt.js when I started rewriting a membership site from WordPress to Vue.js. But at that time, the routing options were limited so I opted for a hand crafted Vue.js + server side rendering setup. Maybe today, I would try out Nuxt.js again. Or maybe not, the drawbacks are another layer of abstraction on top of Vue.js. That being said, their community is great and the development is very active. When I did a project in React, and tried Next.js, I expected to find much more info and plugins for this combination, but found this to not be the case.
adevx··on Show HN: Fast Real-Time Anomaly Detection in Dynamic Graphs
Did you use an anomaly detection library for these findings?
adevx··on Migrating to CockroachDB
Thanks, "serializable history" could well have been the root cause. I did discuss this in the forum but was unable to resolve it at that time.
adevx··on Migrating to CockroachDB
My testing of YugabyteDB was not as extensive as CockroachDB. I had issues importing my PostgreSQL schema + data (I did use ysql_dump) I got timeouts and an occasional 100% cpu crash. I was able to import after trimming the amount of data and dumbing down the schema (dropping foreign key references) CPU usage was much higher than PostgreSQL and I found the overall tooling and setup less polished compared to CockroachDB.
adevx··on Migrating to CockroachDB
I've tried CockroachDB as well as YugabyteDB. A distributed ACID transaction Database sounds like the holy grail, but it comes with a price. For CockroachDB the performance penalty was high, even though I'm sure I could have squeezed out more performance if I was to design my DDL specifically for CRDB.

There was an inconsistency issue when deleting a ton of (self referencing foreign key) rows in rapid succession. The results of a "select count(*) from table" returned different results than a "select count(id) from table". After some delay the results came back in sync again.

As I was trying to shoehorn an existing PostgreSQL database into CRDB, I had to find solutions for SELECT .. FOR UPDATE, finding alternatives for triggers, issues with the query builder I use (knex.js). In the end it was too much, not even considering lack of backups and the risk of a VC funded company going belly up. I do hope they gain a solid foothold and these NewSQL databases gain more traction.

adevx··on WireGuard is now in Linus' tree
I'm considering writing a blog post about it as I documented most steps. Plus having everything in Ansible is more or less a guide / tutorial in itself.
adevx··on WireGuard is now in Linus' tree
Didn't know about nebula, definitely interesting. I looked into ZeroTier but I believe it has a central control server for connection initiation, and I read some comments about slow connections if I remember correctly.
adevx··on WireGuard is now in Linus' tree
I run a distributed Node.js Express app that has a media folder mounted (fuse) across all node instances. GlusterFS runs with replicated volumes. As GlusterFS is not super fast, I use an Nginx cache in front of all media files. (I should probably use a CDN) PostgreSQL does not run over GlusterFS for the reasons you mentioned. For ease of configuration each node has an HAProxy instance that knows where the master PostgreSQL instance lives. Patroni as well as the Node.js (typescript) app uses Consul for leader election.
← PreviousPage 4 of 5Next →