skysight-inc/HackerNews huggingface dataset:
Does anyone actually enjoy using these systems that encourage you to embed programming-language X code in programming-language Y heredocs?

I always find actually doing that — and then maintaining the results over time — to be quite painful: you don't get syntax highlighting inside the string; you can no longer search your worktree reliably using extension-based filtering; etc.

I personally find the workflow much more sane if/when you just have a separate file (e.g. `foo.zig`) for the guest-language code, and then your host-language code references it.
Even simpler is trying to calculate |i| (i.e. the distance between the points 0 and i on the complex plane) as √i² = √-1 = i.
The original history is usually a bunch of garbage. If you need more detail you can rebase as many commits as you like. More detailed history is sometimes a distinct problem. Imagine trying to bisect some spaghetti bowl of commits with merges to find the source of a recurring issue. It would be relatively nonsensical compared to a clean linear history.

Clean history can exist with merges, but I think merging all over the place obviously encourages messy behaviors.
I would call out design optimizations as distinct, though maybe economies of scale helps enable those.
Like I said already, the free versions of JetBrains IDEs do not have these plugins or features.
you are calculating inner product of otrhogonal vectors. For distance it should be abs(a-b) it will result to sqrt(2).
See Maggi on this list which is now owned by Nestlé:

https://en.wikipedia.org/wiki/List_of_companies_involved_in_...

Nestlé also participated directly:

https://www.nytimes.com/2001/08/31/news/new-studies-detail-s...

https://archive.is/4ZLSN

> Nestle and the former Brown Boveri & Co., now called ABB, earlier admitted slave labor had been used at their German sites and have paid compensation. Novartis, Nestle and Roche contributed to the $1.25 billion settlement in 1998 that banks organized to settle the Holocaust account claims.
Absolutely.

I had a job once where my manager and the CEO were both fairly frequent smokers, and so the people at the company that smoked would go outside and join them on their smoke breaks. I noticed that these people were frequently the ones who got bonuses and the benefit of the doubt compared to the people who didn't smoke, I think simply because they had more exposure with the leaders.

I didn't (and don't) smoke, so it was always a bit awkward for me. I suppose I could have just hung out with them as they smoked and I didn't, but I never did that.
This is very cool. Do you think I could use to do UX/UI testing?
The quoted text is a great mechanism to turn your brain off. "Oh, they giving me stuff. They must be good then and can do no wrong. I can turn my brain off and go sleep."
....you can do that using our universe's physical constants too.

Care to elaborate? Or link?

I mean, everything that is, is just displaced temporarily homogeneous complexity, allowable between the fluctuations of gradients of temperature, allowing the illusion of work to appear more than just energy dissipating into the either of expanding space-time, dragged by the irreconcilability idea of "gravity".

But that doesn't help bake an Apple pie from scratch, as Carl Sagan would put it.
> max and min of two numbers.

Influenced by windows.h I see :)
>language is couched in culture

If that were true, then it wouldn’t be possible to translate between all languages.

There are conditions of possibility of language use that are universal, even if they do not appear in any given language. But one also expresses themselves other than in words, like in artworks, and this expression often has the same force as language: in fact, the expression itself precludes language and if words are used it is only as a means. Affective history, upon which words move, is that condition of possibility for expression.
You can try it out in Python directly which natively support complex numbers (just use j instead of i):

>>> import math
>>> z=1+2j
>>> z*complex.conjugate(z)
(5+0j)
>>> math.sqrt((z*complex.conjugate(z)).real)
2.23606797749979
>>> abs(z)
2.23606797749979

As we can see abs(z) does the right thing. Try it with a negative imaginary part too and "nicer" values:

>> z = 3-4j
>>> math.sqrt((z*complex.conjugate(z)).real)
5.0
>>> abs(z)
5.0
Or you don't have your own model, you use GPT-4V to determine the coordinates of where to click the bot?
Do you find that there are a lot of variations and intricacies in deciding which LLM to use? I find it pretty simple to just assume sonnet is best at most coding jobs, o1 best at complicated non-coding tasks, 4o for simple questions that don't require planning. and well, tbh that's it, no other LLMs are that interesting.
This is something I wasn't aware about until relatively recently and a recent post about building deployment images that included dev tools makes me wonder if I'm not the only one.

The big caveat is that this is something that's a paid-for feature - but I'm sure there are other free mechanisms that are equivalent.
Show Baseline status on your blog posts and presentations
Campaign for New York abortion amendment spends on overhead. Not so much on ads
It goes further back. Napoleon offered a prize in 1795 for some way to preserve food for soldiers.[1] The result was "canning" - heating, boiling, and sealing in an airtight container. Originally in glass jars. Later metal cans. Finally vacuum-packed plastic.

Current products include MREs for the military, which are actually somewhat hard to buy commercially since Warnock got tired of dealing with preppers. They really want to sell these things by the container load. There are all kinds of knock-offs available. The real military MREs are designed for young soldiers in good condition doing heavy work, so three of them contain almost 4,000 calories. Civilian versions tend to be smaller portions.

There's also the Humanitarian Daily Ration. It's kosher, halal, vegetarian, lactose-free, and nut-free. Also air-droppable without a parachute. It's basically lentils and beans.
It's intended for people on the edge of starvation. The US military used to give out MREs in crises, but that was too much concentrated energy food for someone nearly starving and could sicken them.

[1] https://www.npr.org/sections/money/2012/03/01/147751097/why-...
in contemporary culture where being able to reason what could be served by linear algebra and what can't would allow you to make better decisions and have more understanding, requiring more exposure to linear algebra to positions of high authority doesn't seem like an unusual line of reasoning

surely the devils in the details on how it's implemented to have it be "actually" helpful, but I don't see a problem with the sentiment
Golly gee, could it have something to do with the food?
I'd imagine you'd get higher quality leveraging accessibility integrations.
It’s looking really good so far. Some known issues in the expo and RN ecosystem are called out under the troubleshooting section here:

https://docs.expo.dev/guides/new-architecture/
No prob.

I noticed that I did not want to drink the day after my first shot. It was that fast. If anything the closest I came to drinking came from routine, not desire. That is to say, what is an afternoon watching football if not with a beer in hand? But I was able to move past that.

One thing I should make clear, no matter how heavy a drinker I have been at times in my life, including with liquor, I have never had a physical addiction. A person deep in the throws of physical addiction will need to approach this carefully.

If you are interested in this topic, I highly recommend reading this newsletter: https://recursiveadaptation.com/

There is a lot of great writing on this subject and some real world testimonies in there. Also happy to answer any more questions here.
Amusement has nothing to do with it. This is one method among many for pursuing national geopolitical goals. It's a shame that the Russian populace has to suffer, I bear them no ill will. But if they ever want to get out of international sanctions then they know what they need to do.
Even if they gave these away, who would want them?
You could call it bandwidth, or call it entropy. I'd lean towards the more physical definition.

I think of how the USA had cable TV and hundreds of channels projecting all kinds of whatever in the 80s while here in the UK we were limited to our finite channels. To be fair those finite channels gave people something to talk about the next day, because millions of people saw the same thing. Surely a lot of what mankind has done is to tame entropy, like steam engines etc.

With AI and everyone having a prompt, it's surely a game changer. How it works out, we'll see.
Yes, and with the recent overturning of the Chevron doctrine, that's going to be tougher to fly.
> 15 years building up massive apps with Django and SQLAlchemy and this has never been a problem.

I guarantee you it is if the reader isn't already intimately familiar with SQLAlchemy.
On the other hand, ifnt is fun to say outloud.
I think it's become too cheap to be a status symbol anymore. Well heeled used to mean rich because you had to have money to get decent shoe heels. Now anyone can get decent shoes so why worry about it.
I find the idea that late Bronze age swords being designed around formalized fencing grips a somewhat preposterous assumption.

While I have no doubts that these were luxury items for a sophisticated people, these were simpler swords that long preceded all ideas of sword dueling and even any practiced martial art in these regions by about 3000 years.

These were rare and simple weapons of opportunity. Most swords would be used against people who didn't have a sword, and maybe had never seen one. There would have been no more formalized training or thought into using one any more than you would hold a stun gun if handed one for the first time.
Show HN: Tone 0.1.8 – hackable cross platform audio tagger
Today I released tone 0.1.8 [1] - the new version of my hackable cross platform command line audio tagger.

Features:
- dump and modify metadata for most common audio formats (mp3, m4a, flac, ape, etc.)
- use JSONPath to query single metadata fields in dumps (--query='$.meta.album')
- common AND custom metadata fields (album, artist, but also sort-title, movement-name, etc.)
- Chapter support for mp3 and m4a
- Embeddable pictures
- Custom `tone.json` metadata format to export / import all metadata in one file (including covers as base64)
- Hackable via custom JavaScript functions (write your own taggers with url fetching and custom parameters)[2]
- dump range of raw audiodata bytes (e.g. to calculate hashes)

Examples:

# dump metadata for input.mp3 with json query
tone dump "input.mp3" --format json --query "$.meta.album"

# dump all files in audio-directory/, but only album and artist
tone dump audio-directory/ --include-extension mp3 --format ffmetadata --include-property album --include-property artist

# change title tag
tone tag input.mp3 --meta-title "a title"

# change tags of an audio book directory based on directory names
tone tag --auto-import=covers --auto-import=chapters --path-pattern="audiobooks/%g/%a/%s/%p - %n.m4b" --path-pattern="audiobooks/%g/%a/%z/%n.m4b" audiobooks/ --dry-run

I know not many people are tagging their audio files these days, but hey, it's a pet project, so feedback is very welcome.

1: https://github.com/sandreas/tone

2: https://github.com/sandreas/tone?tab=readme-ov-file#custom-scripted-taggers-experimental
The newer mac version was actually showing huge promise. It was a couple of versions away from being a great choice as primary IDE. That said, I do understand why they axed it. The market would have been tiny for all that investment.
Risk factors for NAION are basically all the things that you go on these drugs to treat - type 2 diabetes, sleep apnea, cardiovascular disease, blood pressure, etc. One observational study that shows some correlation isn't enough for me to be particularly concerned about it.

> As of March 31, only 4 cases of gastroparesis were recorded for semaglutide—the active ingredient in Ozempic and Wegovy—in the FDA Adverse Event Reporting System (FAERS), a surveillance database updated by healthcare professionals, consumers, and manufacturers. For tirzepatide—the active ingredient in Mounjaro and Zepbound—there is just one case logged.

I don't have more recent numbers, but these seem pretty low.

I don't think anyone is saying that there is no chance of significant side effects in people, but when measured against the risks of being obese, they'd have to be very bad and impact a significant number of people taking the drug.
Quick primer on how the courts have been successfully weaponized here.

The Federal court system is divided into circuits [1]. Circuits are further divided into districts (eg Eastern District of Texas). In sparsely populated, large areas there districts may be further subdivided into divisions. The idea is you shouldn't need to drive 6 hours to get to a Federal judge.

Each district has an Appeals Court that sits above the District Court so that's what "Fifth Circuit Court of Appeals" means. Above all the circuit appeals courts sits the Supreme Court. Additionally, each circuit has a single Supreme Court judge who is available to hear emergency motions from appeals court rulings. That judge can rule on the motion or refer the matter to the entire Supreme Court.

Judges reflect the politics of the state they're in because of the blue slip system [2]. Presidents nominate judges to Federal courts. A Senator from that judge's state by tradition (ie there's no law for this) essentially can veto that nomination.

Federal district court judges have the power to make rulings and issue injunctions that affect the entire country.

So in Texas we have a perfect storm for judge shopping and a forum to push conservative views through lawsuits. Texas is a large state so the districts are divided into divisions. A division might only have 1-2 Federal district court judges. So if you nominally establish a business in Amarillo, TX you know with a high degree of certainty what judge you'll get when you file a lawsuit. With certain questionable tactics, you can know pretty much 100% what judge you "randomly" get assigned.

This is called "judge shopping".

It's why all the patent cases are litigated in the Eastern District of Texas. It's why any anti-abortion lawsuit always ends up in front of Judge Matthew Kacsmaryk [3] in the Northern District of Texas (eg [4]).

So the Fifth Circuit is conservative because Texas, Alabama and Louisiana are conservative. Conservative judges are usually viewed as more friendly to lawsuits attacking any sort of government regulation. Even if the Fifth Circuit Court of Appeals doesn't rule in favor of the cable companies, the matter will go straight to the Supreme Court. This current Supreme Court has shown themselves highly likely to take up the case and intervene, probably in favor of cable companies.

[1]: https://en.wikipedia.org/wiki/United_States_federal_judicial...

[2]: https://en.wikipedia.org/wiki/Blue_slip_(U.S._Senate)

[3]: https://www.txnd.uscourts.gov/judge/judge-matthew-kacsmaryk

[4]: https://www.npr.org/2023/04/07/1159220452/abortion-pill-drug...
Lots of advantages from labor to financing to government subsidies and environmental regulations. It would be nearly impossible to compete with that
Hum... Yeah, it's a parody.

But then you already expended a huge paragraph explaining how it's realistic. So I don't understand your complaint.
Your argument that Russia is solely responsible for destabilizing the region mirrors a familiar rhetorical pattern seen throughout history, where weaker powers are trapped in a Kafka trap[1]. Any resistance or reaction by the weaker side justifies further aggression from the stronger power, leading to their gradual erosion and disappearance through salami slicing tactics[2]. Whether through territorial encroachment or strategic isolation, the larger power frames its actions as purely defensive while the weaker party’s responses are cast as irrational or self-destructive.

For historical examples, you can look at Carthage under the Romans prior to the Third Punic War, the Saxons under the Normans after Hastings, or the Native Americans under the United States. There are others.

For contemporary examples, you can look at the Palestinians under the Israelis (or the Israelis not-quite-under the Arab world) or even the Ukrainians themselves under the Russians!

In each of these struggles, the dominant hegemon and its allies want a dominated rival that is "stable, economically entwined with limited influence on their neighbors beyond economic ties. No tendrils of malevolent influence or proxies." Which is to say, totally compliant with their controller and inert as a geopolitical force as they are salami sliced at will.

Russia's response to NATO's expansion is a contemporary example of this. Much like other weaker states in history facing incremental encroachment, Russia is blamed for destabilizing the region, while the more powerful actors continue policies that provoke and escalate the situation. The expectation that the weaker side alone should de-escalate or withdraw ignores the external pressures that limit their autonomy and drive their actions.

These narratives are almost always self-serving
and oversimplify the situation by placing full responsibility on the weaker party, masking the larger power dynamics at play. Throughout history, dominant states have used this framing to justify the gradual weakening and containment of their adversaries, presenting their own expansionist or aggressive strategies as benign or defensive while shifting the blame onto those they are dismantling.

All I'm saying is these narratives of "I'm purely defensively containing you so I can eliminate you" are ubiquitous throughout history, but the best of those in the dominant position still understood that it was an ignoble lie even as they struggled against and were dragged along by them. The world would likely be healthier if we emulated them rather than those that always claim that their enemies are historically unlrecedented and uniquely Very Bad Persons[3].

[1] https://en.wikipedia.org/wiki/Chinese_salami_slicing_strateg...

[2] https://dangerousintersection.org/2020/06/25/recognizing-and...

[3] https://youtube.com/watch?v=HLNhPMQnWu4
Give it a try! It's very capable of doing simple tasks like logging in and clicking around. You'll need to prompt assertions like "Complete if..." and "Terminate if..."
Take a look at exenatide, a GLP-1 that was FDA-approved in 2005.

https://www.perplexity.ai/search/does-exenatide-lower-or-ext...
> walk down a side road if I wanted to use my phone so as to avoid having it grabbed from my hands.

Is this really a thing in London?
You are not the arbiter of what is "childish".

This style of condescension does grow tiring.
> who can expand this or explain what exactly is "arbitrary", "capricious" or "abuse of discretion"?

If you follow SCOTUS opinions, like half of them are about these words. That isn’t an answer so much as an admission that the APA is one of the more jargon-heavy areas of law. Importantly, however: these standards are not overturned by the junking of Chevron deterrence.

Arbitrary-and-capricious focuses “on the process of decision-making rather than the outcome itself. Courts applying this standard do not substitute their judgment for that of the agency but instead examine whether the agency’s decision-making process was rational and based on consideration of relevant factors” [1]. Courts will look at if the agency “relied on factors that Congress did not intend it to consider…failed to consider an important aspect of the problem,” or “offered an explanation that runs counter to the evidence before the agency.” So if an agency doesn’t consider reasonable alternatives to its rule or doesn’t provide evidence for each step in its thinking, its rule can be struck down [2].

Note that these concepts trace from judicial standards, i.e. appellate courts will overturn lower courts if they acted arbitrarily, capriciously or abused their discretion. If a lower court “does not apply the correct law or rests its decision on a clearly erroneous finding of a material fact.…rules in an irrational manner” or “makes an error of law,” its ruling can be overturned on the basis of abuse of discretion [3]. So if an agency facing a statute of limitations gets stonewalled by a defendant running out the clock, and a court dismisses (versus stays) the case on the basis of the statute of limitations having run out, that is abuse of discretion [4].

[1] https://attorneys.media/arbitrary-capricious-legal-standard-...

[2] https://en.m.wikipedia.org/wiki/Motor_Vehicles_Manufacturers....

[3] https://cdn.ca9.uscourts.gov/datastore/uploads/guides/stand_...

[4] https://casetext.com/case/pension-ben-guar-v-carter-tillery-...
Am I the only one thinking this is an awful way for AI to do useful stuff for you? Why would I train an AI to use a GUI? Wouldn’t it be better to just have the AI learn API docs and use that? I don’t want the AI to open my browser, open google maps and search for Shawarma, I want the AI to call a google api and give me the result.
Age-related changes in gait, balance, and strength parameters
Better to work with of course. If you have valid reasons to have branches, such as a need to ship multiple versions, I don't have a problem with that. But day-to-day work is better done via rebasing rather than making a ton of public branches that get merged. If you know what you're doing then rebasing is just as easy as merging. As others have said, git rerere helps a lot too.
Generally I think it's much more useful to link the orignial, rather than the churnalism article written about it.

https://cn.nikkei.com/industry/icar/56879-2024-10-09-09-00-2...

Although it's in Chinese, Google Translate can help you out.

The TLDR version is that BYD integrates many components of the electric drivetrain into a single sub-assembly, and shares said assembly between multiple vehicles to achieve volume cost savings.

Which is fine for bringing the costs down, but keep in mind their cars have zero repairability, which might be a concern, considering the engineers though the components aren't protected well enough agains water ingress.

Although, I admit my skepticism might be unfounded. I've owned the same car for close to a decade, and I haven't replaced anything besides consumables and fluids.
While I applaud the result, it's again one of the thing that would be a quick script if it were only for my personal usage. Because I wouldn't bother with making it user friendly as I'm the single user.

The kind of project I work on is more like this: Build an Android app for a quiz game. The quiz takes a list of random question from a set. Each set is a package that can be installed and upgraded when online. While the app is free, there is an activation code to be able to download the main packages. The app should work offline except for the activation and downloading packages. It also should notify when a new version is ready for a package. etc...

I don't know if LLMs could have helped me at the time (pre 2020), but I doubt it. Not because the code was complex, but mostly how cohesive the whole thing should be while taking care they're not tightly coupled and be maintainable by a single person. The IDE was a great helper once I got the design and the architecture outlined, mostly because it was deterministic and I already know what the end result should be.
You're getting downvoted because you didn't even care to do a simple Google search as to when the first GLP-1 was released. 2005. Almost 20 years.

We have the data.
Nerve – A query planner/engine that sits on top of APIs
You're looking at it from a developer's perspective. For non-developers, vision opens up all sorts of new capabilities. And they won't have to rely on the software creator's view of what should be automated and what should not.