skysight-inc/HackerNews huggingface dataset:
You caught me trying to escape some embarrassment. Here's an example:

To set some context: The code handles isolated execution of machine learning code.

Original version:

def run_code(code, timeout=3600):
try:
p = Process(target=exec, args=(code,))
p.start()
p.join(timeout)
if p.is_alive():
p.terminate()
return "Timeout"
return "Success"
except Exception as e:
return f"Failed: {str(e)}"

New version:

class ProcessExecutor(Executor):
def __init__(self, execution_id: str, code: str,
working_dir: Path, dataset: pd.DataFrame,
timeout: int = 3600):
super().__init__(code, timeout)
self.working_dir = Path(working_dir).resolve() / execution_id
self.working_dir.mkdir(parents=True, exist_ok=True)
self.dataset = dataset

def run(self) -> ExecutionResult:
start_time = time.time()
code_file: Path = self.working_dir / self.code_file_name
with open(code_file, "w") as f:
f.write(self.code)

try:
process = subprocess.Popen(
[sys.executable, str(code_file)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=str(self.working_dir),
text=True,
)
stdout, stderr = process.communicate(timeout=self.timeout)
return ExecutionResult(
term_out=[stdout],
exec_time=time.time() - start_time,
model_artifacts=self._collect_artifacts(),
performance=extract_performance(stdout),
)
except subprocess.TimeoutExpired:
process.kill()
return ExecutionResult(
term_out=[],
exec_time=self.timeout,
exception=TimeoutError(
f"Execution exceeded {self.timeout}s timeout"
),
)
> “OSHA’s existence is yet another example of the federal government creating agencies to address issues that are more appropriately handled by state governments and private employers,” said Rep. Biggs when first introducing the NOSHA Act.

From the Economic History Association:

> Before the late nineteenth century we know little about the safety of American workplaces because contemporaries cared little about it. As a result, only fragmentary information exists prior to the 1880s. Pre-industrial laborers faced risks from animals and hand tools, ladders and stairs. Industrialization substituted steam engines for animals, machines for hand tools, and elevators for ladders. But whether these new technologies generally worsened the dangers of work is unclear. What is clear is that nowhere was the new work associated with the industrial revolution more dangerous than in America.[1]

But sure, let's make workplace safety a state right.

[1] https://eh.net/encyclopedia/history-of-workplace-safety-in-t...
See also here: https://news.ycombinator.com/item?id=31456007
Google owes Damore an apology.
If your dog is foaming at the mouth and acting erratically and aggressively then he does have rabies.

It's always best to see things as they are.
I use it to help parents when they need to create/save some document. I haven't use it in a year, don't remember the performance, or at least I didn't notice any problems with it for my use case. The problem I had was with screen scaling. I am using 4K screen with 200% scaling, and my mom is using full HD with 100% scaling. Her remote screen was tiny.

IIRC you can host your own sever instead of using default one, not sure if it would help with performance.
I'm really surprised people didn't know this.

I recall Rippetoe & Kilgore speculating in Practical Programming for Strength Training that 70-80% of all muscular gains occur in the first set.

I had OpenAI's deep research look into this and its sources concluded that "One-set routines can achieve roughly 60–70% of the muscle growth that higher-volume (3–5 set) routines produce".

You can do one set of various exercises and be out of the gym in minutes.

Of course, this sounds ridiculous, but appears to be true.
We've also had bird flu in NL some years ago, but I don't think it was anywhere near that dramatic. I do vaguely recall that it was mostly an issue for free range chickens, because they go outside and can get infected by wild birds shitting from above. I'd expect indoor chickens to be less vulnerable, though I do recall similar measures to prevent humans from spreading it. I think there have been rules that free range chickens need to get a roof over their heads to prevent spreading.

It's still weird that it got so dramatically out of hand in the US this time.
Everyone commenting doesn't live here. I'm well aware the crime happens in the city. What I think people don't quite appreciate is that the city is huge. The city hosts not only millions of residents but millions more visitors. The subway services literally billions of rides per year. Even if the raw numbers are high, it's not a war zone. If you stay aware and avoid dangerous situations and look both ways crossing the street and don't join a gang, the chances of being a victim are slim.
Pretty much all kids want to write games.
What a surprise. I said this from the start. Even their paper shows it scales proportionally with dataset and compute.
Nissan preparing to pull out of merger talks with Honda
His opinions on advertising can still be worth hearing.
A Shortsighted Bromance: Why Little Tech Shouldn't Get All the Love
To me it seems like it comes from experience solving sudokus. If you've ever tried it (or watch Cracking the Cryptic if you haven't), you don't store just the solution of each square, you keep track of what you've ensured cannot be in this square.

From that mental model, the choice of data structure would seem to follow directly, which would tie nicely with the subthesis of programming within your genre.
how many "r"'s in strrawberry

stumped it
> Get subscription of high value newspaper or magazine. Professionals work there, so you will get real facts, worthy opinions and less emotions.

I struggle with this. It's incredibly challenging to find reliable, unbiased news sources these days, especially with the perceived slant of many major outlets. It's discouraging when even subscriptions to reputable publications like the NYT and WSJ leave you feeling like you're not getting the full story. It's also concerning when editorial content undermines the perceived objectivity of the news reporting, specially with WSJ. So what are people reading?
Maybe that eating cholesterol puts cholesterol into your blood stream?
The point is, instead of retarded cookie banner requirements, EU could require that instead. Then google/ff would be forced to implement
No. It boils down to “it’s not fair that a worse candidate got hired just because (s)he wasn’t white or Asian”
I thought RustDesk shipped with Sciter binaries for the GUI, which is not open source.
This article seems to be dispelling the cholesterol "myth". The notion that high levels of cholesterol is bad for your health seems to be a myth for many people, but not all people, depending on your genetics.
> Whatever descendants remain are given legal stewardship.

After 2000 years, those mummies either have too many descendants to count, or none at all.
I didn't realize this was an advertisement post and clicked. And coming away from it I feel like this was a scummy way to do it. I have no interest in learning more or associating with this company in any way.
Ok, but it does make for poor dinner party conversation.
> ORMs are the devil in all languages and all implementations. Just write the damn SQL

Agreed, or just use a key/val JSON document database and it's get/set APIs for basic operations. All the main ones also provide indexing and SQL APIs if that's needed.
Are FDIC employees also laid off?
You can look up how a permissioned blockchain works, it's a whole thing. They're typically restricted access, but they could easily be restricted write, public read, and any member of the public who wants to facilitate propagation and keep an eye on things could run a node.

> then why would they not also be able to partition the network links to ensure updates don't propagate?

Perhaps they can. Maybe you have to sneak a thumb drive with valid signatures across the network boundary in order to facilitate convergence. But at least your adversaries can't masquerade as you.

> And do you even still have a government if it can't exercise any significant control over it's territory

Most governments we have today at one point fit that description. The utility of resilience in the face of adversaries that can tamper with your ability to coordinate is not diminished if you're losing the fight.
Cloud chambers are surprisingly simple things. In grade school, following instructions from an old issue of Scientific American, I made one from a couple Mason jars (with assistance from my dad for the glass cutting) for the school science fair.
Do you have a more substantiative point than this?

To answer your question, yes I do. To try to guess what you are talking about, I'd say it's "Bluster tricks fools".

I'm not saying everyone that disagrees with this administrations actions are fools, far from it. But they are governing by press release of administrative action. They could do everything they are doing quietly, but they are not. It is clear they are trying to create a "shock and awe" type reaction. This is by definition aimed at lower information populations who are impressed by performative actions.

I also know that some disagree with me, and respect that. At least 23% of the US public, and likely much more. I'm sure many of them are intelligent and decent people. However, we have a system of rules. When that system of rules is disregarded, bad things happen to societies. So I would prefer they make their policy changes through the existing system rather that break laws, as it is widely considered they are doing.

Please let me know if you had a different point in your brief message.
Most studies I've seen on this topic agree that the amount of pollution created is not linear, and this also makes intuitive sense. The heavier your vehicle, the wider and/or larger diameter your tires need to be to give it the required amount of grip. If those bigger tires wear out in the same time as your smaller vehicle tires, you've already created considerably more pollution.
The Power of Handwriting
> So your option as a security professional is to express to your risk management team we allow "hacking tools" or lose iCloud Relay customers

a professional would explain how the vendor is being lazy and making a mistake there because they don't understand your business.

depending on the flavor of security professional (hacker) they might also subtly suggest that this vendor is dumb and should be embarrassed they've made this mistake, thus creating the implication that if you still want to block these users you would also have to be an idiot

under so circumstance is what I ever allow anyone to get the mistaken impression that some vendor understands my job better than I do. As a "security professional" it's literally your job to identify hostile traffic, better than a vendor could.
> Placement of line breaks, not so much.

this is my biggest beef with linters. i break lines following typography rules and poetry, using the line break to help communicate. hate it when the linter takes away my thoughtfully chosen line break, because i broke it there to improve readability. i seem to be the only person in the world who cares about the line break of code. other style things idgaf but you can use typography and poetry rules to improve the readability of your code.
The whole point of salting is to avoid exactly that scenario, and, as I linked to, bcrypt requires salt.

So when you read "bcrypt(password)", that just means the salt is implicit, not that it isn't salted.
McDonald's doesn't serve chili
You can't actually hoard them, though. They aren't objects, they are knowledge.

A 0-day is present in every instance of the software it can exploit.
Data Hoarders Are Rushing to Save Vanishing US Health Records
https://archive.today/TrYet
We are in 2025, can we please start using dark mode as the default on websites?
What you say makes sense, but is there the possibility that because it’s compressed it can generalize more? In the spirit of bias/variance.
Vance will be the president then.
For some reason people downvote you, but batteries seem to have this constant flux of N=1 articles explaining why X new chemistry is about to dethrone lithium. When it's not aluminium, it's solid state. This article itself has several red flags:

> In contrast, a typical Li-ion battery retains only 80 percent of its charge capacity after 300 to 500 cycles, depending on conditions.

LiFePO4 lasts for about 3000 cycles before 80% degradation, not 300-500.

> The batteries were also tested at temperatures as high as 200 degrees Celsius

Thermal runaway on LFP is 120C, not 200 but still not a temperature you will easily hit.

And finally (as always):

> before the Al-ion battery is ready for commercial applications, its energy density will need to be improved

Which means it's not commercially viable.

LiFePO4 is cheap to manufacture, uses lithium, iron, phosphate, all of which are fairly plentiful and lasts for over 3000 cycles (before reaching 80% capacity).
I made the live shader editor myself. It uses CodeMirror to display the code, and a webgl canvas for the preview.

Took some work to support having lots of editors on the page. If you do the naïve thing and create a webgl canvas for every one and instantiate all CodeMirror editors at page load time, the whole page would freeze for several seconds. So I create the editors as they are about to be scrolled into view. I also create only one webgl canvas, and when a preview is paused I cache the preview to an img, and move the canvas to the newly active editor instance.
Some instructions are slightly outdated:
'We need sizes="32x32" for <link> to .ico file in order to fix the Chrome bug where it chooses an ICO file over an SVG.'
Explanation: this revers to an old 2021 bug which is already – for a long time – solved in Chrome.

Probably small typo, by editor of article:
'With just three PNG images in this minimum set, …'
Set contains an .ico, .svg and .png file -> SVG and .ico files are not PNG's.

For the rest very useful!
If these non-lithium battery chemistries had any chance, it would be in grid storage. As time goes on LFPs keep getting cheaper and better, and there will be little market left for alt-chemistries.
README indicates they are switching to Flutter soon

> Desktop versions use Flutter or Sciter (deprecated) for GUI
Says SemiAnalysis.
> Part of the problem is the incredible corruption at the Supreme Court. The courts increasingly can't be trusted to be a stopgap.

Just because a body disagrees with your desired interpretation of the law does not mean its corrupt. I disagree with the liberal justices on just about every split decision, but I don't think they're on the take. They simply have a different philosophy of the law.

I challenge you to find any specific court case taking up by the SCOTUS where you think the outcome was the result of corruption.

> Then you have the current administration making veiled threats against senators to ensure they vote as intended.

I'm more concerned about the other direction where the (at the time) Senate majority leader expressly threatened the SCOTUS to vote a particular way or they will "you have released the whirlwind, and you will pay the price": https://www.nbcnews.com/politics/supreme-court/rare-rebuke-c...
https://www.opm.gov/media/xmxfp34k/opm-memo-legality-of-defe...

Best source for information on this since the FAQ disagrees with the memo and the contents of the letter.

> Yes. The decision to grant administrative leave, and for how long, lies largely within the agency’s discretion.

That's the official OPM guidance on this, where they're saying that you may have to work and that it is up to the agency and not OPM.
TinyLlama would have worked too and is older than the Qwen family.
Seems to be resolved, if I'm reading it right: https://github.com/rustdesk/rustdesk/discussions/6444#discus...
I thought he only backed off the Canadian tariffs, and only because there were retaliatory tariffs plus some symbolic concession? The China ones and the de minimis change are still in place.

Bezos turning up at the inauguration and directing the WaPo to not endorse Harris are strong hints that Amazon is probably going to be fine, but I would say that nothing is certain when dealing with someone who's deliberately unpredictable and willing to threaten allies.
Hah. Thanks, that's not a UI ;) But I did kind of yak-shave as I did it to make the saver its own loadable class with adjustable inputs. so I'll probably add a few sliders eventually, once I launch my world-dominating screensaver company. Seriously though, I wanted to fine-tune the parameters to look as much like the original as possible, and there are about 6 different factors which go into that, any of which can be off by a few percent and completely change the effect. If there's any demand, I'd be happy to make it adjustable!
For windows there's still going around the good old Popcorn Time in its hundredth (or so) incarnation...
Grid storage can reuse post-consumer batteries.

Li-ion capacity fall off is a fixed percentage per year, so when your car hits 80% of original capacity in ten years, its battery pack can just be used for another ten years. It’ll provide > 64% capacity at the end of that (grid workloads are less stressful than driving workloads).

So, the alternative battery technology has to cost less than the cost difference between refurbishing and recycling old car batteries. That delta might be negative.
I was collecting examples of models trained on single GPU or with very low cost. A number of projects used Bert or GPT to since the implementations were very simple with with some components optimized. There’s also a lot of projects that have trained Bert in GPT two models which make for more scientific comparisons.

With no other information, those would be my guesses as to why one would use a GPT2 model.
Let's be real clear.

The crypto bros and VCs killed not one but two banks that started getting into trouble after being very accommodating by pulling out money. Now they want the rest of the financial system to keep doing business with them.
Sure but that sense of agency can also give you a false sense of security. It’s impossible to drive perfectly when you are for example tired, and it’s impossible to not be tired sometimes, if driving is your main form of transportation and you’re driving back from parties and events and your day job. You can also be defensive on the subway by avoiding cars with crazy people.
Can animals be moral? by Rowlands

https://www.amazon.com/Can-Animals-Moral-Mark-Rowlands/dp/01...

Also Analysis of the Self by Kohut

https://www.amazon.com/Analysis-Self-Psychoanalytic-Narcissi...

which is difficult going but helps draw a circle around the concept of "self-centeredness"
Context-switching is the main productivity killer for developers
Have you ever wondered what the biggest productivity killer for developers is? There are many, but one stands out—and it’s often underestimated.

Every time you send someone a “quick” Slack message, it costs that person 23 minutes of productive work, and that's just the beginning of the problem.

I’ve worked with development teams for over a decade, and we consistently underestimate the disruptive nature of interruptions. This article explores why context-switching is so costly and how to manage it effectively.
This presupposes that the purpose of government is to protect citizens.

The purpose of government is to take and maintain power and prevent any other organization from displacing them. It involves citizens only as a means to an end.

It would be a failure of government to place citizen safety over continuity of government.
Advance a frame, a second, or a millisecond?
How much of that is because the public has stopped reporting crimes because the city doesn’t do anything about them? https://www.nytimes.com/2025/01/01/nyregion/subway-violence-...

On December 22 the same day that woman was burned alive, a man was also stabbed to death. Another two stabbing New Year’s Day. There were 10 murders on the subway in 2024, up from 3 in 2019. People were pushed onto the tracks 25 times in 2024.

How many people should get pushed onto the tracks before it’s okay to complain?
I didn't know that, thanks. However, I didn't buy anything from the Amplifi line. I'm using the UCG-Ultra gateway, U7/U6+ access points and their standard switches.
69 Love Songs is brilliant as a concept album, but Charm of the Highway Strip is my personal favorite.
Can you elaborate on cross processing and what effect it has?
And that Republican majority can pass bills through the Congress, and the Republican president can sign them into law, and the elected Democrats get to have their say. But MAGA can't just come in and completely trash everything people did just because they disagree with the priorities that came before them. How would you run a country that way, if you have to start from scratch every 4 years? How could you operate a business that way, if things you do can just be made illegal by decree? How can you run a research agenda if your secured funding can just be pulled at will?
Perfect site design, concept and pricing, much luck, forget the haters.
> Besides, even if it did pass, Biden has shown he is unwilling to enforce laws on illegal immigration.

Again, the Biden administration deported a comparable number of people per year as Trump did first term. You keep repeating this, and sources have been provided to you, so it's bordering on dishonesty at this point.

> If it turns out to be unconstitutional, then it's illegal and yes, therefor "bad". That's up to the courts to decide. Either way, I absolutely support legally repealing birthright citizenship.

You didn't answer my question. The 14th Amendment really doesn't leave much wiggle room on this, and it's certainly not enough wiggle room to overrule it with an executive order.

Even if you think birthright citizenship is bad, wouldn't you agree that it's a terrible precedent to have a the president be able to arbitrarily be able to decide which Constitutional amendments need to be followed? Wouldn't you be against Biden writing an executive order repealing the second amendment?

I don't really see how birthright citizenship is bad, you haven't demonstrated this, all you've done is fear-monger about immigrants.

> I'd argue to a certain extant a nation has an obligation to protect its businesses in the context of international trade.

Sure, but the tariffs that Trump is threatening would be potentially helping some local businesses at the expense of others. It's not a clear cut net-win. If we impose tariffs on Canada, China, Mexico, or the EU, they are likely to give us retaliatory tariffs and that might affect businesses that depend on imports from those countries.

At least that's what nearly every economist says. Maybe they don't have common sense.

> Here are some examples of common sense - Don't let biological men (humans with XY chromosome and a penis) into women's restrooms and locker rooms - Don't let biological men compete in women's sports because it's unfair and dangerous

Well I'm glad you have it figured it out. I think people relying on "common sense", a term that doesn't mean anything for reasons already described, is really, really stupid. I also think that fear-mongering about trans people is pretty telling.

> Don't let violent thugs enter our country and if they do, kick them out.

No one wants violent criminals in here. Biden did deport violent immigrants. No one here wants violent people in the country. You can keep bringing this up as if I didn't already agree that we should deport violent criminals, indicating that you either a) didn't actually read my responses, b) ignored my response, or c) are just lying. I'm inclined to pick C at this point.
see also https://news.ycombinator.com/item?id=42823063
This is really nice but for some reason i have horizontal and vertical scrollbars, which clouds the experience especially in fullscreen. (Tested on brave/windows)

https://i.imgur.com/bsdHalB.png
That's for the entire domain or just the "root"?
And I prefer cold committee who measure risk and are committed to some public values. You choose silicone valley, VCs and no public healthcare. I prefer the Norwegian model.