skysight-inc/HackerNews huggingface dataset:
s/is going to/should/;

It's frightening how many industrial product are completely insecure, assuming/hoping/wishing the installers only use them on a secure network. But all too often that "secure network" is the network for the whole facility, with every laptop, phone, device, etc on the same "secure" network. Sure, it's got a NAT "firewall" between it and the scary scary internet. But it's far from isolated the way it should be.
That's a nice spin on 24 hour darkness when it's not
Back in 2003 I was looking for an interpreted language with very simple, almost psuedocode-like syntax. The use case was to write a non-optimized, highly documented reference decoder for a new video codec.

I stumbled across a strange new (to me) language that had clean, readable syntax, an imperative style (I didn't want or need nested class definitions), and was very parsimonious about the use of parenthesis and brackets, to the point where it relied on indentation and whitespace to indicate control flow, instead of the traditional curly brackets.

And thus began my career as a "niche" programmer focusing on Python.
Given websites with CSP bookmarklets generally are a dead thing now as they are usually blocked by the policies.
Meh ... PhD are super-specialized, which is great if that's what you are looking for, but may not be particularly good if not.

For example, a person with a PhD in history will probably be a good writer and researcher, but may need a couple of years training and experience before they're an amazing journalist, for example, and may only be OK at PR, even after a couple of years. If you want PR 'talent' then the history PhDs would not be very helpful.

A bio PhD would be amazing at many things, but would probably suck as a nurse.

So it's not just the raw talent, but also training and inclination.
I have pretty bad adhd and one thing that helps enormously when working is just writing everything that i am doing down, in a linear fashion, with a few special markings for todo items and important notes and headings for specific meetings.

As I write code, I’ll clearly write down the next step I am trying to make work e.g. “Call the graphql endpoint and get the id of the employee” and then if any blockers come up, I add those as bullet points below the mini task. This helps me regularly remember what I am supposed to be doing each time I get distracted.

The end result of this is that I write around eight letter-sized pages per day. This kind of sucks with ballpoint pens as you need to use a lot of force to write with those. I switched to a fountain pen that fits my large hands and now mostly write in something akin to cursive (this is why cursive is a thing - it only makes sense when using a fountain pen).

Fountain pens with good ink really need high quality paper designed for them or they smear and bleed through.
Good point about Apple creating great products that broad swaths of society can afford.

I do take issue with people thinking Apple’s designs are stale. I mean, to an extent this is a matter of taste. My take is that at their best Apple’s designs are so good they are timeless. Is a vintage Leica stale? Is a 1964 Porsche 911 stale? No. People who think these are stale have bad taste I would argue.
Not that I’ve noticed, thanks for taking it on board!
If you put this in writing, and they accept, that is offer and acceptance.

This is done all the time by the way with houses. Someone puts an offer out to the seller, they accept, that's it, you are under contract.

Alternatively, sellers can offer or counter offer to buyers. In this case sellers will say, here is my offer, when buyer accepts, you are under contract.

Same thing with engagement letters for professional services. Signed proposed engagement letter presented to buyer (usually with an expiration and a few outs), buyer accepts, now you have a contract.
Ukraine's operating tank count has increased since the war began.
Power and area efficient. You can fit 4 E cores in the area of 1 P core. Adding AVX-512 to the E cores would significantly hamper that, though I don't know by how much.
I suspect the US is way down in the list of possible emigration routes. It's just a very annoying process if you consider the default route. Getting an offer from a US-based company is the easy part. The hard part is winning the H1-B lottery. The very annoying technical part is getting an appointment in an embassy as a non-resident (there are no visa interviews conducted in Russia, so you have to apply elsewhere, appointments are rare) and then some people (esp. cybersecurity and ML, if rumors are right) get sent to SAO (Security Advisory Opinion, "administrative processing") for a random period of time. No updates or feedback at all during that time, obviously, so you cannot plan anything.

Some of my friends were sent for about 1.5 months and had to postpone their three-month internship (sic!) at Google because of that. That was about five years ago. Some other had to wait months before being able to renew (sic!) their work visa. There are rumors of people waiting years without hearing back.

To compare, one can obtain a national German visa in a week or two after receiving an offer, if you have your university degree translated to German (not even apostille is required for lots of cases). This visa gets converted into a EU Blue Card once you arrive and apply for it, IIRC.
> If everyone is writing "raw" JS/HTML/SQL/Java/whatever, they are actually building their own individual, unstandardized frameworks.

That is only "technically" true, in the way that if you develop any kind of sufficiently complex program then you will have, by necessity, built something which could be called a framework.

Realistically, though, your point is invalid and misses the mark.

To say that programmers shouldn't write pure code without an existing framework is akin to saying that a house builder shouldn't use bricks and lumber to build a house; they should buy a pre-fab kit instead. Which is, of course, nonsense unless you want the shittiest quality most generic house possible.
My first internship was trying to figure out all the Perl scripts left behind by a sysadmin who got fired. I learned a lot that summer. I really learned to like Perl after writing my own programs in in, and making sure to document them well!
In my experience it needed charging much more frequently than that, and often at completely unpredictable and inconvenient times. I resorted to keeping a spare plugged in at all times when I worked in an office.
Honestly, that sounds awfully like US :)
Exactly--many of these are hostile sentiments; it would be a mistake to assume that re-wording them will lead to a better outcome, as most people will (correctly) perceive the hostile intent in spite of the re-wording. A more useful list would perhaps be, "How to _not_ say", which could guide you through a way of successfully resolving the conflict when you find yourself wanting to express one of the listed sentiments.
> That's a bit much for me. The current industry state of commercial SAAS/crud apps is a dumpster fire, Photon's speed and responsiveness is already miles ahead of literally every laggy SAAS tool we all suffer where programmers have manually hand-coded the network in the form of REST calls

This is a fair criticism! I am biased because my work history has placed me in companies that really care about maintaining this illusion.

> React.js-era software is rotting to death, "reliable" is not a word that remotely describes my daily experience with web software today.

I will say, that some of this is the result of how hard the problem we're talking about is. While React could definitely improve the affordances for this logic, having worked with a few systems that try to maintain the illusion of a reliable network I've found inherent tensions balancing speed, performance, cost, and time the UI spends in an inconsistent state. It's a Hard Problem™.

Regardless, I'm wishing you the best of luck. I'm heartened to hear what you have is 2k lines, it will make a re-write much less painful if it's needed :)
I'm not judging my own code. I'm basing my statements off of the results-oriented perspective of the businesses I've helped. And based on their positions in the market, both at the time my team implemented the projects I'm referring to, as well as long after most of us have moved on and the projects are in maintenance mode or retired, I would objectively say we were highly successful.
I think PDI negatively correlates strongly with social safety. In the IDF you are unlikely to be punished for speaking up, and in general that's true in Dutch and Israeli culture for locals talking to one another. Frankness is not punished. In more hierarchical societies where you can be put in jail for pissing off the wrong cousin, frankness can be severely punished, and stories are abound of such.

So when the social consequences shift for an individual who is moved to a new setting, then the PDI for that individual will shift hard. Hence you find this working abroad and you've adapted your communication style. But we can do thought experiments on the PDI for the following situations:

- Arab talking to Israeli, inside Israel vs inside home country
- Israeli outside Israel talking to Jewish vs non-Jewish person
- Consumer Salesperson (small commission product, very frequent close opportunities) vs Enterprise Salesperson (large commission product, lots of confirmation pre-close meetings across org, leading to the final sale)

I think in each case the PDI will correlate with the negative consequences for the speaker speaking out of turn, once they become habituated to the situation of course.
Don't be a poor and hire yourself a live-in chef?

Easy peasy.

Follow me for more tips on how to live your best life.
I have had the same experience. This is one factor that leads me to believe Apple is mostly using C++ internally.
Volume slider is useless to me. I adjust volume with the scroll gesture on my mouse pad.
Fast flow-based algorithm for creating density-equalizing map projections
> Why are frameworks popular?

Because they make it very quick to get a 70% working system that you can sell to people (internally too) before the people with the capacity to get a 100% working system gets their first version.
> it's something people (citizens = voters) can use to shield themselves from economic bullshit ruining their lives by limiting their financial exposure.

That “financial bullshit” is specifically “liability for unlawful harms to other people caused by actions undertaken for the benefit of those granted the special protection”.

If the laws providing liability are bullshit, they ought to be eliminated.
In my neck of the woods (not the US) people do most government things like file their taxes through websites. And it’s for the most part a good experience.
ADHD is certainly not Mendelian. There are likely multiple genes involved probably around specific pathways.

https://www.nature.com/articles/s41380-018-0070-0
New compilation of Framley stuff.

https://unbound.com/books/framley/
Being as the word doesn't appear to exist outside your construction of it, it may have been clearer if you had called it "eugeroic-ness" or something. That would have made it clear it was a construction for lack of an accepted adjective form and would have been much easier for me to parse out. On top of the accidental swapped letters, the "i" being exchanged for a "y" made it harder for me to recognize.
DALL-E 2 open source implementation
Agreed. I found that solving the tedium and annoyances of people's jobs is what gives me joy in my programming work.
Sure, sure. I wasn't at a computer at the time and didn't pay the closest attention to the problem. Turns out that the brute-force solution involves two for-loops, not three, because you'd be a fool if you don't make bread the innermost loop and optimize it away by filling the remaining capacity.

So the N=1k takes about 6.5ms on my desktop, and the N=10k takes a mere 400ms. Only when I try 100k do I need to actually wait, for an egregious 40s.

And, a more trifling note, their variable bounds are too generous...

meat = model.NewIntVar(0, 1 + capacity // 3, 'meat')
beer = model.NewIntVar(0, 1 + capacity // 7, 'beer')

reduces the triple-loop estimate to a mere 47M cases.
I think people are far too prone to black and white thinking.

No individual can fix the world, it is foolish to think you can, but just as foolish to feel helpless and ineffectual.

You can still do good in the world. It wont fix it, but maybe you can leave it better than it would have been without you.
> ...we took these drugs, mixed them in fruit juice and gave them to the animals

That's interesting. I avoid orange juice because it severely reduces - if not outright destroys - the effects of my Adderall prescription. I think it's because of the acidity, as taking some Tums with the pills can increase their effects.

I wonder if Ritalin is substantially different or if the researchers knew about this?
Global PC shipments down 4% in Q1. Mac shipments up 8%. The M1 Macs are the most exciting thing Apple’s done since the Watch.

https://www.counterpointresearch.com/global-pc-shipments-q1-...
“Imagine a nice, simple, low-entropy cup of coffee.”
> people just can't stand having money standing there doing nothing as an insurance policy

And then, they pay more on their actual insurance policies to have low deductibles because they can’t afford a larger deductible because they don’t save anything.
Why was April the month to buy them?
These look excellent.

On the other hand, I still make an embarrassing amount of technical figures using powerpoint built in shapes.
Some “nice” bits of government I’ve hit recently in Canada:

When my kid was born I was given a convenient form to fill out that registered my child’s birth, applied for a SIN, applied for the relevant tax breaks, and registered me to be contacted about options for saving for my child’s education.

My city has a nice little online portal where I can see my tax and utility bills, register city maintenance issues, apply for local city programs, etc. It’s pretty decent.

Oh, and the CRA’s NETFILE system is pretty neat. In addition to the expected submitting of taxes online, banks, employers, etc can send documents to netfile which my tax software can automatically retrieve and ingest.

Not saying that any of the above are perfect, but government can (and does sometimes) produce decent systems. Of course, there are always bad parts - I’ve recently had friend and family deal with immigration and death systems that badly need a redesign.
Genuine question, what do you mean escape html by default?
Based on the CNBC article, here's my understanding. Someone please correct me if I'm wrong, because this sounds... really bad with safety implications that are not at all related to self-driving.

1. Tesla vehicles are drive-by-wire.

2. The missing component is a backup chip in the steering system.

3. The backup was excluded in a time frame that precluded robustness testing.

Are any of these items wrong? Because, if not, characterizing this as "oh well you have to bring your car in if you want our full self-driving magic" seems like a massive PR spin and a huge disservice to Tesla owners who every day bet their lives on Tesla's drive by wire system.

(Missing/not using a backup chip on a safety-critical system is exactly what caused the failure of the flight characteristic modification software on the 787-MAX. Missing backups was also identified as a possible root cause in the Toyota deaths. Backups are important, and the history of safety-critical systems that ignored the need for backups is littered with human bodies. Shit happens at scale.)
“Due to an unfortunate software bug involving a forgotten conversion between °C and °F, instruments on the JWST have suffered irreperable damage from thermal runaway…”
I'm not so sure that the author currently has 10k in bonds. The pseudo-code for the purchasing backend might just look like

totalReceived = totalReceived + transactionAmount
if (totalReceived > 10000) {
sendEmail()
wait10weeks()
refund(transactionAmount)
totalReceived = totalReceived - transactionAmount
} else {
buybonds(transactionAmount)
}

In which case, the author would have 20k locked up in the government and only $25 invested.

A horrible way to write a system of course but if the system takes 10 weeks to process a refund then it doesn't sound like the system is that great to begin with
Personally, I share your preference. But we are an incredibly small minority, and to build things that actually help a lot of people (and thus earn a lot if money) we have to have empathy to ordinary users.
> To say that programmers shouldn't write pure code without an existing framework (...)

That's not what's been argued.

The overall thesis is that developers end up using higher-level abstractions, and between wasting time writing and debugging your custom high-level abstractions and simply adopting a feature-complete, stable, and standard high-level abstractions, you'd have a hard time trying to justify wasting time rolling your own when others already did all that work.
> Even the biggest hater of SQL database abstractions will admit there are reasons why someone would want them.

There is only one reason, and it's that people don't understand how to use SQL, and that's because it's not taught in computer science degrees, and this also has strong ties to the battle between sun and oracle.

And this makes database developers expensive and hard to hire.

There is no reason to use an ORM if you know SQL and database modelling. The relational model is by far the most powerful tool to solve CRUD use cases, which "web development" is, and that's just simply a fact.

What the ORM will do for you is automate some boilerplate mapper code, which might be a bit boring to write, but is very simple. And the downside is that it will make all of your database modelling, querying, access etc orders of magnitude more obscure and complex compared to just using SQL. And now you will waste enormous amounts of time fighting with the framework to debug the ORM and find out which kind of weird SQL statements it generates, where you would have complete control over this if you just wrote your own.

The obvious solution that would benefit everyone, is to simply train your developers to use SQL, if they don't already know it, and let them take a course if they need to. Not to slap on some stupid framework and make a huge unmanageable mess of the whole system.
Agreed - I think it’s indicative of a less insular attitude which can only be positive.
Thanks for posting this, happy to see it has worked out so well for you!

The main take-away from these two wildly different experiences being: people suck at fixing their own mental/behavioural problems, go the professional help route for actual results.
Patches Are All You Need?
The government can (arguably unconstitutionally) take away those rights after due process. KYC doesn't involve even probable cause a crime has occured.

Felon in possession laws are also laughably stupid and a horrible example of government tyranny. Someone who say illegally harvested or transported a lobster or had pot at the wrong time in the wrong state isn't less deserving of defending his family than the guy with a misdemeanor for DUI. I applaud any felon who continues to carry, knowing if they otherwise carry themselves honorably they are extremely unlikely to be caught conceal carrying. Thankfully projects like the fgc-9 3d-printed gun make it effectively impossible to stop felons from acquiring firearms and restores their 2nd amendment rights.
This is the article the OP read: https://news.ycombinator.com/item?id=31006354
Tesla vehicles are not drive by wire, but have a direct mechanical linkage.
This is incredible; thank you for posting it!
There are alcoholic beers that taste as bad or worse as the non-alcoholic ones.

And there are alcoholic drinks that taste like they have no alcohol in them at all. Or drinks where you cannot tell if they have any alcohol in them.

There are ways to make these things blinded.
Nixpkgs on Fedora w/ i3wm
Mental illness, attention deficit disorder, and suffering
Try https://excalidraw.com/ - it's SUPER NICE for these simple "shape" diagrams.
Huh, 3.4 million 4th amendment violations. That seems like a lot of terrorism and child abuse to have not ended up with any media coverage.

Especially given the FBI’s general desire to go to the press every time they think that they can get good coverage.
Learn how to cook yourself. Pick some recipe and fucking cook that shit.
I am the same, but I'm not very good about telling people I would consider it if given a PR. Maybe I should publish something like you've said here as an upfront policy.
> For example, if Int8 = -10 and UInt16 = 5, and I’m expecting an answer of -5, then I’ll need to be more explicit to get the number I’m looking for. If I’m expecting [65531], then the implicit promotion works fine.

That depends on what you're hoping to do with the number you're looking for. If you wanted -5 as an Int16, the bit pattern would be 1111 1111 1111 1011 or 0xFFFB.

If you wanted 65531 as a UInt16, the bit pattern for that is 1111 1111 1111 1011 or 0xFFFB. You're getting the same result either way. And any values you compute from that result [that is, by arithmetic] are going to be unaffected by whether you labeled the result "Int16" or "UInt16", because that's just a label. If you labeled 0xFFFB a "Snerf", the arithmetic would still be the same.

There are only a very restricted set of places where you need to be explicit about whether you think of your variable as an Int or a UInt:

1. When you're widening it.

2. When you're doing a right shift.

3. When you're formatting it for display to a human.
The Housing Crisis Is the Everything Crisis
Tangentially related: can you buy I-Bonds through a brokerage or does it HAVE to be via Treasury Direct or filing taxes?
If I may recommend a book: "Salt, Fat, Acid, Heat" by Samin Nosrat

https://www.goodreads.com/book/show/30753841-salt-fat-acid-h...

If you look for recipes, I'd recommend starting with Italian dishes. They usually combine few ingredients but the end-results are amazing. It's crazy what you can you can do with so little. Be prepared to buy lots of olive oil though - at least it has a good $ per kcal rate, compared to other stuff you buy.

If cooking seems too much of a waste of time, try listening to audiobooks or podcasts while you cook. Soon you'll be longing to get back into the kitchen.
> Yes, it does seem high as ADHD is a recessive genetic disorder,

ADHD isn't established to be recessive genetic disorder (there's multiple genes associated with increased risk of ADHD, it's not simple trait), there's no reason a recessive genetic condition would necessarily have a 7% incidence, and ADHD is not the only thing Ritalin is used for.
Such a good read. In trying to expose a hole in the site’s logic, the site exposed a hole in OP’s logic. Gotta love the irony
It is in writing; wtf do you mean?
Such a comment annoys me, even if in jest. I feel glad that I pause to think about how my words may impact people based on their expectations. I'm not sure what you were trying to imply by "go and visit a therapist"—that I should not care at all about how others feel? Maybe you think I care too much about how they feel and too little about how I feel but I still said the word, more to share how I believe HN has an expectation of not using that word too often.

EDIT: I also have my name attached to my words here and in most places on the internet, so I'm more mindful of how things said here can be read in other contexts where certain words are more taboo.
Five years doesn't seem like a very long time. My intellimouse is 20 years old. The battery will never wear out because there is no battery.