MurphyA/hacker-news huggingface dataset:
by chrisheecho | 2025-05-04 06:47:15+00:00
That’s correct! You can send images through uploading either the Files API from Gemini API or Google Cloud Storage (GCS) bucket reference. What we DON’T have a sample on is sending images through bytes. Here is a screenshot of the code sample from the “Get Code” function in the Vertex AI studio. https://drive.google.com/file/d/1rQRyS4ztJmVgL2ZW35NXY0TW-S0... Let me create a feature request to get these samples in our docs because I could not find a sample too. Fixing it
by chrisheecho | 2025-05-04 06:48:42+00:00
lemming, this is super helpful, thank you. We provide the genai SDK (https://github.com/googleapis/python-genai) to reduce the learning curve in 4 languages (GA: Python, Go Preview: Node.JS, Java). The SDK works for all Gemini APIs provided by Google AI Studio (https://ai.google.dev/) and Vertex AI.
by chrisheecho | 2025-05-04 06:48:57+00:00
We have moved our quota system to Dynamic Shared Quota (https://cloud.google.com/vertex-ai/generative-ai/docs/quotas) for 2.0+ models. There are no quotas in DSQ. If you need a guaranteed throughput there is an option to purchase Provisioned Throughput (https://cloud.google.com/vertex-ai/generative-ai/docs/provis...).
by TeaBrain | 2025-05-04 06:49:27+00:00
I'm aware, and I'm not contesting this, but this is besides the point. What I'm getting at is that Walter seems to think that prosperity has a 1 to 1 correlation to market freedom. If the GDP of the US started diverging farther away from the EU at a greater rate than prior to the GFC, then to his way of thinking, this must have something to do with how the EU limited market freedom following the GFC.
by whatever1 | 2025-05-04 06:49:57+00:00
Democracy & separation of powers stand for something simple: Over long horizons, everyone is wrong.

Take any governance system that is in power for too long. It becomes rotten and it serves its own purposes. Democracy breaks that downwards spiral.

It is not a stable system, it is not predictable, it is not cheap to operate, heck it’s not even guaranteed that it will work. But it prevents the certain path to self-destruction.
by freehorse | 2025-05-04 06:50:38+00:00
> But HID had not been designed for the possibility that packets could get lost

Doesn't the same problem exist for USB dongles with proprietary RF protocols?

Logi Bolt is a good solution. But ime most other USB dongles are terrible. I have had a lot of bad connection issues with such USB dongles, and never with similar bluetooth devices. USB dongles also use the same 2.4GHz band, and even more they are prone to interference from nearby active USB ports [0]. If you have ever had a "jumping" mouse while transfering big amounts of data through a port neighbouring your mouse's USB dongle, this is likely the reason.

[0] https://www.usb.org/sites/default/files/327216.pdf
by rudasn | 2025-05-04 06:51:07+00:00
I had very similar concerns when I was building my sideproject.

But I was determined to ship, so once the code was deployable (the bear minimum, nginx with ssl setup) I pushed to my VPS and posted a link on HN. It was late Sunday night, was very tired, but just wanted to get real user feedback. But I also knew the chances of anyone seeing the link and actually giving feedback were slim, so I tried not to worry too much about it. The important bit was taking the first step and shipping something. Everything else follows from that.

So, my advice is to put it out there and invite people that could give you helpful feedback. Avoid toxic communities as that will only add to the stress.

Best of luck!
by ajb | 2025-05-04 06:51:27+00:00
If this is a metal box like a shipping container, you'd have to attaching it to the outside somehow. However the website just says "steel framed" which suggests the sides might not be metal, in which case it might work.

However it's quite possible that something else happened to it that they don't want to admit. Like maybe their driver was DUI and crashed it.
by vasac | 2025-05-04 06:51:38+00:00
Not exactly. It’s just that much more effort is put into making crimes acceptable to the general public. Embedded 'independent' journalists, collateral damage, precission weapons, 'mistakes’ everywhere, and the usual ‘but we are a democracy' - along with a bunch of similar justifications. It still results in over a million deaths, but now it’s perfectly acceptable to the majority of people.
by selecsosi | 2025-05-04 06:52:08+00:00
I'm a fan of Joseph Tainter's analysis around organization of societies and issues around collapse being related to diminishing marginal returns. I think there's a lot to that position when you look at the general political party agendas. Technocratic solutions trying to squeeze more blood from the stone while providing less and less to participants (I have less of a theory on effectiveness for any given action, this is more of an observation).

https://risk.princeton.edu/img/Historical_Collapse_Resources...
by RainyDayTmrw | 2025-05-04 06:52:18+00:00
I mean, yes, that's exactly the argument that the bigger, later investors make, and their lawyers are happy to back them up on that for money.

But consider this. If that were truly the case, why would the later investors work so hard to maneuver their way into this allegedly worthless startup? Why not hire an entirely separate team to build an entirely separate app, and they can own the whole thing with no fuss? If they value the founding team, why not tempt them away to a new venture, and shed all the baggage? Economics has an idea called "revealed preferences" - that words can be deceiving, but costly behaviors are honest - and this does look to be the revealed preferences of the investors.

In other words, just because the later investors can use the threat of insolvency to get their way doesn't mean what's already there doesn't have value.
by tsimionescu | 2025-05-04 06:53:29+00:00
> A newborn cannot possibly understand and contextualize the intense pain that it is being subjected to, both during the procedure and during the recovery.

While I wouldn't defend infant circumcision in any way, I think the paragraph from you is exactly the point. Babies don't conceptualize pain in the same way children or adults do, it just isn't the same sort of thing. It doesn't necessarily scare them in the same way, and there is no evidence whatsoever that painful experiences are traumatic for infants. And biology seems to align with this, as all infants also naturally suffer quite intense pain for months as their teeth grow.

So I don't think the case that inflicting necessary pain on infants rather than doing it later as children or adults is a bad one. Of course, the pain of circumcision is entirely unnecessary (for the vast majority of people, since of course phimosis is a thing that affects some people). But, in principle, for a necessary operation, having it done as an infant is sound medical practice.
by safety1st | 2025-05-04 06:53:48+00:00
This doesn't sound like an accurate description of US agriculture. Just off the top of my head

* The US is not producing enough food - it's now a net food importer

* The increasing problems we are seeing in the food supply chain are usually tied to producers cutting costs and padding margins

Matt Stoller has gone into this at length - https://www.thebignewsletter.com/p/is-america-losing-the-abi...

So I mean it could depend on your definition of productivity, if anything that increases shareholder returns at the expense of a good product or robust supply chain is considered more "productivity," sure. Just as monopolies are the most "productive" businesses ever for their shareholders, but generally awful for everyone else, and are not what most people would think of as productive.

The human definition of productivity is - less inputs producing more and better outputs.

The cartel doublespeak definition is - the product got worse and the margins improved, which seems to describe US Big Ag at present
Show HN: Time to Hack
by madinmo | 2025-05-04 06:54:35+00:00
Most websites suck at telling you if your password is actually secure. They are still stuck in the 2000s, using outdated password rules. They check for symbols, numbers, uppercase letters—then rate Password1! as “strong”. But any real attacker cracks that in minutes.

I got tired of these outdated rules that don’t reflect actual security. So I built Time To Hack. This Chrome extension estimates how long it would actually take to crack your password (as you type), across realistic attack scenarios using entropy analysis, pattern recognition, and modern cracking models.
by timewizard | 2025-05-04 06:54:58+00:00
> Most American parents simply elect

That used to be true but the rate has declined significantly recently.

> Tonsillectomies used to be routine

Well you can literally observe the inflammation of those. Which is significant if your patient is not verbal yet. The risk of UTI drops off significantly after age 5 which highlights some of this reasoning more clearly.

> Surveys have been conducted and found that an overwhelming number of intact men

In cases where state Medicaid stopped covering the procedure for newborns they found it did reduce the rate of newborn circumcisions; but, it increased the rate of adolescent and adult circumcisions.

Also the use of "intact" and "amputate" are fairly judgemental terms particularly when "uncircumcised" and "circumcised" are more correct and more commonly used. To be technical it's actually a partial amputation as it's not typical to remove all of the foreskin. It's also true that the procedure can be a treatment for Phimosis or other chronic infection issues. So these terms are needlessly loaded and possibly inappropriate for the stigma they create.

> don’t believe one can argue that it is less traumatic and less risky for a human who is only a few days old

I'm sorry but the medical data is perfectly clear on the risk. It is absolutely less risky. "Circumcision risks tend to be lower when performed on infants compared to older children and adults. The complication rate is generally much lower in neonates (around 0.4%) than in boys aged 1-9 (around 20-fold higher) or those 10 and older (10-fold higher). "

> understand and contextualize the intense pain that it is being subjected to

Do you believe that the act of birth itself is painful for the baby? Was it more or less painful than this procedure that is performed with local anesthetic? I also think this is why parents are somewhat inclined to opt into the procedure. You've already gone through so much you might as well get it all done early.

We could also observe that parents that are circumcised are likely to opt into the procedure for their own children. So to the extent that this pain made any impression on them it doesn't seem to be evidenced in practice.

These are pretty thin points either way. We need better data otherwise this will always be rooted in subjectivity.

> Whereas an adolescent or an adult opting for this procedure would be informed beforehand, give explicit consent, and be given sufficient anesthesia.

Parents are expected to make health care decisions for their children until the age of majority. In most treatment related cases they would still be under their parents care. In both cases as long as the parent is informed and consents there is no actual difference.

Unless you're suggesting that unless required by medical condition that all circumcisions must be performed after 18 and only when a patient solely consents for it; well, there are clearly just as many problems with that proscriptive and tortuous approach. And without strong data to suggest that it would be a net benefit to do this we're better off with the current status quo.
Ask HN: Would you give your Microsoft Azure keychain to an AI agent?
by maxchampoux | 2025-05-04 06:56:55+00:00
Hey HN,

I’m Maxime — a product builder and former Head of Product at Qonto (think Brex for Europe, ~$6B valuation). I recently started something new called [Well](https://wellapp.ai/) (https://wellapp.ai/), where we deploy autonomous agents (via remote browsers or Chrome extensions) to collect supplier invoices on behalf of founders. It saves tons of brain cycles for busy operators.

Now, I know I’m EU-based and this might sound like yet another attempt to regulate everything … but bear with me — the core question is:

> Would you give your Microsoft Azure keychain to an AI agent?

Over the years, I’ve built many integrations — some with OAuth2, others via RPA when no official APIs existed. But with this new generation of agents acting autonomously on behalf of users, I’m starting to wonder: how will we manage authentication and define the scope of what an agent is allowed to do?

*Problem 1: Agent Authentication*

My agents act on my behalf — but I’m extremely anti-password proliferation. While it's tempting to just give an agent my password and 2FA codes, that feels fundamentally broken.

Ideally, I want agents to request access to credentials with a specific scope, duration, and purpose — and I want to manage that access centrally. If I change my password or revoke permissions, the agent should lose access instantly.

*Problem 2: Agent Scope & Consent*

Let’s say an agent gets valid SaaS credentials and starts crawling an account. How do I know it's only collecting invoices, and not poking around in sensitive settings or triggering a password reset?

OAuth solved this with scopes and explicit user consent. But agents today don’t seem to have an equivalent. There’s no "collect-invoices-only" checkbox.

My open question: Should this kind of permissioning live inside a password manager? Or is it the responsibility of agent platforms to build a consent-aware vault? Or should we be thinking about something entirely new — like an MCP (Multi-Agent Control Protocol)?

Would love to hear if anyone has seen serious work or proposals in this space — or if you're tackling similar challenges in your vertical.

Thanks!
by karel-3d | 2025-05-04 06:58:54+00:00
Just fyi (not talking down this project, more providing alternatives) - dnsdist (part of OpenDNS "suite") which is mostly "sold" as a DNS load balancer - is also a perfect stub resolver, that can do DoH/DoT on both ends, that can block certain websites, and is very easy on resources.

Not that many people talk about its usage as a stub resolver, and I don't know why!
by DemocracyFTW2 | 2025-05-04 06:59:06+00:00
As someone who worked in the field of "semantic XML processing" at the time I can tell you that while the "XML processing" part was (while full of unnecessary complications) well understood, the "semantic" part was purely aspirational and never well understood. The common theme with the current flurry of LLMs and their noisy proponents is that it is, in both cases, possible to do worthwhile and impressive demos with these technologies and also real applications that do useful things, but people who have their feet on the ground know that XML doesn't engender "semantics" and LLMs are not "conscious". Yet the hype meddlers keep the fire burning by suggesting that if you just do "more XML" and build bigger LLMs, then at some point real semantics and actual conscience will somehow emerge like a hatching chicken from the egg. And, being emergent properties, who is to say semantics and conscience will not emerge, at some point somehow? A "heap" of grains is emergent after all, and so is the "wetness" of water. But I have strong doubts about XHTML being more semantic than HTML5.

And anyway, even if Google had nefarious intentions and even if they managed to steer the standardization, one has also to concede that all search engines before Google were encumbered by too much structure, too rigid approaches. When you were looking for a book in a computerized library at that point it was standard to be sat in front of a search form with many, many fields; one for the author's name, one for the title and so forth, and searching was not only a pain, it was also very hard to do for a user without prior training. Google had demonstrated it could deliver far better results with a single short form field filled out by naive users that just plonked down three or five words that were on their mind et voila. They made it plausible that instead of imposing a structure onto data at creation time maybe it's more effective to discover associations in the data at search time (well, at indexing time really).

As for the strictness of documents, I'm not sure what it will give you what we don't get with sloppy documents. OK web browsers could refuse to display a web page if any one image tag is missing the required `alt` attribute. So now what happens, will web authors duly include alt="picture of a cat" for each picture of a cat? Maybe, to a degree, but the other 80% of alt tags will just contain some useless drivel to appease the browser. I'm actually more for strict documents than I used to be, but on the other hand we (I mean web browsers) have become quite good at reconstructing usable HTML documents from less-than perfect sources, and the reconstructed source is also a strictly validating source. So I doubt this is the missing piece; I think the semantic web failed because the idea never was strong, clear, compelling, well-defined and rewarding enough to catch on with enough people.

If we're honest, we still don't know, 25 years later, what 'semantic' means after all.
by TeaBrain | 2025-05-04 06:59:32+00:00
>The reserve currency thing is irrelevant.

The little "thing" or status of having reserve currency has allowed the US to enjoy lower international borrowing costs than anywhere else in the world. This has immensely benefited the US, in facilitating ease of borrowing with relatively low interest rates and by facilitating lower exchange rate risk in borrowing than any other nation.
by iepathos | 2025-05-04 06:59:47+00:00
I don’t think it’s accurate to say that the working class is “resorting to populism to reverse the trend.” If anything, the fact that so many working-class voters support a wealthy oligarchy—one that consistently advances policies benefiting the super-rich at the expense of ordinary people—suggests that a significant portion of the population is being swayed by misinformation and manipulation, not that they’re successfully advocating for their own interests.

Ironically, it’s often the opposite party that actually pushes for policies that would materially benefit the working class. The real fallacy is equating the current wave of so-called “populism” with a genuine effort to improve conditions for workers. In practice, what’s being called “populism” is frequently just another vehicle for entrenched elites to consolidate power, not a movement to empower ordinary people.
by ii41 | 2025-05-04 07:00:22+00:00
Before opening up in 70s, China had acquired the ability to build by itself: huge numbers of machine guns and grenades, tanks, fighter planes, rockets and satellites (aka missiles), nukes.

These minus nukes and missiles plus battleships is pre-WWII Japan.

This may be helpful if you're curious why so many countries that choose free market instead of Communism after WWII are still not industrialized today.
by Sharlin | 2025-05-04 07:00:24+00:00
They see a plenty of use in professional and scientific contexts, so it’s not like their life is over. Indeed the largest digital camera sensor ever, the 3.2 gigapixel imager installed in the soon-to-be-online Vera Rubin Observatory, is CCD. CMOS won out in consumer products because of lower cost and power consumption.

[1] https://en.m.wikipedia.org/wiki/Vera_C._Rubin_Observatory
by tsimionescu | 2025-05-04 07:02:06+00:00
> We tend to respect peoples religions. Judaism, Islam and some branches of Christianity require it for males. We accept the practice for newborns under the logic that it will be less traumatic and less risky than doing it when they come of age later in life.

We don't really respect people's religions in general when it comes to harmful practices inflicted on others, including their own children. Plenty of historical practices have been phased out from many religions for this very reason, and children of cult members are sometimes taken into the state's custody for this reason.

Circumcision happens to sit at a crossroads of not being extremely harmful (unlike, for example, female "circumcision", that is genital mutilation), being actively practiced for a long time, and being practiced by a currently very well-respected religion (Judaism, mostly).

But make no mistake - if tribal people who practice genital mutilation on their girls or other forms of more extreme body modification tried to do so in the USA or Europe, they would be stopped, prosecuted, and lose custody of their children - as well they should. Freedom of religion comes second to the right to a healthy and happy life.
by dragonwriter | 2025-05-04 07:03:58+00:00
> If you have an alternative hypothesis, I’m all ears.

How about if I let you do that:

> In America, at least, workers think tomorrow will be worse than today and they are resorting to populism to try and reverse the trend.

See, belief about likely future conditions is a very different hypothesis than factually-existing current conditions, and a better one. To the extent that, IMO, its at least part of the actual explanation.
by runsonrum | 2025-05-04 07:04:11+00:00
I recently wanted to learn the basics to help my son and came across this article that made the most sense to me.

Pixel Art Tutorial: Basics

https://www.derekyu.com/makegames/pixelart.html

I have come across other articles that are similar in context but not as cleanly laid out.

The article doesn't go into the usage of software though. I think the design work flow, within software, would be greatly helpful in the understanding of achieving a great outcome. At least in a faster manner.

I hope that helps!
by yusina | 2025-05-04 07:04:39+00:00
Exactly.

After all this discussion here my conclusion is that "connecting to the internet" is an ambiguous term.

It can mean "have IP connectivity, i.e., IP packets routed to and from the internet" in which case the described PC was not "connected to the internet with QMODEM". It didn't do anything IP.

It can mean "have a terminal that can interact with information from/to the internet" in which case the PC was indeed "connected to the internet with QMODEM".

To me, the second meaning is quite the stretch, but apparently to others it's fine.
by pknerd | 2025-05-04 07:07:05+00:00
SEEKING WORK | REMOTE

Working mostly in AI/automation. Fiddling with LLMs to automate different parts of the business processes and making business owners' lives easier.

Keywords: Python, LLM, Inference, RAG, OpenAI, Claude, ollama, scraping.

Visit my audio resume(in podcast format) to learn more about what I can do:

https://youtu.be/5HpDELb-6Q8?si=Cm552Z112OXfFTHq
by kstenerud | 2025-05-04 07:08:05+00:00
Unfortunately, this is a little too simplistic.

A democracy doesn't exist in a vacuum; there are competing nations that are at work to undo or subjugate yours, and this never stops. We've lived a charmed life these past 80 years that are unlike any in the history of the planet.

American wealth and power are what brought this unprecedented stability to the western world, but it has been eroding.

As it erodes, the flaws in the American system begin to show, and then fray. The very means by which Americans elect automatically pushes it into a two party system, which is by nature polarizing, especially when external pressures come to bear.

It's also incredibly difficult to change course safely when so many people are involved (this affects all organizations, which is why startups can eat their lunch). Assuming that you can dynamically rise to the challenge is naive at best.

Federation only amplifies the problem, as you simply add more uneven competitors to the national riches.