Hacker News new | past | comments | ask | show | jobs | submit | meow_catrix's comments login

The modern way is to sidestep the issue altogether and use Kubernetes with a database designed to run on Kubernetes. You can get sharding, replication and leader election essentially for free - you can concentrate on using the database instead of running the database.

Compute is really cheap compared to engineering man-hours.


> The modern way is to sidestep the issue altogether and use Kubernetes

Kubernetes does require quite some time to learn/master. So you could say one replaces one time-consuming issue with another.


https://artifacthub.io/packages/helm/bitnami/postgresql, postgres is fortunately one of them. Downside is that you cannot scale writes.


What's "a database designed to run on Kubernetes"? Cassandra?


Pretty sure they were referring to the operators you can install that will stand up production ready replicated clusters.

They work quite well.


They replied to a comment mentioning "pgBouncer, repmgr, patroni" so supposedly not one of those.


Dgraph is designed to run on Kubernetes.


Not relational, not a replacement for Postgres.

Also doesn't look open-source at first glance.


You should try it before claiming ”not relational”, as it can totally store and use relational data, and also be very useful.

Even though it says ”graph” you don’t need to write graph traversal queries - just describe in GraphQL the nested data model you want to get out of the database and that’s what you will get.

Community edition is open source.


> Community edition is open source.

If that is true, you could definitely not make it less obvious. This is not the impression I got from your repo ("variously licensed under the Apache Public License 2.0 (APL) and the Dgraph Community License"). Neither your docs nor your website mensions a "community edition" either.


It is not my project and I have nothing to do with Dgraph. After 15+ years of RDBMS, I just prefer it.

Also, first Google hit is dgraph.io:

> The only open source, AI-ready graph database that gives developers the tools to quickly build distributed applications at scale.


Something like Yugabyte or Cockroach


Does the Cloud Native PG operator count?


+1 on checking out cloud native PostgreSQL operator, or other PG operators like crunchy or zalando or ongres


it was a minor pain finding and setting up a postgres operator in k8s, but once i got it going it wasn't too horrible. are these other solutions that are more built for it significantly easier to manage?


Which one did you end up choosing?


Planes do ”flap their wings”, just not the ones protruding from the fuselage.


I think you're mistaking rotating for flapping. Rotation is one of those fundamental things differentiating our technological civilization from Nature.


Those rotating things still produce their thrust by pushing a wing-shaped structure through air, producing a high-pressure zone on one side, and a low-pressure zone on another. That is what I was getting at. It is the same principle.


No, it is different. A prop or fan blade is inmovably attached to the shaft and pushed through the air the same way like the plane's wing, and the blade isn't flapped like the bird's wing.


> Rotation is one of those fundamental things differentiating our technological civilization from Nature.

Rotation is very common in nature.

Planetary rotation, inner-core rotation, spinning galaxies, dung beetle rolling, Keratinocyte migration, Rotifers, spirals, rotational symmetry, etc.

What isn’t common (but not non-existent) is using rotation for locomotion in biology.


Many plants and trees spread rotating ”helicopter seeds”. Many vines roto-grow themselves around vertical supports. Day flowers rotate to follow the sun.

Apples and oranges fall on the ground and can roll far and wide. Walnuts too.

Partial rotation is still rotation, of course: see animal joints in walk, trot and gallop.

And then there’s the belly-up pig drunk on brewery grain rolling down the hill. That mash packs a wallop!


Yes! Which is why the idea that “ Rotation is one of those fundamental things differentiating our technological civilization from Nature” is not all that useful a statement.


Huge swaths of microbes use electrostatic rotary motors driving screw type propellers, so if not say it’s that uncommon.



Rust frontend dev is not going to become mainstream, no matter what.


Bet it’s just a stored XSS alert from a poisoned cache.


Troy Hunt received the leak, tested it and confirmed it. You can find emails on HIBP now


Maybe don’t buy surveillance hardware from those brands


Not OP, but the reason may be:

US - FCC Ban The US Federal Communications Commission (FCC) banned Dahua and Hikvision from new equipment authorizations in November 2022. Most products that use electricity require FCC equipment authorizations; otherwise, they are illegal to import, sell, market, or use, even for private individuals. Jul 5, 2024


Shame, they are the best cameras available.


Also it’s not like you stop supporting these OEMs if you buy other made in china cameras. They’re essentially all designed and manufactured by very few of these large OEMs, all of which are implicated in CCP state surveillance.

You’d have to buy from actual Western companies like Axis or Dallmeier.


A lot of the commercial-style or commercial-grade IP Cameras sold are rebadged Dahua or Hikvision products.

Compromised firmware or other backdoors are a concern for a wide range of products. With IP Cameras, a commonly recommended practice includes putting them on a non-internet accessible network, disabling any remote access, UPnP type features, etc. You can run IP cameras in an air-gapped configuration as well.

Home/consumer-grade cameras have plenty of shortcomings too.


If they are rebadged, that's fine :)


You're going to have to explain the reasoning here


”Analysts noticed that CCTV cameras in Taiwan and South Korea were digitally talking to crucial parts of the Indian power grid – for no apparent reason. On closer investigation, the strange conversation was the deliberately indirect route by which Chinese spies were interacting with malware they had previously buried deep inside the Indian power grid.”


link? i am close to CCTV retailers and dahua and hikvision are only brands of CCTV widely available with two exceptions of "cp plus" and "hawkvision" which are in all lilkelihood rebranded or made in china products.

https://www.amazon.in/s?k=cctv+system+4+channel

so what are your options? i have been contemplating getting a door phone + cctv for my home for the past so many years but problems like these prevent me from investing into an ecosystem.

edit: oh. looks like pager attacks has their attention now.

https://trak.in/stories/pager-bombs-govt-can-ban-chinese-cct...

i guess time will tell and then there is lobbying so yeah


> are in all lilkelihood rebranded or made in china products

IPVM did all the legwork on this a while ago and unconvered that, not that surprisingly, two and a half OEMs (including Dahua and Hikvision) are manufacturing essentially every not-completely-garbage CCTV camera coming out of china, and a bunch that very explicitly claimed to not come out of china.


Could you elaborate? What’s up with those brands?


The Amiga manual suggests normalizing to a conjunctive normal form.


The constant-math method above doesn't require that and works on denormalized expressions, too.

That said, the trick for turning four or more argument bitwise operations into a series of vpternlogd operations has yet to be posted


Suppose you have four boolean variables A, B, C, and D. You can calculate X as the result from A, B, C assuming that D is false, and Y as the result assuming that D is true. Then, a third ternary operation can switch between X and Y depending on D. This creates a tree of 3 operations, which I suspect is the best you can do in the worst case.

For five or more arguments, this naturally extends into a tree, though it likely isn't the most efficient encoding.


Watching YouTube is essentially running a proof-of-work algorithm for someone else


The local sci-fi/anime convention required artists who wanted to book a table to share videos of them producing their art.


Because otherwise people would show up with stable diffusion renders? Wow.


One of the best comments I’ve read on HN. Thank you.


That’s React without the JSX sugar.


The idea is older than react and react contains much more cruft (both wanted and unwanted).


Yes, and?


Not if you want to map or reduce it.


Poor on-call guys


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: