skysight-inc/HackerNews huggingface dataset:
So, there are basically 2 things people use XSLT for. You can use it to extract data, or you can use it for templating. The former is generally trivial (it's generally just a set of hard-coded output nodes + some xpath), so I'll only discuss the latter.

For templating, there's a simple rule: always start with the identity transform:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

(In particular note that `xsl:copy` is the only bit here that's largely interchangeable with non-xsl nodes in the stylesheet.)

Then, generally, you'll add `xsl:template`s that `match` some hard-coded node names (or the root) and add some other structure instead of `xsl:copy` before (if not switching to simple extraction) calling xsl:apply-templates at a deeper depth.

In my experience, attributes are likely to only ever be copied all at once or not at all (e.g. if only made available for extraction), whereas nodes are likely subject to more complicated logic.

For the specific case of a header-footer template, you'd match the root and hard-code the structure instead of using xsl-copy, then use apply-templates where you want to insert the main body from the file that's calling the template.

Also, remember you can test with `xsltproc` to avoid browser overhead. `xmllint --xpath` is useful for selectors as well.
Ask HN: How can I improve my email signup conversion?
I have a job board that is free for applicants. It offers a free weekly email subscription to remote jobs. The problem is in June I received 12,000+ page views and only got 12 confirmed email subscribers.

That's awful conversion rate in my opinion. Please have a look at my site and let me know what I can do to improve subscriber conversion.

The site is: https://remotejobsly.com
Google stopped providing predictions about 9 years ago.

https://en.m.wikipedia.org/wiki/Google_Flu_Trends#:~:text=wi....
Seems like that's literally the title: The rise in reported maternal mortality rates in the US is largely due to a change in measurement
Yea, no. HN is the pinnacle of UI as far as I am concerned. It is as simple as is necessary but not lacking in features. And the filtering/ranking of articles is top-notch. The only thing I miss, content wise, is political posts, because I enjoyed the discussions around here. I dislike that (almost) all politics-centric articles are effectively assigned to oblivion immediately.
Well no, you’re making an assumption with how a court would rule in this situation.

There is nothing mandating that a court has to put careful consideration between what is and isn’t official business.
A classic scene on the subject: https://m.youtube.com/watch?v=szcviFDt9xM

Fictional, but based on a real event.
> Corporations would love if the only recourse was lawsuits that they could spend literal decades repeatedly appealing in court, allowing them to reap massive profits in the short term while delaying any concrete penalties, if any, into the indefinite future, and frequently having those final penalties, again if any, represent a small fraction of their profits from the behaviors in question.

This is also what we have today though. Companies get away with terrible actions until the public and eventually politicians catch on and have to act. Said action is often extremely slow and a slap on the wrist compared to the profits gained and damages caused by the companies.

How is DuPont still around after knowingly poisoning groundwater in parts of the eastern US? Regulators looked the other way, or were completely oblivious.

How is Fair Life still producing milk? Regulators clearly have seen the same reporting the public has, they either just don't care or are okay with the animal abuse as long as we get pasturized milk.

The list of companies getting away with egregious actions while supposedly under strict regulations is endless.

We can't say what a deregulated market would look like today, so much has changed since we started aggressively regulating industry. We also can't say, though, that what we have today clearly works better than the alternative with so many examples of what companies still get away with despite all of our regulatory agencies and their budgets.
My money is on the breaching charges that these high speed folks use. Particularly in conjunction with the thousands and thousands of reps that folks put in practicing breaching. It's enough force to rip a reinforced door clean off the frame. Grenades are a close second but I don't think they train into the thousands with actual field grenades.

Maybe an instructor sure, but we're talking about SF here.

I don't doubt that artillery will also do this kind of damage, so I'd be curious about what the brains of field artillery folks look like.
> If you're not understaffed

And it's worth noting that having some fat is good. I can get it when you're a startup and you're trying to pull yourself up by your bootstraps, but at some point of time you need some fat. Too much fat is bad, but no fat is also bad. Startups run lean because they have to but when big businesses run too learn, it's called anorexia.
>Nobody is paying to pay truckers for training when they can instead convince the trucker to train themselves, pay for their own truck, but be limited by contract to be an "independent contractor" that can only take on contracts for one company at a loss

The article is about Japan; I only briefly compared to America. I think what you're describing (truckers owning trucks) might be unique to America, but I'm not sure. Even there, a lot of trucking companies do not use independent truckers, but just hire them as employees. Walmart for instance absolutely does not use independent truckers; their trucks all have "Walmart" painted on the side.

Anyway, I've heard in the last 5 years or so in America that there's a bigger and bigger trucking shortage, so I'm guessing that scheme you refer to probably isn't working out so well any more, and companies are going to have to buy their own trucks and hire truckers as regular employees.
It is hard for me to see how this will in any way improve growth.

I know for myself that every day I do approximately 1/5th of the total amount of productive work I can do in a week while remaining happy and willing. If my work week were to be increased to 6 days, that amount would decrease to 1/6th, and the total amount of productive work that I can do in a week would very definitely not be going up, in fact I suspect it would be going down because of less unburdened time* for myself.

Here in Belgium, there's also hard upper limits to what you can earn depending on education, and job title. And since I am already making that limit, there is absolutely no chance that I will put in any more effort than the bare minimum to remain at this level.

*: I define unburdened here as time where I am not doing actual productive work, and I'm not doing busywork to fill the hours either. In other words, when I'm at home.
A bigger problem in my opinion is when ads become the primary focus of a site. When most sites I visit had ads that take up so much visual realestate that I cannot find the content I was actually after, then I will simply start using ad blockers. Sites which use ads appropriately are unfortunately caught in the crossfire. I suppose it would be handy to have ad-blockers not block by default, and rather users can add a domain to a 'black-list' (instead of a white-list which I won't remember to add sites to, as there is not reason to) if it uses scummy advertising practices, where this black-list could be tracked and users can, if they want, download the K-votes blacklist, which is a collection of domains which more than k users have blacklisted.
I honestly can’t tell if you’re talking about Hunter Biden’s laptop, which many leaders of the intelligence community claimed was fake Russian disinfo, only to be recently admitted into court evidence as being real and factual. Who exerted pressure on those officials to lie to the public before the last presidential election?
Or a whole new team gets made to create “new tool”, but no one is given time to switch to “new tool”
The single biggest problem I have is finding an article again at a later time. Even if one remembers the item or list number at the time of viewing (which I don't unless I take special note) that number will change almost immediately, a day or two later the article can be buried many pages down or have disappeared altogether.

Then there's the problem of remembering the story's title so one can search for it. Say, several days later I want to revisit a story that I remember the substance of but I have forgotten its title then sometimes it's almost impossible for me to find it again (stories often have short or cryptic titles that have little bearing with their content).

There's also a similar problem with comments, if I want to revisit a comment I read several days earlier, it's often almost impossible to find—unless I've noted the handle of the poster.

Another annoyance are stories behind firewalls, the poster will have access but many of us will not. It would make sense for these stories to be flagged with a big red dot or such so we can bypass them.
Except for the "Sorry, we're not able to serve your requests this quickly." like 13 times a day.
Any discussion on elections in America that occurs post Fox and post internet has been in an era of extreme partisanship and polarization.

This case came up because a sitting President supported an insurrection.

The law is about the application of principles.

Sure. The President is elected.

Sure. Prosecutors are not. We don’t trust unelected prosecutors.

Sure. The Judges are not elected…

Therefore We don’t trust judges.

——

Frankly with the powers provided, the dems should really just exercise them.

I’m pretty certain that will immediately shift the narrative.
Who said anything about other countries? Presumably he was referring to other states / counties which did/do ban liquor sale on Sundays
I’m blown away that Greece was anywhere near the top wealthiest. What exactly did they do? I’m guessing tourism and agricultural exports?
The thing I suspect will prevent this from being an issue for sports shooters is that I'm not sure the energy in typical sport shooting calibers is enough to induce micro-TBIs.

Sports shooters who shoot larger calibers, ie a 7.62 NATO or higher in terms of sound energy, are typically shooting relatively few rounds at a time. Those who shoot a lot of rounds typically shoot smaller calibers.

Now, I think you might have a point when it comes to competitive practical/dynamic shooters[1], who shoot open division with hot .40 super loads or similar. Especially those, like in my club, who train a lot in indoor ranges.

However these would make up a relatively small percentage of the overall recreational shooters out there I imagine.

[1]: https://en.wikipedia.org/wiki/Practical_shooting
OctoPrint has been doing that since 2012. It's a clever idea.

https://en.wikipedia.org/wiki/OctoPrint
so good, more hours to better serve their northern/western fellow european overlords
Nobody is hiring armies of workers just so those workers can “scrape out a living.” Companies cut jobs, they rarely create them for charity
From bench to bedside – small issues which compound to bigger failures
Nope.
Try materialistic hn app from playmarket
"It was not chronic traumatic encephalopathy, or C.T.E., which is found in football players and other athletes who have been repeatedly hit in the head. It was something new."

OK, so not that.

There are going to be a huge number of people with this problem from the Ukraine war. There haven't been years of artillery duels since WWII.
The "chair" in question was 3 coat hangers and 2 frisbees... I have no idea how it held a human up.

The "throw" was more of a shove and the thing went flying in my general direction.

The only thing that chair was going to hurt was my feelings.

It was far less scary than the office where I sat on an ammo shipment.
Not really, a society that sends women to war is more or less a cowardly society dressing it up as equality.

What sort of male sends the female to check on the noises that sound like an intruder in the wee hours of the night? Do they set turns and when it's her turn she's gotta check out the noises? Any gal married or shacked up with a guy like that should kick him out before night is over.

Can you imagine Paul asking Nancy to check out the basement noises in SF?

Also, those war hawks should see duty in the front lines. None of this sitting behind "green zones" directing grunts. Get out there, get in the line of fire. Imagine Washington, Nimitz, Yamamoto, Zhukov, etc., let's just phone it in.
As a native-born US sorta person, I agree about Outback. It's a weird environment, sold weirdly: The tables are too high. The bench seating is hard, and somehow also too high. Everything seems big, like some forms of Alice might observe, even if it is just regular-sized.

It can be an OK place to get a decent-ish steak served at an OK price, and onions are my favorite food so things like their Bloomin' Onion "appetizer" can be God-tier for me. Overall, I like Outback -- but only just barely. I give it 6/10, will probably return... eventually, some day, maybe; I can get a massive amount of onion served almost anywhere if I ask nicely.

But it doesn't seem very Australian to me, unless of course I'm approaching things as if I am living in a Crocodile Dundee film from several decades ago. (And these films are comedies, not documentaries!)

Foster's is worse. It's shit beer. As far as I know, it's always been shit beer. And there's definitely a place in the world for shit beers to exist, as long as they're cheap enough, but it's never met the snide, bold, and somewhat-reprehensible tagline of "Foster's. It's Australian for beer."

But Koala Kare? That name doesn't make me think of Australia at all. It makes me think of koala bears. And koala bears definitely seem to be cute and cuddly in photos...and their native environment is definitely highly regionalized. But they are also rapey animals that trend toward being full of chlamydia, and they feed their young with literal shit. (Straight up ass-to-mouth shit.)

And I've got a pretty positive image of every person from Australia whom I've ever interacted with, so I myself don't associate a product named after a dirty rapey diseased shit-eating bear with Australian nationality, culture, or provenance.

YMMV, of course. (And also: You're welcome!)
The obvious proof term for isprime p is exponential compared to the size of p. The AKS proof term is polynomial, but still very bad.
better quality of life leads to lower wish of dying it seems, who would have thought
Source: https://github.com/Tarsnap/spiped

Signed binaries & docs: https://www.tarsnap.com/spiped.html

Golang implementation (2014 alpha): https://pkg.go.dev/github.com/dchest/spipe
Companies have no pension to tie people to those jobs, people make more money by job hopping, companies don’t give large enough raises to keep people, companies lay off people at the slight change in fortune. Correspondingly it doesn’t make sense to spend the time training someone if they leave as soon as they are productive.
Me too, I really dislike meetings that could have been handled by asking me three or four questions in slack or in the PR and then waiting fifteen minutes or so for me to answer.
Don't really see why this is relevant. Blender was open sourced over 20 years ago
Trump's attorneys did not say "the special counsel that prosecuted him was not properly appointed by an act of Congress", Justice Thomas brought this up in oral arguments. Trump's attorneys admitted in oral arguments that they had not brought this up during the appeal, so as an argument it was not saved.

Further more, historically there is no basis for the argument. Special prosecutors, which are different from the "independent counsel" that came about after Nixon; the laws around "independent counsel" expired a while ago.

"Special counsel", and all of the other similarly named, have been around since Marbury. By happenstance, some have been X-members of Congress, Cabinet members, etc... but far from all.

There is a reason why none of the other Justices brought this up, it is absurdist.
Isn’t trump convicted ?

And you mean to say his entire defense team was so bad that they couldn’t protect him from a contrived and tormented case ?

Against a jury of peers?

And the defendant is Trump, someone who is famously associated with the quote “Lordy, I hope they are tapes.”

No one has to persecute trump. He just has to stop doing things which make everyone republican President before him cry in sorrow.

What was it you said ? You can only think this if you start from the position that everyone else is corrupt except Trump
Blender is absolutely goated
The Beginning Was the End (Oscar Kiss Maerth)
Nix NCA member personally reinstates johnringer as nixpkgs maintainer after ban
related: https://news.ycombinator.com/item?id=40761536
> This ruling seems to open the door to a president being immune from, say, commanding SEAL Team 6 to assassinate a political rival.

Immune from judicial prosecution.

Not immune from Congressional prosecution.

---

This isn't a unique concept.

For example, if SEAL Team 6 improperly kills someone on a mission, they aren't prosecuted in criminal court; they are court-martialed.

There is accountability, but due to the unique nature of the profession, it has a specialized venue.
You are probably right about your own body (you are the expert, after all).

However the legislation described in the article seems to be about partially lifting a restriction that bans companies and workers on voluntarily agreeing what their weekly working hours should be.

At one extreme, there's quite a few jobs that mostly just require a warm body to be present. I see no reason to override people's own judgement on how many hours they think it's good to work, just like I see no reason to override your judgement.

> Here in Belgium, there's also hard upper limits to what you can earn depending on education, and job title. And since I am already making that limit, there is absolutely no chance that I will put in any more effort than the bare minimum to remain at this level.

Is that a social convention, or anything enforced by law?

Also from the article:

> “It knows that the majority of Greeks, on an average monthly salary of €900, can only survive until the 20th of the month. This latest barbaric measure is not going to solve the fundamental problem of labour shortages and a lot of us feel it is very unfair to unemployed young Greeks who may never have a job.”

This sounds like the same sort of fallacy that gives us the common lament of 'the foreigners are stealing our jobs.'
No, I come here in part for the content, but more specifically because I really enjoy the content centric approach the site has. Information is very easy to parse. Without examples, I imagine when you say 'better user exp.' you mean the same kind of enshitification that reddit has gone down.

If you compare old.reddit.com to www.reddit.com you'll see what I mean. Reddit used to look and behave a lot like HN, and that is what made it a prime source of information. Currently, it surives off it's userbase but it is no longer a good primary source of information because unit time vs unit information is quite poor now.
Why didn’t you add “Chinese” space rocket?
No. it's perfect as what is it already.
I think many here could take the same model (users, posts, comments etc) and make something more rich in the browser. But you cant just trivially have the user base that HN has by doing so.

Since people are mentioning their gripes: Mine is titles are black but once clicked they become the same grey color as the line below each post title, which is also a link for the commments, the point count etc. So if you click on a title, read, then press back it becomes hard to distinquish or find a previously clicked link esp when the order of post changes.

In short, visited title links should be a different color
I plan to buy a GMC Diesel 2500 next. Eventually I’ll upgrade the Tesla, but only for one with significantly more range.
Take a look at Ukraine. They're running low on conscripts despite "modern warfare"
My seasonal neighbor now in his 80s worked at RAND, and also studied under Ed Lorenz. This reminds me that I need to go spend some time with him before fall arrives.
Another step towards the already widespread modern slavery.
What about somebody who wants to be part of a team for their culture, independently of the product, because they match really well with the culture (this happened to me and to somebody we hired). I'm not a user of the product but I'm considered a good representation of the company's culture (and I love where I work)
For me it is. The reason HN wins out over a curated set of subreddits for me is the fact that the UI is no bullshit. It is plain, simple, and does what is required to quickly and effectively communication information and not a thing more.
Wrong. Fitzgerald specifically shields the President from civil suits. The Court will not help you at all.

Your only recourse would be waiting until the President is out of office, then getting DoJ onboard to press criminal charges, with all the due process that entails. Fitzgerald explicitly provides no protection in the case of criminal litigation over and beyond that of an ordinary citizen for a former President.

Until today at least. God save us all.
Shooting as a popular passtime has been around long enough that we know what the risks are: commonly tinnitus, rarely injuries related to what the firearm actually does, more rarely lead poisoning.

On the other hand, artillery and rockets are extremely loud. If you want to look it up and start comparing things, keep in mind that every 3 decibels represents a doubling in pressure, so a howitzer having twenty or thirty decibels on a handgun is actually saying a lot.
Lol. "Right to work" operated on the same spurious rhetoric and has been catastrophic for workers rights.
So all it takes to open this model of gate is someone to know to pry off that plastic motor cover thats only held on with 2 little screws, and short two pins of the connector right there on top which looks to be reachable through the bars of the gate from the other side.

I feel I'd want the motor controls in a more secured box if I was the type of person who needed one of these gates.
Which raises the question of why they thought they'd approve this bill in committee? It's still very odd, weird, ungentlemanly and somewhat uncivilized.
> Half the population wouldn't convict a certain candidate no matter what they did.

And the other half would convict him no matter what.
Hi are you open to hiring for new grad or fall 2024 co-op roles for SWE?
"There is no later." is my new mantra.
Nice distraction.

I don’t know how justices should decide cases (not a constitutional law scholar, what are your credentials?) but I know that the majority in this one is wrong and should be impeached. The federalists are a cancer on the legal profession. Failure to self police has allowed them to fester when healthy communities would properly ostracize and treat such demented people but here we are.

Perhaps we can all band together to gift these clowns rvs and luxury vacations to get a public healthcare option for everyone?