skysight-inc/HackerNews huggingface dataset:
There were many questions asking about recent experience with MongoDB. I have some recent experience so wanted to share with everyone.

My background:

2007-2010: Used MySQL to run a social network for 50M+ users. Would send 2B messages on peak days. All powered by Mysql.

2015-2020: Used Mongo to power a top 5k site. Zero downtime and dataloss in 5 years. Used Postgres for internal non user facing database

So I have familiarity with all of these databases at a decent scale. I am going to list pros and cons of each and why I would use. Again a tool is a tool. Just because I love a wrench, doesn't mean that I am going to use it instead of a hammer when I need to put some nails.

MongoDB:

They have come a long way since I started using them in 2012. If your use case is CRUD, you would be fine. There is still a lot of marketing fluff about sharding, multi document transactions etc which might not be fully reliable. I stay away from those things. But if you just use CRUD and you data can fit in a single db you are going to be fine at decent scale.

Following are some reasons I prefer Mongodb. It's possible that Postgres/MySQL has some of them even though I couldn't find them:

1. I don't like to manage schema migrations. During development you constantly add columns and it's a pain to make sure that this column is added to the sql databases on development, testing, staging, prod etc. With mongo, you just add a column and you are done.

2. No downtime on migrations: You can change you server type or mongo version with zero downtime. Did that since 6 years. Couldn't figure out how to do that with postgres (even with Aurora).

3. If you data structure fits document and subdocument schema, mongo is really easy to use. I tried jsonb with postgres and didn't find it as easy to use at mongo. If you data fits this paradigm, you can essentially get atomicity for multiple updates because they are all in a single document.

4. The admin interface of MongoDB Atlas is really development friendly. You can easily add read only replicas. You can easily add replicas in different regions. I shudder at the thought of managing Postgres myself and even Amazon Aurora is not as easy to admin as Atlas.

At this point I would consider Postgres only in the following case:
If my data structure is like a non-tree graph. In that case I would expect to do multiple complex join and expect transaction consistency between tables.

If I am building a financial product which directly handles money or money instruments (bank, stock trading) I would definitely not use mongo for that.

Happy to answer followup questions.
While having nice libraries is always great, I'd also like to plug the simple zig std library functions.

I was very pleasantly surprised by how easy was to start parsing simple stuff using std.mem.tokenize() and std.mem.split(). Somehow watching Andrew programming some Advent of Code using these very simple functions made it 'click' for me how parsers are just ordinary programs.
Ask HN: Image to Text Conversion in Android
I have blog with many images in between them , I have to capture actual content of blog only as text format
which type of solution would be easy or any library or ML model is available ?
any of your opinion would be helpful

1. Take screenshot of whole blog and convert image to text
2. Web scraping

Or any other options ?
It's a scary time in tech when end-users are literally seen as an unrealized capital asset to be speculatively sold directly to investors. There's something dehumanizing about this that I can't quite put my finger on.
May be. But operators are a relative pain to develop. I prefer the HCL approach. You can have modules instead of operators, and while HCL overall might be painful, it's less painful, IMO, than constantly changing operators. My team spends a significant amount of time chasing deprecations of operators and associated helm charts.
As your data complexity and relationships grow, you will end up using SQL, just that it will be in your NodeJS function calls. (Aggregating, Joins, etc)

If you have highly un-related pieces of data, Mongo should be fine.

But the finer point is that you can store and retrieve JSON documents very efficiently with PostgreSQL too. So, as an architect, It makes sense for me to choose PgSQL, because down the line, I have features such as relational data available without having to switch-over to other databases.
It was some time ago I looked into it, but wl_registry_listener registers a callback for when the compositor “declares” what protocol extensions it supports. This is painfully missing from X, but this makes Wayland much more modular/extensibly.

Wayland’s abstraction is basically a buffer. The client simply creates a buffer either in shared memory, or directly on the GPU and then passes the compositor a handle to the buffer. That’s it.

Also, it is sort of ingenious to compare the two — the XLib is a higher level lib than libwayland. There is absolutely no reason why someone could not create a wrapper for this — although I again ask, how often does one create an only X/only Wayland window without a framework.
Financial data

In basically every case you are querying all data for a symbol in a given timeframe and then process it further outside of the database.
Keep in mind that one factor the rest of the world probably doesn’t have is earthquake codes. Japan has very stringent building regulations and they usually get updated after major events. The most recent revisions were in 1981 and 2000; a house is going to have poor resale value if it will kill you in the event of an earthquake.
RPi4 and ZRAM Explained
If you want to get rich selling books than you have to write about getting rich. These crypto books or self-help books are best sellers. If you write an anti-corruption book, good luck finding readers or someone that believes in your narrative of have fun staying poor.
You are not a citizen of Israel and live in land you claim for a totally separate country.

That is, literally and factually, not apartheid.
I was under the impression this was mainly to track user engagement for ad networks and search engines. Navigating to a page and leaving it open doesn't rank as highly for engagement; navigating to a page, scrolling through an article (which contains possible ads), and skipping back and forth between the ingredients list, steps, and explanatory text, is interpreted as higher engagement
No subscription, price, or arrangement will defend you against ads. You uproot them and fundamentally reject them, or your children will be indoctrinated by global predators selling liquids oversaturated with sugar and gas.
Regardless of the validity of the business case Sridhar is a really really smart guy who has seen how the sausage is made inside Google. If you think like a Google engineering VP you can understand why this isn't such a crazy bet after all. He knows how to rebuild the Google stack fresh.
Also being ex-mormon, I think one leg up mormon's have and probably really the only redeeming thing from the standpoint of the FBI to set them apart is foreign missions and world-experience from that.

I'm very progressive, one wedge against me is the gay-hate (i'm not gay, but I empathize with the community), and hearing a high priest group leader bash Obama and Gays from the pulpit made me stay home long enough and become inactive, the CESLetter did the rest years later.

I'm no fan of Obama anymore (too centrist) however I've noticed as far as States go... Utah is odd. It's not "all" special interests (unless that interest is the church), there's a fair more left-friendly legislating for a bright-red state than some of the southern alternatives. I was amazed they passed medical marijuana.

There's also more support for the people (they just raised medicaid as an example.)

Maybe there's a bit more compassion than your normal evangelical, a tiny bit less hypocrisy. Though, I'm betting the less-hypocritical are the ones who are leaving in droves because once they see it's fake they can't be part of it. It's not about culture to them.

It also had the lowest support for Trump in 2016, it's really a peculiar state in terms of ... how they think and act.

> Naturally, if you're running a federal agency with a questionable history, tasked with maintaining the state of the union, that's exactly what you're looking for: a rule follower and order obey-er, not some "free spirit" who could blow the lid off of whatever scheme you're cooking up that week.

This is the meat of it. Mormons, esp the ones who go into the military are super strait / narrow types who were boy scouts, church leaders, and have been taking orders their entire life. Now they can speak fluent spanish, or french and have taking orders down to a science. You couldn't get a more perfect candidate if you used eugenics.
Unless I'm mistaken, the difference between MOND and classical Newtonian gravity is not in the value of G, but in making the force proportional to distance (rather than distance squared) at very large distances.
I found this "convenience" is mostly not convenient at all, wastes a lot of time, brings a lot of frustration and sometimes is outright dangerous. For example, an internet connected CO2 detector provides a perfect way for burglars to detect when no one is at home.

Connections are always broke, wifi passwords are forgotten, sites not accessible, phone number does not pass verification process etc. Thankfully, all my devices still have buttons that allow them to operate without internet connection, but I fear that will not be the case in the future ..
I have two children interested in programming, and they equally love Roblox and Minecraft. I chose Roblox since Minecraft requires the Java edition (€26,-) for both children: they each have to have their own account. Strange decision from Microsoft.
What political bullshit?
Not to mention they will disable the ads for you if you contact their support, for free, no questions asked...
I wouldn't consider any of these for production.
The network effects of search are weaker than in social media though.
>Just because we don’t have a scientific experiment to measure gravitational forces at small scales doesn’t mean they don’t exist mathematically right?

That is correct--it has been expected (since, you know, Newton...) but not yet measured at this scale. That is why the headline says "detected" as opposed to theorized.

>What am I missing when they say quantum particles do not fit with gravity.

Quantum mechanics predicts that Newtons description of gravity will break down under certain conditions. We currently do not have the ability to measure this effect, so it is all theoretical at this point.
Wait till you see how financial markets work.
I don't think it's a conspiracy; most smart people have supported it for decades, it's just taking the public a long time to catch on.

However it's easy to imagine groups that would be willing to pay troll farms to bump up support.

1. There are a bunch of companies developing new reactors.

2. There are a lot of people who think fossil fuels are dangerous and see nuclear as the only path forward.

3. Maybe someone just wants to drum up controversy.

The thing is buying trolls isn't that expensive. I once got 500 twitter followers for $5. I bet for $500 you could get thousands of fake comments across the web.
The long commute can be explained, IMO, in part by the transportation allowance, where employers are allowed to subsidize up to 1000USD/mo of commuting costs.

It makes “commute until you qualify” longer than it might otherwise be. And it doesn’t help that there has long been a tendency to overcentralize in Tokyo, which is very large and can take a while to commute around.
Frankly it sounds like you just don't need a relational database. Their whole selling point is the strong guarantees they provide about your data, and if you aren't using those then you're basically just writing files to disk in a very convoluted way.
And I wish they never get old. Every few years, new paradigms come to the forefront and debates like these certainly help many developers choose one way or the other.
> The regular drop induces a startle reflex that makes it really hard to sleep.

I like that actually; makes me sleep better. But the 787 is nice too.
I'm not gonna hand out money to have my search history tied to my identity lmfao, who is the target demographics?
The problem you describe isn't horizontal scrolling, it's scrolling as implemented by OP. It also applies to vertical scrolling, as the headers don't follow around.
> I don't see how this can be the case, if you know more than me, please elaborate

Back in the 70, 80, 90, it was incredibly common for insiders to the energy industry talk of the power pronuclear segments had when it came to dictating policy and how they would use dirty tactics to launder their own image such as with astroturfing or just old media blitz charm campaigns in order to desorient the public when it came to things such as miss management of nuclear plants, or miss management of nuclear waste which continues to this day with rusting tanks holding dangerous waste, and all of this setting aside things like sea dumping of nuclear waste that has wrecked the public face of nuclear energy for the last 50 years
On a tangent here, but "not just 3d printing a plastic part" got me thinking.

Scientists, instead of requesting time on Hubble, ask time for the 3DBuilderAndExperimenter, give it a blueprint and inputs/outputs, it runs, returns any results, and is recycled.
Hydration of Cloth Face Masks Enhances Their Filtration
>I’m still missing Altavista to get the raw results

This is called Yandex nowadays.
I don't think you read my comment properly. I'm saying that shared memory parallelism has done its time even at the hardware level within a CPU.

Most programming languages are using construct that assume memory coherency for synchronization (like atomics). It may very well be that hardware channels and DMA become more prevalent in the future as more and more cores are packed and shared memory becomes prohibitive. This would be a totally different paradigm.
My favorite is still the TensorFlow version:

https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
Most mice these days have wheels that can be tilted to scroll sideways. It's not perfect, but it works.
It took me a while to understand this, but I think the long consistent blocks are a sorting artifact. As the observed headlines are bucketed by the hour. You don't see the title flip within the hour, you just see the percentage.

It would have been more interesting to see the title flipping back and forth, because that would reveal how long those tests last. Less neat though.
Bootstrapping can also get recursive, eg. GCC and binutils are bootstrapped by compiling their sources with the GCC you already have on your build system; the result of this is an intermediary compiler, which is then used to compile the sources of itself again. (I should look up the following bit, but IIRC, the second generation result compiles the sources a third time, and the last two outputs are compared -- they should be equal, barring any non-deterministic optimizations.)
I think when most people say NoSQL they don't mean S3 (even though it is like a database). In general I think

- S3

- Redis/Memcached

- Elasticsearch

aren't really NoSQL databases in the Marketing sense since they fulfil such a specific purpose.
Pro Marketing Examples to Bang for the Buck
Huh, I'd previously thought that transfer of risk was an integral component of factoring, but apparently not:

> If the factoring transfers the receivable "without recourse", the factor (purchaser of the receivable) must bear the loss if the account debtor does not pay the invoice amount.[1] If the factoring transfers the receivable "with recourse", the factor has the right to collect the unpaid invoice amount from the transferor (seller).
> and we're still using it to create weapons.

Not sure why this is down voted, it's only true. Uncomfortable truth I guess?
"But then I thought of something gross. Or awesome."

The programmer's mantra.
The info about salt is plain wrong. Kosher salt is used for curing meat and as a mainly decorative addition to baking, you don't need to use it for cooking, it doesn't dissolve noticably slower in liquids. In fact when most recipes specify a volumetric measurement of salt they mean table salt and if you were to use kosher or sea salt you would be under seasoning due the reduced volume, nothing to do with how quickly it dissolves.

You should definitely not be using large grain salt in baking for this reason, unless it is to decorate a finished product.

Iodine deficiencies were and are very, very real. They're also on the rise due to food deserts and rising poverty. Iodised salt largely eliminated iodine deficiencies so people with poor knowledge of the history think they just went away. Most processed food does not contained iodised salt, so table salt is an essential source or iodine for a great many people around the world.

Idosing salt was and is one of the greatest public health success stories of the 20th century, do not talk about it like some conspiracy by government.
Postgres doesn't have multi-master. That's the problem.
Software Second Version Richer in Allusion
I keep seeing this exact comment at the top in every thread about smart devices. It's basically copypasta at this point. Even the replies follow the same pattern we've seen a thousand times.

I wish there was a way to detect "standard comments" and filter them out or put them in a different tab. It's not just this topic. Another example is the "I quit X and couldn't be happier" we see in every thread about Big Tech, regardless of the content of the article.

I understand that these comments resonate with a lot of people but when clicking a thread I expect to read comments about the actual topic (the new intrusive ads that LG just introduced), not generic comments about smart devices in general.
FYI, the name of the introductory section of a journalistic article is "lede", not "lead", and the practice is called "burying the lede".
Serious question, but what is a prefab home in the US made of? Here in Germany i think Ytong / aerated concrete would be a good choice, since it is a very good isolator already and you can get a pretty good subsidy if you build your house to a certain standard of energy efficiency. Ytong makes that pretty easy to accomplish. Here is a site in German with all of their houses: https://www.ytong-bausatzhaus.de/haeuser/

Here is a developer of prefab houses showing their plus energy house (meaning it produces more energy than it requires to live in): https://www.hanse-haus.de/en/prefabricated-houses/energy-eff... - these are not made out of aerated concrete though, they use timber panels.
When you are creating MVPs time matters the most. You are anyway going to throw it away and build something better.

I was using Mongo and NodeJS a lot but then switched to Python. Now I find the world of ORMs to be onerous. I just want to define tables in MySQL and just run raw SQLs. The best compromise I have found so far. I mean it does involve boiler plate code but ultimately it's an MVP.

And you are right, most of MongoDBs uptick was because of the reasons you state. E2E Javascript and in addition the ability to query nested JSON natively.
Ouch... thanks; I didn't realize the Rust situation was this bad :(. FWIW, I do not look at generators as being what I would want as my interface for working with coroutines, and am very much on board there with the comments from tommythorn. I guess I just have too many decades of experience working with coroutines in various systems I have used :(.

https://github.com/rust-lang/rust/issues/43122#issuecomment-...

https://github.com/rust-lang/rust/issues/43122#issuecomment-...
For what it's worth, I find https://psychonautwiki.org/wiki/Main_Page to be the best wiki out there for this stuff.
Coverup of the Century. Coronavirus 2021
> It boggles my mind that France and South Korea had such great success with nuclear but nobody else was able to replicate that success.

The reason is that France has invested a lot of public money in nuclear energy. The state has taken the investment risks, over a very long period of time (decades) for the public good.

Nuclear energy is not really viable with private investment, because the return over investment time and the cost of money is too high. States can borrow sub-0% loans. Private power companies just can't.

And France invested at a time where there was a consensus between politicians, to invest in the future. Now politicians hardly invest for their elected time.
Here you are:
https://youtu.be/cQoQE_HDG8g
It’s a great presentation by one of the guys behind wayland, who worked on X a lot before.

Basically, X has a fundamentally misaligned abstraction of the underlying hardware - which is expected based on its age. When used with a compositor, it is basically a middle-man with no function whatsoever. So Wayland decided to cut out the middle man and pass events directly between client and compositor. But please watch the video, I think it will answer all your questions.

Also, it’s not like X will be totally deprecated, XWayland is an API implementation of it that will be supported forever.
It is requiring giving Oracle credit card, right?

Because I heard horror stories about Oracle suddenly discovering that you did something that qualifies for extra-special-charge.

And I am not a major corporation that can easily pay major bill to another corporation.

("requires credit card" part is understandable to me, but I see no reason to trust Oracle given what I know about their approach)
i totally could be i dont understand the main comment. but they wrote 'or even landing page views per month' ?
> Google founder Mr. Sergey Brin

I love how academics interject titles into their communication, even when they're not necessary.
I think FHE is nowhere close to practical performance, conditional branches or not.
Many concrete producers are using technology invented by CarbonCure and Solidia to inject CO2 into concrete, which makes it stronger. It's one of the most permanent forms of sequestration, so it takes the CO2 out of circulation forever. Right now, these concrete plants don't have the capability to capture their own CO2, which would be a very elegant solution. In the medium term, as that gets built out, we're going to be switching to permanently sequestering our CO2 in depleted oil wells and saline aquifers, rather than selling it to concrete producers. And in the long term, we hope to turn it back into fuel right at the truck stop. So selling to concrete producers is only the first step of our roadmap for CO2 sequestration!
Your lips won't melt off and die if you inject botox under your skin though.
You can submit pull requests if you feel like this information is important.
Once you get to a place where you need to run really-really huge workloads, like thousands or tens of thousands of machines, kubernetes, hosted or not, will take the will to live away from you. It's not about the learning curve, or the convenience, it's that kubernetes gets slow to catch up on large workloads that need to change often. That kind of setup is where nomad + consul + vault + terraform shine.
> In fact when most recipes specify a volumetric measurement of salt they mean table salt

That’s really not true. Most food writers would tell you that the standard is kosher salt, and many would specify diamond kosher
Show HN: Ballreport – Key basketball data in one place
I don't understand how that is even possible. The layers between a Engineering VP and the actual technology stack that runs thing must be vast... Googles secret sauce isn't the layers, but the actual implementation of each layer.... is Sridhar that level of smart?
This is a pretty old thread at ~12 hours, but there's someone putting in an active effort to enable OctoPrint to run directly off of an Android device. Still pretty early days. The author currently still distributes and gathers feedback through the linked Telegram group.

https://github.com/feelfreelinux/octo4a