skysight-inc/HackerNews huggingface dataset:
I actually like puzzles where I see that it involves analytical thinking, or creativity. Open-ended stuff where I am allowed to let my mind take over and not worry about a time limit or some artificial constraints.

I also find it unbearable to "solve" something I see the solution to, or can describe how to solve it. In fact, if I see the solution, I find myself unable to go through the steps to actually do it, especially if there is a time constraint involved.

The trick you have described was my way to do the problems in my spare time back when I hadn't seen them before, but the whole problem is that leetcode problems are designed for an incredibly narrow range of solutions.

Analytical solutions that have poor worst case run times, but incredibly good average case run times are not allowed and a lot of mathematical approaches involving matrices and exploiting vectorization aren't allowed either.

Leetcode-style problems force you to put your mind in a very narrow box and I simply can't do that. I've always had a very great need of orthogonalization in how I think and operate; i.e. if something doesn't stimulate me enough, I need another concurrent activity that is completely different to keep me motivated.
An STB-style header with the implementation disabled (which is the default) looks exactly the same to the compiler as a regular C header which only contains public API declarations (e.g. just struct declarations and function prototypes, and most importantly, no inline code).

All code that would otherwise live in .c files is between an #ifdef/#endif block which is only activated in a single compilation unit in the whole project.

Not sure how this approach would lead to redundant "function definitions" which would need to be deduped by the linker. The only overhead is in the preprocessor for skipping the implementation block, but that happens pretty much at IO speed - it's not comparable with the parsing overhead in typical C++ headers with template and inline code.
Amazon signing bonuses are there so they can compete on offers while retaining the internal culture metric of max salary.
One of the weirdest aspects of Crew Dragon is the total lack of precision controls for manual docking. There's a reason that most aircraft, even the most computerized and automated ones like the F-35 and Airbus A350 still rely on a joystick for fine control. A touchscreen interface like this seems like a really clunky way to implement manual control, and offers less flexibility for alternate and abort flight modes where automated control may not be possible.

The Soyuz is fully automated from liftoff to touchdown and still has a cockpit with a plethora of manual controls and two joysticks for RCS control.

I guess the idea was to make it look all sleek and sci-fi on the interior... but at the expense of precision and versatility. It just seems to demonstrate a lack of consideration for tactility and the importance of it in a mission-critical environment like space.
It depends on the state. Using your phone while stopped is not legal in some states.
I don't know what you are talking about. Many people are working on inherent problems, such as UX issues, blockchain trilemma, regulatory integration and so on. That does not mean that there are no external factors too. Why can't we have a discussion about crypto without labeling people as some kind of dishonest idiots?

But back to the point, do you think the external factors that I mentioned do not count?

I mean darknet markets prefer monero over paypal, since they are ignoring regulation anyway and need an anonymous payment method..
For me, there's 2 entirely different kinds of bread:

* homemade bread: good flavor and texture

* supermarket "bread" for sandwiches: consistent size, soft texture for a sandwich where the fillings don't fall out, especially for eating away from home

Supermarket "bread" is more of an edible wrapper, but it has its purpose.
> it's overtly obvious how much work a child is,

It really isn't. My sister lived with me on and off during her kid's first years and I saw a lot of it (also experienced the joys of being the cool uncle). But I still underestimated the amount of work you have to put in. Also: taking care of a 9-month old is possibly 81 times the work of taking care of a newborn. But evolution is funny like this: the payoff scales very close to the energy expenditure.

It's really hard to explain the benefits one gets from having kids because, well, with your mentality one doesn't get any benefits. I was almost militantly "child-free" until something I can't quite explain happened to me, and put the world in an entirely different perspective. This is when we decided to try for a baby. We were different people already when the baby came.

The differences in thinking between parents and the childless might well be larger than political, racial, ideological, religious etc. differences.
National Robotics Engineering Center (NREC) | Software, Computer Vision, ML, Simulation, IT | Pittsburgh, PA, USA | Full Time | ONSITE | H1-B VISA https://www.nrec.ri.cmu.edu/careers/index.html
The National Robotics Engineering Center (NREC), a robotics research and development powerhouse, is looking for experienced developers, especially in embedded systems, robotics, perception, deep learning, data science, and AI. For more than 25 years NREC has brought together a critical mass of software and hardware engineers in order to take technology from the laboratory to the real world. NREC maintains a diverse portfolio of projects, from Augmented Reality driver assistance to full off-road autonomy and from advanced teleoperation to full autonomous manipulation. NREC is part of the Robotics Institute at Carnegie Mellon University, focused on commercialization of robotic technologies, and employs over 160 people in their off-campus facility.

Featured Openings:
Software Engineer for Robot Testing - https://www.nrec.ri.cmu.edu/careers/software-engineer-robot-...
Software Engineer (Robotic Infrastructure) - https://www.nrec.ri.cmu.edu/careers/software-engineer-infras...
Senior UI Software Engineer - https://www.nrec.ri.cmu.edu/careers/senior-ui-engineer.html
Data Engineer - https://www.nrec.ri.cmu.edu/careers/data-engineer.html
Software Python / C++ Engineer - https://www.nrec.ri.cmu.edu/careers/software-engineer.html
Robotics Simulation Engineer - https://www.nrec.ri.cmu.edu/careers/robotics-simulation-engi...
HPC Systems Administrator - https://www.nrec.ri.cmu.edu/careers/hpc-systems-administrato...
Technical Recruiter - https://www.nrec.ri.cmu.edu/careers/technical-recruiter.html

If you have questions about NREC or are interested in any position in robotics, contact Christine DeCarolis ( cdecarolis@nrec.ri.cmu.edu ). In your communication, please mention Hacker News.
Modern wheeled luggage can be a godsend with heavy checked luggage. But I've never owned a carryon with wheels. They obviously make sense if someone has trouble carrying their carryon around. And I can see them for people who are dressed up. But I do think a lot of people default to them who would be happier with something else.
I don't agree that it's decentralized, it tries to be but it's really distributed with a few root servers with a few people that have keys to them.

Eventually there will be a decentralized name system for probably a decentralized P2P radio system, and I'm trying to build that: http://radiomesh.org

But it's proving more tricky than I could have ever dreamed, right now I have scrapped 433MHz LoRa on Rasperry Zero and I'm moving to 169MHz plain radio on Raspberry Pico.

As for running your own it's very easy with these simplified lines of Java and dns4j (excluding port 53 UDP stuff):

Message query = new Message(data);
Header header = query.getHeader();
Record question = query.getQuestion();
Message response = new Message(query.getHeader().getID());
response.getHeader().setFlag(Flags.QR);
response.addRecord(question, Section.QUESTION);
Name name = question.getName();
int type = question.getType();
int dclass = question.getDClass();
String host = name.toString(true).toLowerCase();
...
response.addRecord(new ARecord(name, dclass, 300, "someIP"), Section.ANSWER);
...
response.getHeader().setFlag(Flags.AA);
return response.toWire(512);

Everyone should run their own DNS on the same process as their HTTP and SMTP servers... because without DNS nothing exists.

There are few things more frustrating than having your DNS provider be down for hours without recourse!
> The code was awful and it would need to be a compiler generated thing for sure.

C++ templates technically work, Eigen [1] is made entirely of them and the performance is pretty good. However, writing and debugging code in that style is hard, and the code is unreadable.

I tried T4 [2] to generate AVX intrinsics-heavy C++ code. At least the programming language is sane as opposed to C++ template metaprogramming. However, the code generation adds friction. Also, IDE integration is less than ideal, apparently Microsoft only cared about consuming T4 from C# projects.

I basically gave up, and usually writing normal C-like code with SIMD intrinsics, with just a few preprocessor macros, and no template metaprogramming. Unrolling things manually when necessary. At least the code is readable this way, and not too hard to debug. The compilers have these non-standard keywords/attributes to forcefully inline functions, they allow to reuse code instead of copy-pasting.

[1] https://eigen.tuxfamily.org/index.php?title=Main_Page

[2] https://en.wikipedia.org/wiki/Text_Template_Transformation_T...
…that’s why I said to have your LAN on a different domain or subdomain, so it can’t be a valid cert for your prod traffic.
Updates (“We got hit by a ransomware attack.”)
Free market is the ability to choose from either camp, with majority picking the former.
A browsing tip: In Firefox, you can right-click on low-contrast text, select 'Inspect (Q)', and a thing will pop up showing all of the attributes of the text. You can uncheck the 'color' styles to restore a good text color, the filter at the top of the list helps find the 'color' entries. For some reason everyone loves grey-on-grey these days, so I find I'm doing this a lot.

I've been thinking of writing a Firefox extension to auto-detect the page background color and set the text color to the polar opposite of that. Haven't done it yet, but I'm getting close.
FWIW, if you want a laptop that is specifically designed to work with Linux, Star Labs does that.

https://us.starlabs.systems/
That is a very personal opinion, I have very low risk apetite when it comes to investing. And the bubble i mention is me translating that to the job market.

If you look at the job market as a commodity where companies are on the buy side and workers are on the sell side you could say that the price of the commodity spiked suddenly. Whenever that happens I'm usually wary of the corrections that surely follow.

That could mean mass layoffs in the future when companies realize the commodity isn't worth that much. It could mean business closings due to lack of purchase power to compete. It could mean inflation to adjust the purchase power.

Again it's all speculation. And it's derived from risk tolerance. If you like risky investments it makes sense to try to capitalize and sell your labor for the most you can. I can't blame you.
I wonder (aloud) how much of one bag ethos is linked to being a man. Culturally (my experience is US/EU/Latam) women are expected to change clothes often. And in some countries that also means changing belts and shoes. If traveling for business, even worse: few professional clothes designed for women are compressible/washable/fast drying.
I suspect nobody would argue that lack of a control group is better, but this should still be a good lead for something to look at more deeply. It's not like it gives you no information.
Is this valuable enough to resist every real advancement in network security since the late 00's? Because for each one of them it's certain that people will pop-up making a lot of noise about hidden server names.

It's mostly because of them that DNS is still not reliable. Well, at least this article isn't against certificate transparency, just about how to avoid it.
It's funny how that works. Before there was The Web, I was porting a POS system to Windows 95 from Windows 3.11. This was a big deal, going from 16 to 32 bits!

OK, not really a gigantic deal. More addressable memory was great. But there was a monkey wrench that we didn't catch until the evening we were to ship the new version (as in put it on an installers hard drive for installing on site). The POS software had to run a receipt printer, send text to a tower display, and pop a cash drawer for change. Each of these used to work by sending interrupts directly to the ports.

Interrupt... Ka-ching, cash drawer popped.

Interrupt + ASCII... {flash} and total displayed on LED

Interrupt + ASCII... receipt prints out

I dug through Win32 manuals to figure out the new system-wrapped way to do this. Win32 wrapped the port interrupts in an API, no more direct sends to the ports without a handshake to the OS. But I figured out the drawer and tower... no problems.

But receipt printing!

Interrupt + line of text + line feed... new line, text, new line, new line

What?!? Windows was opening the port, causing a line feed, sending the text with my line feed, then sending another line feed and closing the port. A fifteen item receipt that once took three inches of receipt paper, now took two feet. It was 6pm the night before install...

I wrestled with it into the wee hours, and managed to get Windows to leave the in between alone so that receipts printed properly. Except for the first time. The first time the software printed during an executable session, you got the clown-receipt. It was 2am... I couldn't figure out how to fix this last item.

So I coded in a welcome message. When the user logged in to the POS system for the first time, it would print out "Good morning {user}" or "Good afternoon {user}." This buried the problem of the extra lines, hiding it behind this small bit of odd behavior. All the rest of the receipts for the session would print properly.

It was 3am... I'm shipping it. Sent... Delivered.

Customers remarked "heh... that's new."

A few months went by and I finally got around to fixing that bug. So I removed that little greeting work-around. The complaints were immediate, consistent, and pronounced. "Why doesn't it say 'good morning' to me any more? I liked that! Put that back."

My boss got a good laugh at that. We put the feature back in with a setting, on by default.

Users can be delighted by small touches.
The problem is that it takes a lot of effort to fire people. And every time you do, you increase your exposure to legal trouble.
Just pushed an update - btw Cloudflare pages are fantastic its been perfection for a personal site.
I think some of the stylesheets are not loading correctly, I get 404 on these:

https://benadam.me/assets/prisma-dark.19c66771.css

https://benadam.me/assets/work.b7de8a03.css
Maybe I misunderstand you, but the exception in the OP's example was definitely caught and not rethrown. That's often unavoidable if you want to recover and continue from the exception but nevertheless want to document that there was an exception. Same happens if the exception happened in a worker thread.

(And in before "just swallow it" - nope. I've frequently found bugs by monitoring non-fatal exceptions).

I agree though that catching, logging and then immediately rethrowing exceptions is redundant.

> What? Perhaps in some programming languages, but catching exceptions globally in C# works just fine.

I think what sesm means (as do I) is this situation:

try { a(); }
catch (ex) { log_warn(ex); }
return b();

Right now, the function will continue executing and return a value even if an exception occurred, which sometimes is desirable. If you removed the catch block, nothing after a() will be executed.
If I have to turn on scaling I always think I screwed up. I spent too much on pixel density that I can't even use, so now I have to make everything aliased just to read the text.
I do find Perl much easier for manipulating text files, file names, and the sorts of things where bash or awk are too tedious. Then there's a line where something like Python becomes more attractive. Perl is still a lot faster than Python for many tasks too...the Perl devs seems to spend more time optimizing certain paths. Or perhaps "everything is an object" in Python slows everything down?
You're at a time frame where you have to worry about subduction. There's areas of the ocean floor that are candidates, but I'd seriously consider a high orbit or lunar placement if you're going for that time period. Also saves a lot of environmental challenges.
Yeah it's the same exact thing at Meta/FB lol
Will they still be reporting sex to the hosts as a discriminatory factor? I can very much imagine single female hosts being wary of letting to male tennant.
It used to travel a lot and have had the full range of issues with taxis. In NYC it seemed pretty common for them to try to get you to give them cash for tolls (like at the toll booth, asking you to pay it) which were already added to your fare automatically.

I once had a harrowing experience in a foreign country where I didn't speak the language and my roaming didn't work, where I needed to direct the taxi driver using the gps from my phone's dying battery, since he want off in the completely wrong direction and had no idea about the area I was headed to (and I only was barely aware enough to interpret the minimally-labeled map the gps provides when you don't have data access).
I'd have to buy a six pack of rolls, that's going to be around $4.

My budget is already shot.
They forgot the most important part about making a structure last 1000 years: it cannot be made of materials that people would conceivably want to repurpose in times of duress or those materials should be in such a form that it is extremely difficult to remove them from the structure. This is how many historical buildings were lost, they were mined for stone to use in other structures. It's also how many modern buildings get ruined by people looking to sell the copper wiring or pipe, and that's in a politically stable era.

A better strategy would be to build the house from massive blocks of the most common stone in the area. The blocks should be large enough that they would require significant effort to move or demolish. I wouldn't recommend using any metal in the structure of the house at all. Even wood could be conceivably stripped in times of need.
I think it should be explicit without a default.

But in the real world, if we must have a default, I think it should be 1, not infinity.

Infinity has a frustrating fail state, in my opinion: you might be flattening arrays that weren't meant to be flattened. And now you've got a cluster!@#$ of data to look at and reason about.

The fail state of 1 is that it doesn't flatten enough but you have the original structure in your 1-level flattened output. So you're far more likely to make heads and tails of how much more flattening you need.
The padding for the paragraphs is indeed coming from prisma-dark.css - that would explain it!
I can find both mining gold to store in basements and mining bitcoins incredibly stupid, selfish and irresponsible. They are not mutually exclusive.
Melatonin drugs inhibit SARS-CoV-2 entry into the brain and virus-induced damage
Excel has versioning now! But it doesn’t work when people email around hard copies instead of links to the shared file, which they still constantly do. >:-O
Yep actually when I did infrastructure work at a timber mill I’d come by once per month but the electrical engineer was the day to day IT guy.

For really remote mines (fly in fly out) an infra guy would go install the network and weighbridge systems with the swe on the phone or via email for any issues, but then he wouldn’t go out there again unless there was catastrophe - everything was managed remotely.

I’m sure there’s other companies or industries that may do it differently though.
Schedulefly is a popular web app used by restaurants to schedule their employees for work. Right now it’s down with the message:

> We got hit by a ransomware attack. We are working with a firm that specializes in resolving these attacks. We are doing everything we can to get you back online quickly. Once we know more we’ll update this message. We don’t have access to crib sheets or backups, it’s all been encrypted and is currently unreadable on our end. We’re really sorry you’re having to deal with this.

> The Schedulelfly Crew

> Wes, Tyler, Wil, Charles, Hank

Schedulefly gang: hope your day gets better.

Everyone else: remember to test that your backups are 1) restorable, 2) current, and 3) truly separate from the production environment.
There are often infinitely many solutions. Part of the fun of science is figuring out a solution that satisfies all of the constraints of experiment.

While the constraints in this puzzle are artificial, from what I've read of Feynman, it seems more likely he would engage with it and welcome the constraints.

I do like the part about asking the details of the electrical system's wiring though. That part is spot on.
Could you expand on this, please?
I think it might be the classic distinction between "simple" and "easy".
I do believe that most of those problems are "simple" - typically when you read solutions, it's under 20 Python lines of code; and not really complex or difficult to understand code.
At the same time, I agree it's not very "easy" to do them well (come up with a solution, code it up, test it, and explain everything along the way considering trade-offs and pros and cons) under the interview stress and time pressure. Even the most brilliant and well prepared people do fail them for a reason.
But what is the npm package name for https://github.com/withshepherd/faker.js? if there's any? (maybe people are using github packages for it), because it seems to link to https://www.npmjs.com/package/faker which is the one compromised
That's an awesome article, I'll add a link to it.
> It blew my mind how many business critical processes were managed with excel spreadsheets being shared via email chains.

Enterprise work summed up in one sentence. Impressive. While I agree with Andreessen’s “software is eating the world,” it might be more apt to say “Excel is eating the world.”
https://www.washingtonpost.com/business/2021/12/29/job-marke...

Demand for workers has recovered, but the number of willing workers has not.

The 2020 recession had one of the fastest (the unemployment rate) and slowest (labor force participation) recoveries of any recession since World War II.

Government payments helped build and sustain savings, especially for lower-income people.

Personal consumption spending rebounds past pre-pandemic high.

Main reason for not working in the last seven days, among respondents under 75. (Retired is up, Other is up, the pandemic is way down.)

Over 1.5 million more people are retired than would have been expected before the pandemic.

Wage growth rises among low-income workers (5.1%).
You're assuming every person who took a new job is staying there, but there could be a large number of people switching several times.
> raising electricity prices or cost to mine bitcoin which helps push up the price of bitcoin

The price of bitcoin is not driven by electricity prices, or more generally by the cost of mining. Bitcoin supply works at a fixed rate: one new block of 6.25 BTC is mined (on average) every ten minutes. Every four years the BTC reward per block is cut in half. More mining effort (higher hash rate) just raises the difficulty threshold so that the interval remains 10 minutes per block. Lower mining effort, of course, has the opposite effect. Higher mining costs would drive marginal miners out of business and lower the hash rate but otherwise have no impact on the supply of new bitcoins or the ability to process transactions.
Webmaster is still the best title.