skysight-inc/HackerNews huggingface dataset:
The common claim that there are ~7.5E18 (~2.5 × 2⁶⁴) grains of sand seems to originate from this back-of-the-envelope calculation:

https://web.archive.org/web/19990117001023/http://www2.hawai...

It takes only beach sand into account, and of course there's a lot of guessing involved. It could be easily off by many orders of magnitude.
Is it the hiring manager's objective to hire easily controllable apes that can type, or human beings that can grasp the product and business goals, shape the culture, translate technical jargon into easily understandable concepts for the uninitiated and make the employer a shit load of money by architecting and programming their vision?
On the contrary, Tailwind necessitates learning CSS. I don't see how someone can write "flex flex-col gap-2 mx-2 px-4 py-2 text-gray-600" without understanding flex, margins, paddings, and seeing how children inherit certain properties. Tailwind doesn't replace CSS; it just moves properties out of a stylesheet and into a component template. That said, if someone is trying to learn Tailwind before learning CSS they're going to have a hard time (I doubt they will succeed at all).
I know several 50s something programmers who have plenty of work. This is in big-corp IT not the younger SV scene.

Only an asshole cares how old somebody is. Reminder also, ageism isn't just a bummer, it's illegal.

Most people aren't going to take legal action, but imo if you're discriminated against you have somewhat of an obligation to do so.
> exchange it for oil - or they would do so

ostensibly this is what's going on. when citizens and corps receive stimulus or other breaks, they buy petroleum products that floated over on a petroleum powered barge, were driven to a hub by a petroleum powered intermodal freight transport, trucked via petroleum products to the retailer where the consumer drives a petroleum based and often still petroleum powered vehicle to go and make their purchases of petroleum made plastic products.

Petroleum is in everything. If you print american dollars, it will eventually end up purchasing petroleum products many times over in the lifetime of those dollars, whether they be paper or digital.
The old industry joke: "if your succeed... you will end up in marketing".

Senior staff tend to get better at spotting the standard industry cons, but I find it amazing people often think they are somehow going to outsmart company contract/IP lawyers. Legal encumbrances are often a necessary evil, but some of the agreements fresh grads eagerly sign read like a Faustian bargain.

One finds many people tend to disbelieve anyone that contradicts their personal biases, and some get indignant when told how the churn-rate for large firms will affect them personally. It is like wishful thinking bypasses years of statistics training, and basic numeracy. Many industries simply rely or a steady stream of gullible STEM kids to keep their Youth Employment Tax credits, externalize training costs, and provide stock bumps from a symbolic layoff for year-end investor reports.

I wish the Tech industry treated people better, but "it is what it is". =)
63 year-old career programmer here. I can attest that this list is pretty much a straight line to the place where I am at, with everything just dialed up a 20 year notch (hehe!)

I do want to add one more thing to the list:

* Find a well-managed team of really nice people that know more than you do.

Every part of this requirement is important, especially for generalists like me!

If you find this, life becomes lemonade.
Challenge yourself, learn new stuff, not how to make your 500th ERP in rust instead of Java, but program 3D applications, Virtual Instruments, or move to hardware, embedded programming, IOT,...

As demonstrated by Adobe's Figma acquisition, there is plenty of opportunities in the authoring/graphic tools. So maybe you'll make the next Figma.
Two easy ways to block trackers and ads... without a firewall.

Adding blockers to the hosts table still works with Chrome... hope they don't muck with that...

https://github.com/StevenBlack/hosts

But if they do... there are always DNS solutions you can add to your Router.

https://nextdns.io/

I use Firefox, but even things like Windows spams ads at you if you let it. So many things have Google trackers built in too...
I am in a similar position oIf the author and I agree with most points

> I have no idea about how effective pair programming is. My desire to discover it is zero.

I used to think like that, but then, recently, I started doing pair programming with a colleague from time to time using vscode live sharing feature, and I find it amazing. Not really for the pure implementation work, but rather for the more architecture or design of things like API or data structures. I found that we are really productive spending about one hour or less together in the editor and brainstorming live the ideas.
Representing cars as just two lights is so simple yet so effective. I've toyed with a slightly similar idea as well: https://ezhik.me/beyond184/

There's also a screensaver out there which generates an entire little city, with neon branding on buildings and all.
I am impressed; some of the words are not that common, such as atomtrusler, krigsmobilisering, strømselskaper and dyrevernsorganisasjon, yet it got them correctly
If he’s a foreigner in Great Britain, sure. Otherwise, if he’s in the States, it probably makes a lot more sense to focus on American English…
But that’s basically what is being praised as “investment” here.

The question is whether government spending is good, or whether we should let private capital fund it? (If private capital will fund it, but will then want to profit off of it.) The argument was that it would make sense to spend government money in that case.
I don't speak for my company, but in my opinion they still get more value from me, net, as a non-manager than they would as a manager. I also think some of the most valuable work I do is not in the code I write or the systems I build myself, but rather in the guidance I can give junior developers on the things they build, and the way they approach their careers. If I get can someone in her 20's or 30's to adopt a useful technique or perspective it took me much longer to acquire, everyone wins. As Andy Jassy says, "there is no compression algorithm for experience". But there is opportunity to learn from someone else's uncompressed experience so that yours going forward is that much better.
We do it. It’s not yet economically worth it but I’ve seen installs. I can’t find it but I saw one that was designed to let a massive shower run continuously with very little heat loss - the water coming out the end of the drain was as cold as the inlet water from the main.

https://en.m.wikipedia.org/wiki/Water_heat_recycling
Firefox reader mode helped me get around that.
https://getmagistrate.com runs on Django + Render + Tailwind + Alpine.js + htmx.

Great stack for the solo dev imo.
Meh .. I wrote a full LR(1) parser generator for fun about 40 years ago (c.1982), back when it was considered impossibly impractical (the "dragon book" said so!).

Generating an LR(1) parser itself is simple enough using Knuth's algorithm - you're just building a large state machine and having to maintain sets of look-head tokens for each partially-parsed production rule in the states, which is why the resulting state machine becomes impractically large (at least for computers at that time).

What made this possible back at that time was a paper by Professor Pager from the university of Hawaii that described how you could merge states, under certain compatibility conditions, during the cannonical Knuth parser (state machine) generation algorithm, which kept the size of the state machine under control.

The parsers built by parser generators like mine, YACC, OP's Langcc, etc, are referred to as "table driven parsers" (to differentiate them from recursive descent parsers), but back in 1982 representing the state machine as an actual table wasn't very practical (too big) so rather than having a large sparse 2-D array indexed by state and token you'd normally represent each state as a list of actions instead.

However, I found I could represent the tables an sparse 2-D array, but then compress the array to make it on manageable size. This was much preferable to using lists since access was much faster - just 3 array accesses to translate raw state, token indeces into compressed array indeces, then the actual lookup.

To compress the sparse array I converted it into a graph coloring problem. I mapped the sparse array to a graph where each row of the array would map to a node in the graph, and any two nodes would be connected only if the corresponding sparse rows had a conflicting entry in any column. I then used a simple graph coloring heuristic to color the graph (goal - color graph with minimum number of colors, given constraint that connected nodes can't have the same color), then converted back to a compressed array by merging rows whose corresponding graph node's had the same color (hence no conflicts). I then repeated same procedure for the columns.

The resulting parsers, when coupled with an optimized hand written tokenizer, was stunningly fast, even on the dog slow computers of the time, but sadly I never did anything with it - was just a fun side project done for my own education/amusement.

The good old days. Get off my lawn.
How to Secure an App Out of the Box with API Gateway and Keycloak
> Note that no one talks about militias

Wait a second, who doesn’t? In fact on this board they have been discussed more than a few time, including by myself.

> just the right for every angry terrified fan of tucker carlsons propaganda (legally not News remember) to go to their local gun shop and buy dozens of semi automatic long guns with 10+ round clips and have a few pallets of ammo delivered to their house with merely a signature and maybe a waiting period.

This is a biased rant again. None of what you said sounds dangerous to me. The problem is now with what law abiding citizens buy and own, they will never use the “dozens of long guns” kill innocent people. Why are you conflating criminals and law abiding citizens?

Can you also tell me, using your example, why any waiting period past the first one does anything? If someone already owns a gun, why are they being subjected to yet another waiting period? The entire point of a waiting period was to cool off and not do something stupid with your new purchase. But if the person already has a gun on hand then what is the point of it?
And you probably buy good meat, or even mince it yourself and make your own right?

The vegetarian equivalent isn't anything you can buy (in a supermarket anyway), they're all crap, it's making your own with good (non-meat) ingredients.
Some of them are basically multiple bidirectional wells (when installed vertically in a colder climate) so drilling one more for a wellhead is probably possible.
It is a talking point because it is disgusting behavior from our government. The idea that a part of our strategic oil reserves doesn't match what we want to refine locally or in our allied countries is laughable.
It's not insane. I currently live in a house where some older rooms have 0.9 meter adobe brick walls. These were built in mid-XX century, when this was normal. Now we have better materials and don't need that much width.
The internet is already useful in the way you are imagining it to be. The educational and practical resources are there, and are not that hard to find assuming you have gained minimal technological literacy and a certain understanding of internet culture and critical thinking relating to the content available.

There is a ocean of addictive distractions to wade through, but at the same time we know the following things:

- We have to be constantly mindful of the Gell-Mann amnesia effect

- News sources and journalism have always had significant quality problems when they venture beyond just reporting basic news, even in the case of business-oriented publications that as Chomsky has pointed out have a vested interest in delivering quality reporting

- Understand topics requires delving into the academic literature in many cases. In this scenario, the internet becomes the line towards that literature or those long-form articles but most of the users' time has to be spent reading and thinking instead of just browsing

- Identifying skinner boxes and addiction traps is easy. You usually know when you are in one. We have to just be honest about what our goals in life are and how much progress we are making towards them

What this does not solve is the problem of focusing on the wrong things in life or embarking in a career or interests that are ultimately deleterious to your life. But the internet at least makes it far easier to pivot and refocus as long as you let it do so and use it towards a conscious goal. This mindfulness is easier said than done but it's far from an impossibility.
Happy to amuse!
If only there was some sort of math “journalist” can use to make the article less sensational that takes into account of other evidence like how many hours it drove and how many cars there are on the streets driven by humans. We can even call them priors!
Mostly I think the same way. Except sometimes when I go with my friends to McDonalds or Burger King, then it's nice to not be excluded, and have this meaty textures. As I am a vegetarian since 14, now with 37 I really was shocked by the first Beyond Meat burger, I thought they mixed up my order.
Ask HN: Should source files always end in a new line?
What is the best thinking on this matter?
red meat is bad for the environment but there is no conclusive evidence that is bad for you.

So while we wait for this final evidence that will prove that read meat is satan, I think it means that its good for you overall because it tastes delicious and eating delicious things is good for mental health
4 billion dollars is less of a fine and more of a participation fee, a cost of doing business.
Eh, I think the fact that they are not healthier (by fat or calorie content, I forget which) is a major deterrent.

Admittedly, this is a very informal survey, but of the people I know of who have tried one, all of them claimed that not eating meat was not a big enough motivation to change. They'd rather they also be healthier than they actually are.

Cheaper might actually harm adoption. when you compare eating ground meat to an engineered product, making the engineered product cheaper just makes it seem more like processed junk food.
I suspect that the core audience for plant-based burgers generally tries to avoid fast food anyway.
I don't think 'healthy' meant no meat there, it was just about (lack of) fast food (whether it be meat or not, but mostly is).
one main advantage I see over Tauri is that Wails generate a typescript definition for the functions exposed to the frontend from the go side
But surely that only refers to the first bundle of shots while trying to guess and check where the gun is aiming? If your ability to tell where the last shot landed was so low on the previous shot, your ability to precisely calibrate and hit a small target on the next shot must be zero.
Most furnaces are incredibly amazingly simple and the large PCB is just for reliability and to support the transformers.

Many even now are (blower on/off) and (flame on/off). Only the high end ones have variable blowers and flame heights.

I know this because before ours was replaced I had to jumper past a bunch of the board to keep it running.
I can bet in a couple years this comment will be really funny.
What about "strategic" means not taking a reasonable route to the goal (keeping the price down?)

Is there some sort of "branding" for strategic reserve I haven't heard of? Wikipedia seems vague enough[1] to not be contrary to this strategy.

[1] https://en.wikipedia.org/wiki/Strategic_reserve
> Lot of really toxic things out there in the world, and just because it smells nice doesn't mean it's not going to shut down your synapses later!

Or the other direction of firing those synapses into high gear. Know your dosage!
> Early internet had little to none of that world order. Those corporations are slow to act and tend to be last to the party.

Those corporations dominated the Internet. It was NYT et al who was doing the publishing and the users doing the reading. Large, incumbent corporations dominated online sales.

That they were slow to react to the changes and therefore the user-driven Internet eventually took over from them for that reason do not change the fact that the early Internet was literally a one-way street.
Agreed. We know issues at the design stage can be avoided by improving systems, making that the personal problem of someone with a PE is a bandaid solution.

Improve regulation, fund regulators, incentivize companies to fund quality processes.
>If your analysis of obesity doesn't factor in hormons then it's not going to get you any working solutions.

Nobody is debating that there are systematic effects. I mentioned ghrelin before, I'm obviously not ignoring the effect of hormones. But that effect is to rebalance CICO. In some ways it's behavioral, like when ghrelin impacts you satiety. In other ways, it's a thermodynamic effect like how eating protein takes more energy to metabolize than the same number of calories of simple carbohydrates. But it all still boils down to the balance of calories in to calories out.

I still maintain that's what keto is doing for you. It's giving you an easier set of heuristics to balance CICO. But at the end of the day, it's still CICO and the same principle applies to a variety of dietary choices. So keto isn't some holy grail body hack; it's just a simplified model for reducing the complexity of human metabolism to rules that ultimately reduce calories.

>Back then they said it can't work because fat has the highest energy density and will make your heart explode.

Yes, fat has the highest energy density but it's not the density that matters unless you factor in mass of fat consumed. You can still have less calories while eating fat.

If you can show that someone can have a long-term weight loss eating more calories than they burn (outside of hormone therapy) with something like a keto diet, that would be a reasonable counterpoint.

It seems to me what you're saying is "Yes, CICO is correct but hard to implement. Keto is a way to implement it." I can partially agree, but it doesn't make an understanding of CICO unhelpful. Keto can help rebalance CICO. However, it can also be used to increase caloric intake by drinking cups of olive oil. It's still keto, but it won't lead to weight loss because it's undermined the more fundamental principle. That makes the context of CICO important.

Put differently, can you lose weight by running against CICO principles and following keto? I'd say no. Can you lose weight running against keto principles and following CICO? I'd say yes. They aren't mutually exclusive, but that makes CICO a more fundamentally important principle.

It feels like we are discussing two different aspects. I'm talking about the overall strategy of rebalancing CICO. You're talking about the tactical methods to do so. The latter doesn't negate the former.
I can see why you'd say you don't want to donate to projects that have roadmaps you don't care about.

I've started donating to the projects I use without regard for the future roadmap. If I'm using it, they clearly have demonstrated their ability to make something useful. And one way to look at it is I'm funding their past roadmap.

Currently I'm sponsoring: LunarVim, WezTerm, Oh My Tmux, and OctoPrint.
You don't have to use bouillon, though. There are lots of ways to increase umami: Soy sauce, tomato paste, and ground mushroom powder all work out well, and the last two are low-to-no salt.
> This is untrue. Half the country has constitutional carry established. I carry every day and do not have a permit. I get myself to the range frequently enough to be proficient. I do not need the government to "allow" me to practice my rights.

There is a difference in practicing one's rights and endangering others. We require the same of our police officers. While I'm a fan of constitutional carry, I have no problem taking 8 hours of classroom courses and qualifying with my carry pistols.
They announced it.

https://www.energy.gov/articles/doe-announces-long-term-buyb...

The only aspect of it that people actually care about is how much gas costs at the pump, the rest of it is just media froth, so I can see why the government isn't working very hard to repeatedly communicate that they are participating in the market in an attempt to smooth out supply and demand.

That they are selling and buying into the global market is a lot better than trying to fix prices or mandate production or rationing.
The structure doesn’t matter. There’s a 20 part test of employee vs contractor.

If you are treating the contractor as an employee, they are a de facto employee and you should be withholding income tax, paying payroll tax etc..
Exactly. In the scenario of closing all open documents and then creating a new one, it prevents the awkwardness of having to keep that last document open to keep the menubar available so you can select File > New and then close the last document. It also means you don’t have to invoke your app launcher again after closing all documents since the app is still open.

Conventions being different than what one is used to (in this case, Win9X) isn’t necessarily bad. Additionally, this particular convention has been on macOS for most of its existence, which means there’s longtime Mac users who find the Win9X way just as awkward.
51 grey beard here. Let me complain about the younguns. So much of what's out there today is, or is based on "solutions" created to solve problems that don't really exist. Rather than try to understand something so many engineers created "frameworks" to implement what was already there. Like 90% of current web stacks are just that. But new engineers are trained on that stuff and think it's the only way. That frustrates the hell out of me.
It's strategic in the sense that it maintains stability, reliability and dependability of a core necessity for the contemporary economy and society to function.

If exporting crude oil that US refiners can't use anyway has the downstream impact of Americans getting the products they need (perhaps due to manufacturing overseas and ocean transport to bring those products here) then it seems like it's reasonably in the public's interest to do so.
Reminds me of a surprising armchair heat macguyvering idea I've had: if for some reason you are stuck with resistive heating, you could use an old fridge as your resistive converter, with the cold end inside (cold end outside would be an actual heat pump, but probably not a good one and very limited in placement, likely losing more to the insulation downgrade from the placement): open the door just enough to get the inside walls below condensation of your current humidity level, collect the condensed water in a way that it doesn't just evaporate again but can be carried to the sink.

Why? Slightly less air replacement required to fend off mold, slightly more heat created, because the condensation is the inverse of evaporative cooling. Haven't done the math but I think it's safe to assume that the benefits would be tiny, but if, for some reason, you were limited to resistive heating, doing it this way would be slight
ly less bad.
I have this idea in mind, how do think about 1 AST <-> 3 different UIs? Content editor, Developer, Designer. Each expose different things but shared AST. Because I think 1 UI with mixed bag contracts is not going to do it.
Yes please, even if there's no need for a final newline just do it.
https://archive.ph/4TNRr
Veggie pattys are great and standard faire in India.

I agree, I’d just like a good veggie burger sometime. Doesn’t need ultra processing.
How would a hydrogen boiler work? Hydrogen trucks deliverying? Is the UK piped for hydrogen? Electrolizing water on site?