Better HN
topnewbestaskshowjobs
Log inSign up

nov21b

50 karma · joined Nov 15, 2022 (4y ago) · 35 submissions

Submissions

comment 2y ago · link · parent

This sounds interesting. I once tried to migrate to YugabyteDB, but PostgreSQL compatibility was not great, it required an extensive redesign of the existing PostgreSQL database. Might give this a try.

comment 2y ago · link · parent

Interesting move. I'm also considering Remix.js. It's either an internal Next.js rewrite from Page Router to App Router, or a framework switch to Remix.js

I liked Remix.js even though I found the Action (kinda like Server Actions in Next.js) a bit limiting and formData hard to type (in TypeScript)

comment 2y ago · link · parent

I did this test with tinted sunglasses, could be another factor (boundary at hue 172)

comment 2y ago · link · parent

Third party plugins make an up-to-date WP install insecure. I think Core WordPress is probably more battle tested than any other framework. One could argue the core should protect against bad plugins, but a secure plugin API would mean a non-functional API.

comment 2y ago · link · parent

The language/runtime certainly has an impact. But indeed, in reality there is no way to compare these scaling claims. For all we know people are talking about serving a http-level cache without even hitting the runtime.

comment 2y ago · link · parent

- "War against JavaScript"

- "It's extremely complex for someone with 0 experience to work with JavaScript tools"

- "JavaScript is terrible anything else than manipulating the DOM"

I guess the main issue was not liking / embracing JavaScript/TypeScript. Which is fine, but doesn't really make for a convincing article.

Another thing I would have loved to see was all the issues you ran into with htmx (apart from the ID collisions you expect to get). As we all know, everything is a tradeoff, there are no silver bullets.

comment 2y ago · link · parent

req.ip, but also look at the x-forwarded-for header if you are using a proxy server. This header can have multiple ip's when you have say nginx terminate ssl and use cloudflare.

comment 2y ago · link · parent

I have the Airthings Wave+ and one thing that bugs me is the relative humidity threshold. Anything above 60% will give a yellow led warning. If you have many indoor plants, live in a forest, or even just ventilate a lot on rainy days the sensor will show an air quality warning. I would like to take humidity out of the equation as I much rather focus on CO2, VOC and Radon. Otherwise a great sensor that was easy to integrate in my own scripts as you can easily get all sensor readings over bluetooth.

comment 2y ago · link · parent

Count me in

comment 2y ago · link · parent

I did, it still doesn't make sense to compare the two.

comment 2y ago · link · parent

I switched from Vue/Nuxt 2 to React at the time of the V3 transition. The reason was horrible slow dev performance, lack of template type checking and overall slow transition of the ecosystem to V3.

comment 2y ago · link · parent

Don't mindlessly follow your framework du jour's way of handling state mutations. It's healthy to keep these isolated. I've switched from Vue to React and kept my API server as is. If you intertwine mutations deeply inside Next.js server actions you will have a hard time adapting to new requirements.

comment 2y ago · link · parent

> Where are the open source folks in Node.js producing equivalents of WordPress and Magento and Drupal?

I can't speak for the community at large, but I specifically switched from large opinionated frameworks to Node.js/TypeScript and a carefully selected stack and modules. Once you reach a certain level of complexity, these frameworks start to get in the way. For me, Node.js/TypeScript gives me type safety, easy refactors, an ergonomic language, and a large community.

On the other hand, if you have to churn out projects for clients, a rigid opinionated framework is probably more appropriate as it makes project handover easy and cuts down on decision fatigue.

comment 2y ago · link · parent

You will need a good code standards and style guide regardless of framework. Together with today's linters this should be a solved problem.

comment 2y ago · link · parent

I'm quite happy we don't have one dominant framework in JS. We have good tools for specific tasks and glueing them together is easy in JS land. Not having a big framework dictate your options is actually quite liberating.

comment 2y ago · link · parent

In Spain they managed to make roundabouts with traffic lights. It's not uncommon but having traffic lights on small roundabouts can make roundabouts very hard to navigate.

comment 2y ago · link · parent

I use an old Android phone with a long deprecated app called MobileWebCam (still available on certain sites) I removed the battery and connected the charger directly. It uploads a picture every minute, a Node.js backend creates the timelapse with ffmpeg. Currently experimenting with a TP-Link C520 cam and a Raspberry Pi. You can point the camera to different positions using ONVIF, use ffmpeg to grab the stream and take a snapshot, then process this again on the server. Downside is the wide angle / fish eye lens and occasionally a corrupted stream snapshot.

comment 2y ago · link · parent

Been making timelapses with ffmpeg since forever, such a great tool. I try to always have a cam pointed at the sky and upload a snapshot every minute. A telegram command triggers the creation of a timelapse with a similar cli command like the OP. https://www.youtube.com/watch?v=5GvaFBzOu2c

comment 2y ago · link · parent

Happy user of the Airthings Wave Plus (same as View but without a display). Major feature requirement was being able to fetch the sensor values with just a Bluetooth connection.

comment 3y ago · link · parent

This may be the hardest part, especially for technical founders. I was able to bootstrap a profitable subscription based service. In hindsight most credit should go to my wife for getting in the first users by engaging family, social media, forum posts and what not. Another major factor were my subscribers, who write site content on a daily basis, this generated a ton of organic traffic to my site and made a big difference vs having to write a couple of static SEO optimized pages and hope for the best. Writing the actual code was probably the least important part (but the most fun for sure)

comment 3y ago · link · parent

Not without akward hacks. [0]

I backup to a Hetzner storage box and a Raspberry Pi at home.

[0] https://github.com/borgbackup/borg/issues/1872

comment 3y ago · link · parent

Just started using the append only feature to prevent a potential hacker from wiping out backups that live on a remote ssh server. Combined with restricted ssh access this can be made quite secure. I also tested writing backups to my Android phone (as a backup target) using Termux and Wireguard, worked flawlessly with a bit of tuning (keeping the vpn alive)

comment 3y ago · link · parent

You can't open an account without leaking your phone number. I've quit the signup flow right there.

comment 3y ago · link · parent

As a non-ruby developer, I find the initial example indeed much more readable.

comment 3y ago · link · parent

I did some research into the best way to treat a third degree ankle sprain (after a mountainbike accident). From what I've gathered ice can still be beneficial in the first 8 hours or so. But shouldn't be used later on as it may hamper blood flow and thereby recovery. Compression, elevation, moderate use of an anti inflammatory and exercising just up to inducing more swelling is the best way to recover. I found "walking" exercises in a pool to be very helpful as the cool water plus pressure reduced pain and the buoyancy reduces much of your body weight.

comment 3y ago · link · parent

Before deciding on these very dev-oriented metrics, one should probably define the goals of the site/app. Is it a community site where easy content editing / contributions should be prioritized. Or is this a landing page that should have stellar SEO and load blazing fast. What language / framework am I or my team familiar with. The raw performance metrics should probably come last.

comment 3y ago · link · parent

On the upside, Twitter has reinstated scientists talking sense about Covid. I may not agree with everything Elon but I welcome this new wind of change.

comment 3y ago · link · parent

I ditched Drupal for a Node.js based setup during the 7 to 8 migration. The writing of Drupal's decline was on the wall at that time and in hindsight switching was a good decision.

comment 3y ago · link · parent

I've run trading bots on Hetzner without issue (Binance and Bybit api)
12